Problems with SNMP V3

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pvroegindeweij
Posts: 3
Joined: Wed May 26, 2010 9:18 am
Location: Netherlands

Problems with SNMP V3

Post by pvroegindeweij »

Hi, all

I am trying to get temperature data from Atal sensors. They only support SNMP version 3.

I can manually walk the MIB, using the AKCP OIDs, for which maxper created the xml. ( http://forums.cacti.net/viewtopic.php?t ... light=AKCP ). I use the standard ucd net-snmp.

When I query the data from the sensors using Cacti I get an SNMP error, and sniffering the traffic when I do a verbose query shows no SNMP polling traffic, all other SNMP traffic shows up.

It looks like nothing is happening at all during the query.

Cacti version is 0.8.7b, on Sun Solaris 10.

Hope somebody can help!

Regards,
Peter.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sounds like the snmp agent isnt configured properly or a firewall is blocking traffic.

http://docs.cacti.net/manual:088:4_help.2_debugging
pvroegindeweij
Posts: 3
Joined: Wed May 26, 2010 9:18 am
Location: Netherlands

Post by pvroegindeweij »

Thanks for your response.

Due to the fact the initial discovery does not return any values, no rrd's are created. This limits the troubleshooting I can do. When I run the poller manually (Modified for full path: The guys I inherited this install from were unix geeks I guess, I'm just a network admin) I get this returned:

/opt/csw/php5/bin/php -q /opt/cacti-0.8.7b/cmd.php 185 185
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20060613/mcrypt.so' - ld.so.1: php: fatal: libltdl.so.3: open failed: No such file or directory in Unknown on line 0


There are no firewalls in this network path, also a manual SNMPget or walk works perfectly fine.

If I run this command for any other device I get the same, plus loads of "mib not found errors", but these devices do graph.

I am also a bit wary of playing around with this production machine, for fear of breaking it, which is also why I haven't upgraded it yet: I hear it has been a bit of a pain to set it up on Solaris. I don't have a test/development environment atm.

Kind regards,
Peter.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The missing mcrypt library might be required by php/net-snmp encryption support for SNMP V3.
To check the latter one, please run e.g. snmpwalk using V3 options against any target and watch for the same error.
R.
pvroegindeweij
Posts: 3
Joined: Wed May 26, 2010 9:18 am
Location: Netherlands

Post by pvroegindeweij »

Hi, Gandalf,
the library is not actually missing, but can't be loaded:


/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20060613
cacti@emn-netmgt-01$ ls
gd.so mcrypt.so mysql.so mysqli.so session.so


Permissions:

ls -al mcrypt.so
-rwxr-xr-x 1 root bin 41512 Oct 26 2007 mcrypt.so


so the cactiuser should be able to load it, right?

I'm afraid the OID is not accepted as the index somehow, but I'm not sure how that section in the XML works. The index OID is .1.3.6.1.4.1.3854.1.2.2.1.16.1.1

I can walk that OK:


cacti@emn-netmgt-01$ snmpwalk -v 3 -u user 172.20.50.37 .1.3.6.1.4.1.3854.1.2.2.1.16.1.1
Cannot find module (IP-MIB): At line 0 in (none)

'snip' <-- another lot of unavailable MIB files
Cannot find module (SNMPv2-TM): At line 0 in (none)
iso.3.6.1.4.1.3854.1.2.2.1.16.1.1.0 = STRING: "Emn-E20"

'snip' <-- The other six sensors
iso.3.6.1.4.1.3854.1.2.2.1.16.1.1.7 = STRING: "Temperature Port 8"

This is the OID for the sensor name btw.

Regards,
Peter.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests