Page 1 of 1

How to use snmp

Posted: Thu Jan 29, 2015 4:18 pm
by tzviak1
Hello,

I have added a linux box on the same network that im in. This box is already set with SNMP it is being reached from another monitoring system all on same network.

When i perform a check i get the following:

COMMAND: /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H 10.3.4.5 -C
OUTPUT: Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -m <name in desc_oid> [-q storagetype] -w <warn_level> -c <crit_level> [-t <timeout>] [-T pl|pu|bl|bu ] [-r -s -i -G] [-e] [-S 0|1[,1,<car>]] [-o <octet_length>] [-R <% reserved>]

Am i suppose to modify the command manually? I used the wizard.

Re: How to use snmp

Posted: Thu Jan 29, 2015 4:30 pm
by scottwilkerson
The wizard should have put more in there, most specifically the version of SNMP and the SNMP community string, you may need to re-run the wizard..

Re: How to use snmp

Posted: Thu Jan 29, 2015 4:55 pm
by tzviak1
I just did,

/ Disk Usage Unknown error - Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2]
CPU Usage Unknown error - put warning and critical info!
Memory Usage Unknown error - Usage: check_snmp_storage [-v] -H <host> -C <snmp_community> [-2]

That is what im seeing in the services status table.
The message below was from the service config test page its like it doesn't pass the arguments or something?

Re: How to use snmp

Posted: Thu Jan 29, 2015 5:16 pm
by scottwilkerson
By chance does your community string have special chars like a ; $ or & ??

They may need to be escaped