SNMP help

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
silverleaf
Posts: 2
Joined: Wed Feb 16, 2005 3:16 pm

SNMP help

Post by silverleaf »

Hello.

I recently installed Cacti on my Gentoo box, to show my brother that it's better than MRTG.
I've got working graphs, such as Load, Logged Users, etc... all is fine.
Except in Management->Devices->Localhost where under "SNMP information" is written "SNMP not in use" . I think this is not true, because snmp works fine for mrtg (for example, the disk usage and traffic graphs).

My snmpd.conf is as follows:

Code: Select all

com2sec local   127.0.0.1/32    public
com2sec local   10.10.10.0/24   public

group MyROGroup v1      local
group MyROGroup v2c     local
group MyROGroup usm     local

view all        included .1                     80

access MyROGroup ""     any     noauth  exact   all     none    none

syslocation Um computador no meio do corredor
syscontact Who do you think?

disk    /       100000
disk    /mnt/share 100000
and a Verbose Query on the "SNMP - Interface Statistics" in Associated Data Queries in Cacti gives out

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/interface.xml'
with a status of Success (0 items, 0 rows)

I tried to find some help regarding SNMP, and read the man pages, but I think it's a little too much for me?
Can anyone help?
I'm running net-snmp-5.2.1 and cacti-0.8.6c

Thanks for reading
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Put the correct community in the localhost snmp community. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
silverleaf
Posts: 2
Joined: Wed Feb 16, 2005 3:16 pm

Post by silverleaf »

Thank you for your answer. I checked, and the SNMP Community name is correctly configured in Cacti, with "public".

Any other ideas?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Attempt to run snmpwalk to that host in question from the cacti server and work from there. If that doesn't work, then figure out why. If it does work, please run you poller in debug logging mode and post one polling cycle here.

Thanks,
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest