Having some trouble getting a plug-in to work properly as a command.  I've 
already confirmed the perl script itself (check_snmp_cisco_stack @ 
http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1%5Bp_view%5D=891)
 is working fine.  I've tried calling the device/zSnmpCommunity string, 
escaping the literal, quoting, double quoting, escaping while quoting....  
Pretty well everything I can think of to get the meta characters in the SNMP 
community string to pass properly.... No luck.  If anyone has an idea, I'd 
greatly appreciate it.  Output below.

Output when using the device/zSnmpCommunity string...

Code:
Command: check_snmp_cisco_stack -H ${dev/manageIp} -C ${device/zSnmpCommunity}
Description: Check stack status
Output:
==== switch1 ====
check_snmp_cisco_stack -H 192.168.0.1 -C testS!r$nG
ERROR: No response from remote host '192.168.0.1'.
DONE in 6 seconds on 1 targets



Output when using literal string, quoting method, etc....

Code:
Command: check_snmp_cisco_stack -H ${dev/manageIp} -C testS\!r\$nG
Description: Check stack status
Output:
==== switch1 ====
exception while performing command for switch1
type: exceptions.KeyError value: 'nG'
DONE in 0 seconds on 1 targets



Output from invoking the perl script from the terminal...

Code:
$ check_snmp_cisco_stack -H 192.168.0.1 -C testS\!r\$nG
Stack Ring: Full, Member 1: ready, Member 2: ready
$






-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=16390#16390

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to