I am trying to monitor a switch that is using SNMP v3
after using the config wizard for a network switch in XI, I get an output of '(No output on stdout) stderr: /bin/sh: -c: line 0: syntax error near unexpected token `(''
I tried it in the command line as well, and appears to be freaking when it hits the '(' that is part of the password.
is this a known issue? or am I just doing somethign worng?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
COMMAND: /usr/local/nagios/libexec/check_ifoperstatnag 16797696 -v3 -u sanswitchmonitor.svc -A \$USER9\$ -a MD5 -l authNoPriv dc-n5k-s2
OUTPUT: Usage /usr/local/nagios/libexec/check_ifoperstatnag: <interface index> <snmpget options>
Check_ifoperstatus requires that the first argument be the interface index that this interface can be found at under the remote devices snmp tree.
This should always be a positive integer, or zero.
All options beyond the first, are arguments that must follow the snmpget command line parameters.
The test is run by apache, which does not, nor should not, have access to the resource.cfg file. Please save the changes and allow the check to run as a normally scheduled nagios check as it will then run as the nagios user which does have access to resource.cfg.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
(No output on stdout) stderr: /bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/usr/local/nagios/libexec/check_ifoperstatnag 16797696 -v3 -u sanswitchmonitor.svc -A "password shows correctly" -a MD5 -l authNoPriv dc-n5k-s2'
/usr/local/nagios/libexec/check_ifoperstatnag 16797696 -v3 -u sanswitchmonitor.svc -A "<your pass here>" -a MD5 -l authNoPriv dc-n5k-s2
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Usage /usr/local/nagios/libexec/check_ifoperstatnag:
Check_ifoperstatus requires that the first argument be the interface index that this interface can be found at under the remote devices snmp tree.
This should always be a positive integer, or zero.
All options beyond the first, are arguments that must follow the snmpget command line parameters.
Think I will try to get the admin of the switch to change the password and get rid of the offending character....