Nagios fails the SNMP check, command line works fine

Tom Nail tom.nail at amd.com
Wed Aug 15 22:46:20 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ajitabh,

does your target machine have an SNMP v3 secName/password set up for the
nagios user? This sounds suspiciously like a permissions problem. Try this:

su -l nagios -c "snmpwalk -v 3 -u nagios -X <passwd> target_host"

And see what it returns.

cheers,

- -=Tom Nail

Ajitabh Pandey wrote:
> Hi,
> 
> I am facing a very strange problem. This problem is only on certain 
> hosts. The monitored hosts are a mix of win2k and win2003 servers with 
> SNMP enabled.
> 
> When I run the plugins from command line (see below):
> 
> /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H 
> myhost01.tld.com  -C public -2 -T pu -m ^C -w 80 -c 90
> C:\ Label:System  Serial Number d04cc42c: 59%used(6524MB/11112MB) (<80%) 
> : OK
> 
> [ajitabhp at nagios01 services]$ 
> /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H 
> myhost01.tld.com  -C public -2 -T pu -m ^D -w 80 -c 90
> D:\ Label:Data  Serial Number 1442142f: 71%used(364130MB/514064MB) 
> (<80%) : OK
> 
> [ajitabhp at nagios01 services]$ 
> /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H 
> myhost01.tld.com  -C public -2 -T pu -m Physical -w 80 -c 90
> Physical Memory: 88%used(3168MB/3582MB) (>80%) : WARNING
> 
> [ajitabhp at nagios01 services]$ 
> /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H 
> myhost01.tld.com  -C public -2 -T pu -m Virtual -w 80 -c 90
> Virtual Memory: 52%used(3871MB/7428MB) (<80%) : OK
> 
> They all work. But the same plugins commands when run by nagios gives me 
> error:
> ERROR: Description/Type table : No response from remote host '192.168.0.110'
> 
> This problem is on certain hosts (around 10-15) and is working fine on 
> some other 300+ servers. I have listed only few checks, but the fact is 
> all SNMP checks are giving exactly the same problems. Other checks viz 
> direct TCP port connections, HTTPD service checks etc are working fine.
> 
> What could be the reason? Nagios version is 2.8 and all plugins are 
> downloaded from nagiosexchange website. I dont have any reason to 
> suspect my command and service definitions as the same checks are 
> working ok for other similarly configured hosts.
> 
> I am in a sort of urgent need of a solution, so an early reply will be 
> appreciated
> 
> Regards.
> Ajitabh Pandey
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGw2Yc1zsLRjt/NQ0RAoJqAJ4v1s1NOjVUqxUwOJMMMNh8IJW+3ACfTYj5
wDRwOOQmUJ1touiPvM9KvmA=
=TUQB
-----END PGP SIGNATURE-----



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list