Koozali.org: home of the SME Server

Problem with snmp and cacti 8.5

drywalldude

Problem with snmp and cacti 8.5
« on: August 15, 2004, 09:38:36 PM »
I am trying to get the latest ver of Cacti working, had it working with snmp and then it quit, I issued the following command :

[root@linuxserver /]# snmpwalk localhost public .1.3.6.1.2.1.25.3.3
snmpwalk: Timeout

To the obvious result, then through the forums I found this :

lright then you might not have the right rights.

You then need to change the hosts.allow file to allow access to the snmp deamon

Issue the following commands at console:

[root@e-smith ]# mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow
[root@e-smith ]# echo "snmpd: 127.0.0.1, 192.168.xxx.0/255.255.255.0" > /etc/e-smith/templates-custom/etc/hosts.allow/snmpd
[root@e-smith ]# /sbin/e-smith/expand-template /etc/hosts.allow


You can replace the "127.0.0.1, 192.168.xxx.0/255.255.255.0" with "ALL" if you allow SNMP requests from the anywhere.

[root@e-smith ]# service snmpd restart

This didn't seem to go anywhere, I used the following howto with some modifications :

http://www.sweepy.dyndns.tv/?page=hcacti

Anyone help me out here I know this is a minor problem but snmp does not seem to be working on my system, tested with Getif

matsk

Problem with snmp and cacti 8.5
« Reply #1 on: August 15, 2004, 09:58:26 PM »
Are you using xxx in the host.allow ?

Your echo line should look like :
Code: [Select]
# echo "snmpd: 127.0.0.1, 192.168.1.0/255.255.255.0" > /etc/e-smith/templates-custom/etc/hosts.allow/snmpd

Where "192.168.1.0" is the IP adr. to your lokal network If thats not so, subsitute it with the right value!

Check the /etc/hosts.allow that you have the right values.


/Mats

drywalldude

Problem with snmp and cacti 8.5
« Reply #2 on: August 15, 2004, 10:22:46 PM »
Yes, I even put the "ALL" Variable in just to eliminate this completely as a possible problem

matsk

Problem with snmp and cacti 8.5
« Reply #3 on: August 16, 2004, 12:22:50 AM »
Then the hosts.allow should be OK, what about the /etc/snmp/snmpd.conf ?

In the guide you refered to, there wasn't any snmp configuration guidelines, but maybee you have experience  to do that anyway ?

Anycase you could use the HowTo @ http://sme.swerts-knudsen.dk/howtos/howto_6.htm
and use the snmp part as a snmp install guideline.


/Mats