XI snmp check: Physical memory error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

XI snmp check: Physical memory error

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: XI snmp check: Physical memory error

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: XI snmp check: Physical memory error

Post 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"
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: XI snmp check: Physical memory error

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: XI snmp check: Physical memory error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: XI snmp check: Physical memory error

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: XI snmp check: Physical memory error

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: XI snmp check: Physical memory error

Post by ericssonvietnam »

Hi , Please find the attached snmpwalk*.txt files for your reference.

Let me know if your require more info from my side.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: XI snmp check: Physical memory error

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: XI snmp check: Physical memory error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked