Page 1 of 1

XI snmp check: Physical memory error

Posted: Fri Jul 08, 2016 5:41 am
by ericssonvietnam
./check_snmp_storage_wizard.pl -H hnrbt2 -C public --v2c -m Physical -w 80 -c 90 -f
Unknown storage : Physical : ERROR

./check_snmp_storage_wizard.pl -H HCSMS1-DB1 -C public --v2c -m Physical -w 80 -c 90 -f
Physical memory: 40%used(6568MB/16242MB) (<80%) : OK | 'Physical_memory'=6568MB;12994;14618;0;16242


I can ensure identical snmpd.conf on both client still i am getting above error for one and for others it's working fine. Any idea?
Also, is there any snmp config file other than snmpd.conf which should be identical across all client node get same result ?

Client integrated are solaris , susue and Linux. Planning to enroll windows in future..please suggest.

Also,
And what's wrong with this command ?

./check_snmp_mem.pl -H hnrbt2 -C public -2 -w 0 -c 98 -f
2 warnings and critical !
Usage: ./check_snmp_mem.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -w <warn level> -c <crit level> [-I|-N|-E] [-f] [-m] [-t <timeout>] [-V]

I am running XI latest version on redhat 6.

Re: XI snmp check: Physical memory error

Posted: Fri Jul 08, 2016 10:53 am
by tgriep
What OS are running on the servers called hnrbt2 and HCSMS1-DB1?

If the one is failing is running Solaris, the command will have to be changed from Physical to Real as the memory description are not the same as a Linux system.
Try running this instead.

Code: Select all

./check_snmp_storage_wizard.pl -H hnrbt2 -C public --v2c -m Real -w 80 -c 90 -f
What version of the check_snmp_mem.pl do you have installed? Run this and post the output.

Code: Select all

/usr/local/nagios/libexec/check_snmp_mem.pl -V
Take a look at this site to see if you are running the latest version and for examples of the command line variables.
http://nagios.manubulon.com/snmp_mem.html

Re: XI snmp check: Physical memory error

Posted: Fri Jul 15, 2016 1:45 am
by ericssonvietnam
[nagios@nagiosxi libexec]$ /usr/local/nagios/libexec/check_snmp_mem.pl -V
check_snmp_mem version : 1.1

Same issue we are facing with "CPU usage" getting the below alert on few boxes .
"Can't find CPU usage information : UNKNOWN"

Re: XI snmp check: Physical memory error

Posted: Fri Jul 15, 2016 2:43 am
by ericssonvietnam
we are getting "Can't find CPU usage information : UNKNOWN" message for few Linux servers but on most of the Linux servers its working fine

[root@nagiosxi libexec]# ./check_snmp_load_wizard.pl -H 10.10.179.11 -C public --v2c -w 90 -c 95 -f
Can't find CPU usage information : UNKNOWN

[root@nagiosxi libexec]# ./check_snmp_load_wizard.pl -H 10.10.179.21 -C public --v2c -w 90 -c 95 -f
4 CPU, average load 1.0% < 90% : OK | cpu_prct_used=1%;90;95

Please have a look and suggest the workaround.

Thanks

Re: XI snmp check: Physical memory error

Posted: Fri Jul 15, 2016 10:01 am
by lmiltchev
What OS are running on the "problem" servers?

Run the following commands from the CLI on the Nagios XI server:

Code: Select all

snmpwalk -v2c -c <community> <client ip> > /tmp/snmpwalk1.txt
snmpwalk -v2c -c <community> <client ip> -On > /tmp/snmpwalk2.txt
and upload "snmpwalk1.txt" and "snmpwalk2.txt" files that were generated in the "/tmp" directory.

Re: XI snmp check: Physical memory error

Posted: Sun Jul 17, 2016 10:12 pm
by ericssonvietnam
These are Redhat Linux OS servers.
After running the above two commands the two blank files "snmpwalk1.txt" and "snmpwalk2.txt" are generated Below is the output of the snmpwalk command :-

[nagios@nagiosxi ~]$ snmpwalk -v2c -c fishingrocks 10.10.179.11 > /tmp/snmpwalk1.txt
No log handling enabled - turning on stderr logging
Cannot find module (NET-SNMP-PASS-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 1 in (none)
Timeout: No Response from 10.10.179.11
[nagios@nagiosxi ~]$ snmpwalk -v2c -c fishingrocks 10.10.179.11 -On > /tmp/snmpwalk2.txt
No log handling enabled - turning on stderr logging
Cannot find module (NET-SNMP-PASS-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 1 in (none)
Timeout: No Response from 10.10.179.11

Re: XI snmp check: Physical memory error

Posted: Mon Jul 18, 2016 9:48 am
by lmiltchev
I am sorry - I copied/pasted my community string by accident. You should use yours - "public" or whatever you are using. Rerun the commands with the correct community string, and post both files.

Code: Select all

snmpwalk -v2c -c <community> <client ip> > /tmp/snmpwalk1.txt
snmpwalk -v2c -c <community> <client ip> -On > /tmp/snmpwalk2.txt

Re: XI snmp check: Physical memory error

Posted: Tue Jul 19, 2016 12:31 am
by ericssonvietnam
Hi , Please find the attached snmpwalk*.txt files for your reference.

Let me know if your require more info from my side.

Re: XI snmp check: Physical memory error

Posted: Tue Jul 19, 2016 11:42 am
by ssax
Please post a sanitized version of your /etc/snmp/snmpd.conf for the non-working one.

Run this command and send us any output:

Code: Select all

service snmpd restart

Thank you

Re: XI snmp check: Physical memory error

Posted: Tue Jul 19, 2016 12:01 pm
by lmiltchev
Most probably you will need to change the "view systemview included" line in the snmpd.conf (on the remote box) in order to enable access to the "HOST-RESOURCES-MIB".

Stop snmpd:

Code: Select all

service snmpd stop
Open /etc/snmp/snmpd.conf in a text editor, and change this:

Code: Select all

view systemview included .1.3.6.1.2.1.25.1.1
to this:

Code: Select all

view systemview included .1.3.6.1.2.1.25
Save, exit, and start snmpd.

Code: Select all

service snmpd start
Test your check again.

BTW, you can allow full access by changing the line to:

Code: Select all

view systemview included .1
Hope this helps.