Welcome to Pandora FMS Community › Forums › Community support › SNMP Polling issue
-
SNMP Polling issue
Posted by Anonymous on February 18, 2008 at 20:48Hi I need some help monitoring an SNMP device without using traps.
After I create a remote_snmp network component with a custom OID, assigned to a group and a template… the newly created agent does not seem to “poll” the data from the monitored device.
I ran tcpdump in the server to see if there are any SNMP packets in flow but nothing shows up. SNMP walk does work when editing/assigning the module.Am I missing something on the backend?
Adam
manu replied 16 years, 12 months ago 2 Members · 26 Replies -
26 Replies
-
-
Anonymous
GuestFebruary 18, 2008 at 23:09::What if you run snmpget -v 1 -c “community” IP OID from the pandora server to the agent you want to get information from?
Does it work fine?I ran it and it gave me the information I needed (INT) value was 72 which is the temperature in the room. I also tried with some other standard OIDs and worked with no issues. I noticed that when I go to the data tab in the agent “view” area, it claims it has no modules, however if I go to the modules in the “manage” area, they are showing there.
-
::
It’s normal, that it says it has no modules but on the other hand you can see them in the manage area, that’s normal. It doesn’t show modules till it has any data to show.
Let’s check again the configuration, try do not using the template.
Doesn’t it work either if you create the module by hand, setting up the IP, the OID and the community? (remote_snmp, type, of course) -
Anonymous
GuestFebruary 19, 2008 at 00:07 -
-
::
silly me for not posting it.
Yes the IP is there and the network server is pandora_Net
Quick checklist:
1. Check that your pandora network server is UP and running fine.
2. Check that SNMP perl dependencies for your pandora network system is fine.
3. Check that parameters like IP address, OID and snmp community dont have any blank space in it.
4. Recheck OID, and make sure that system that are running pandora network server has network visibility on port 161/UDP (snmp) to the destination.
5. Check that this agent has assigned your network server in agent setup.
6. Check SNMP tyle (is not the same to get a remote_snmp or to get a remote_snmp_inc module type). -
Anonymous
GuestFebruary 19, 2008 at 16:38::1. Check that your pandora network server is UP and running fine.
— Checked it, it shows on my ps -A as running (pandora_network)2. Check that SNMP perl dependencies for your pandora network system is fine.
— Re-ran the setup scripts, no warnings3. Check that parameters like IP address, OID and snmp community dont have any blank space in it.
— Checked
4. Recheck OID, and make sure that system that are running pandora network server has network visibility on port 161/UDP (snmp) to the destination.
— Ran the same OID with snmpget from the server, no problem, returns expected value5. Check that this agent has assigned your network server in agent setup.
— Checked, ok6. Check SNMP tyle (is not the same to get a remote_snmp or to get a remote_snmp_inc module type).
— Checked, certainly using remote_snmp (the value is just a simple INT value)I ran tcpdump again after all these checks to see if the pandora server would generate udp packets while requesting snmp information from the device and I saw no packets. When I ran snmpget, I did see all the conversation between the server and the device (eliminating the networking issue). It feels like if Pandora is not spawning the “snmpget” process (my wild guess).
Thanks for helping…
-
::
1. Check that your pandora network server is UP and running fine.
— Checked it, it shows on my ps -A as running (pandora_network)2. Check that SNMP perl dependencies for your pandora network system is fine.
— Re-ran the setup scripts, no warningsCheck status on “View server” option. Should be on Green and updated. You should not have more than one network server….
I ran tcpdump again after all these checks to see if the pandora server would generate udp packets while requesting snmp information from the device and I saw no packets. When I ran snmpget, I did see all the conversation between the server and the device (eliminating the networking issue). It feels like if Pandora is not spawning the “snmpget” process (my wild guess).
Thanks for helping…
Mmm, weird. Pandora don’t create a new process, it calls a snmp library function to get values using the native perl function.
What version of Pandora are you running ?, in what linux distro ?
-
Anonymous
GuestFebruary 19, 2008 at 22:37::Ok I think I am getting closer…
Found this error in the /var/log/pandora/pandora_server.error file:
A thread exited while 6 threads were running.
thread failed to start: Can’t locate object method “new” via package “SNMP::Session” (perhaps you forgot to load “SNMP::Session”?) at /usr/bin/pandora_network line 415I checked to see if CPAN Net::SNMP was ok:
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/MetadataDatabase was generated on Tue, 19 Feb 2008 11:30:48 GMT
Net::SNMP is up to date (v5.2.0).Are there any other modules I might be missing?
-
-
Anonymous
GuestFebruary 20, 2008 at 18:11::I had to inject spaces to h t t p strings because it wont let me post anything that resembles a u r l.
Perl
perl-libwww-perl-5.805-1.1.1
perl-Time-modules-2003.1126-4.fc6
perl-Class-Gomor-1.01-2.fc7.1
perl-Crypt-DES-2.05-4.fc7
perl-Bit-Vector-6.4-2.2.2.1
perl-DateTime-0.37-3.fc7
perl-Time-Period-1.20-1.fc6
perl-NetAddr-IP-4.004-3.fc7
perl-Set-Infinite-0.61-3.fc7
perl-DateTime-Format-Mail-0.30-4.fc6
perl-CPAN-1.76_02-27.fc7
mod_perl-2.0.3-9.1.fc7
perl-Params-Validate-0.88-1.fc7
perl-Net-Libdnet-0.01-3.fc7.1
perl-Time-Duration-1.06-2.fc7
perl-Net-IP-1.25-3.fc7
perl-IO-Tty-1.07-2.fc6
perl-DateTime-Format-Builder-0.7807-4.fc6
perl-Time-Format-1.02-1.n0i.2
perl-Test-Harness-3.07-1.fc7.rf
perl-HTML-Tagset-3.10-5.fc7
perl-Digest-MD4-1.5-3.fc6
perl-DateManip-5.44-3.fc7
perl-Net-Write-1.00-2.fc7
perl-Net-IPv6Addr-0.2-3.fc7.1
perl-Net-Packet-3.25-2.fc7
newt-perl-1.08-14
perl-SNMP_Session-1.08-3.fc6
perl-Net-IP-CMatch-0.02-4.fc6
perl-TermReadKey-2.30-1.2.2.1
perl-POE-0.9989-1.fc7
perl-DateTime-Event-Recurrence-0.16-4.fc7
perl-DateTime-Format-h t t p-0.37-2.fc6
perl-DateTime-Format-MySQL-0.04-4.fc6
perl-Net-SNMP-5.2.0-1.2.fc7.rf
perl-Net-SNMP-HostInfo-0.04-1.2.fc7.rf
perl-Test-Simple-0.74-1.fc7.rf
perl-ExtUtils-Embed-1.26-27.fc7
perl-CGI-Session-4.20-2.fc7
perl-Net-IPv4Addr-0.10-2.fc7.1
perl-URI-1.35-3
perl-DBD-Pg-1.49-3.fc7
perl-Compress-Zlib-1.42-1.fc6
perl-XML-Parser-2.34-6.1.2.2.1
perl-DBIx-DBSchema-0.36-1.fc7
perl-Digest-HMAC-1.01-15
perl-Net-Pcap-0.14-2.fc7.2
perl-Class-Singleton-1.03-4.fc7
perl-Math-Base85-0.2-3.fc7
perl-Time-Piece-MySQL-0.05-3.fc6
perl-IO-Socket-INET6-2.51-2.fc6
perl-Net-Netmask-1.9012-3.fc6
perl-Event-1.09-1.fc7
perl-DateTime-Event-ICal-0.09-3.fc7
perl-DateTime-Format-W3CDTF-0.04-2.fc7
perl-DateTime-Format-ICal-0.08-4.fc7
perl-libs-5.8.8-27.fc7
perl-ExtUtils-MakeMaker-6.30-27.fc7
perl-String-CRC32-1.4-2.fc6
perl-DBD-MySQL-3.0008-1.fc7
perl-Socket6-0.19-3.fc6
perl-IO-Interface-1.03-1.fc7
perl-Time-Piece-1.09-2.fc6
perl-TimeDate-1.16-3.2.1
perl-Tk-804.028-3.fc7
perl-Class-Factory-Util-1.7-1.fc7
perl-DateTime-Format-IBeat-0.161-4.fc6
perl-5.8.8-27.fc7
perl-Digest-SHA1-2.11-1.2.1
perl-DBI-1.53-2.fc7
perl-HTML-Parser-3.56-1.fc7
perl-XML-Simple-2.16-2.fc7
perl-Carp-Clan-5.9-1.fc7
perl-Curses-1.15-1.fc6
perl-DateTime-Set-0.25-4.fc7
perl-DateTime-Format-Strptime-1.0700-3.fc7
perl-POE-Component-SNMP-1.07-1.fc7.rf
perl-devel-5.8.8-27.fc7
perl-BSD-Resource-1.28-1.fc6.1
perl-FreezeThaw-0.43-5.fc6SNMP
net-snmp-5.4-16.fc7
php-snmp-5.2.4-1.fc7
perl-SNMP_Session-1.08-3.fc6
perl-Net-SNMP-5.2.0-1.2.fc7.rf
perl-Net-SNMP-HostInfo-0.04-1.2.fc7.rf
snmpbrowser-0.4-2.fc7.rf
net-snmp-utils-5.4-16.fc7
net-snmp-libs-5.4-16.fc7
perl-POE-Component-SNMP-1.07-1.fc7.rfThanks.
AA
-
::
Ummm, I’ve just thought about the excellent manual one of the members of the forum, Roberto, did some months ago about installing pandora in FC7.
You might want to read http://robertolitrico.blogspot.com/2007/10/how-to-install-pandora-on-fedora-server.html in order to check if you have all the perl packages he marked as “dependencies” for pandora in FC7Let us know what happens
-
::
Ok I think I am getting closer…
Database was generated on Tue, 19 Feb 2008 11:30:48 GMT
Net::SNMP is up to date (v5.2.0).Are there any other modules I might be missing?
1.3.1 version comes with a simplified subroutine to get snmp data that do not use snmp session anymore, try it:
http://artica.homelinux.com/pandora_tarball/1.3.x/?C=M;O=D
Check also the little doc about changes between 1.3.1 and 1.3 (basically a collection of fixes and improved functionalities).
http://www.openideas.info/wiki/index.php?title=Pandora_1.3:Documentation
Hope this helps to get a fully Pandora FMS experience ! 🙂
-
Anonymous
GuestFebruary 21, 2008 at 01:30::Ok
The following module was missing:
SNMP inside CPAN (must have got broken after install)Also:
net-snmp-perl-5.4-16.fc7
(Required in FC7 for CPAN SNMP to install correctly.Reinstalled the CPAN SNMP module and Pandora 1.3 snmp polling worked!
Upgraded to 1.3.1, got now an error on the pandora_server.error file:
Use of uninitialized value in multiplication (*) at /usr/bin/pandora_network line 433.
Use of uninitialized value in numeric lt (<) at /usr/bin/pandora_snmpconsole line 99.
Use of uninitialized value in numeric le (<=) at /usr/bin/pandora_snmpconsole line 106.
readline() on closed filehandle SNMPLOGFILE at /usr/bin/pandora_snmpconsole line 117.The first one is affecting my snmp polling.
The other 3, I am not sure what they will affect.These new values inside /etc/pandora/pandora_server.conf have been included:
snmp_timeout 5
snmp_checks 2
tcp_checks 3
tcp_timeout 5Thanks for the help on the SNMP issue… I am sure this one is a small detail.
AA
-
::
Ok
The following module was missing:
SNMP inside CPAN (must have got broken after install)
Also:
net-snmp-perl-5.4-16.fc7
(Required in FC7 for CPAN SNMP to install correctly.
Reinstalled the CPAN SNMP module and Pandora 1.3 snmp polling worked!
Upgraded to 1.3.1, got now an error on the pandora_server.error file:
Use of uninitialized value in multiplication (*) at /usr/bin/pandora_network line 433.Wow, this is too easy:
Line 433:
my $snmp_timeout = 1000 * 1000 * $pa_config->{“snmp_timeout”};$pa_config hash item there is defined on Config.pm of 1.3.1 version, Config.pm of 1.3 don’t have that, so probably you have not replaced old PandoraFMS/Config.pm with new one. Try to make a fully Pandora install from make:
perl Makefile.PL
make
make install (this one copy Config.pm).You’re the king of patience 🙂
-
Anonymous
GuestFebruary 21, 2008 at 02:42