Problems with passing $ to plugins
Posted: Tue Jun 03, 2014 3:31 am
Since my upgrade to Core-4 it appears that I can no longer pass a "$" character in the community string to the check_snmp_uptinme.pl script
I used to be able to do this by using \\$$ before my upgrade to NagiosXI 2014 R1.0
If I run it from the command line it works OK
./check_snmp_uptime.pl -H 10.1.1.1 -C pas\$word
I have updated the $ARG1$ variable now to pas$word as the Nagios service command appears to actually add a backslash now when I run the Test Check Command
COMMAND:check_snmp_uptime.pl -H 10.1.1.1 -C pas\$word
OUTPUT:
I have now tried all sorts of combinations of \ , \\ , $ and $$ to no avail.
regards... Fred
I used to be able to do this by using \\$$ before my upgrade to NagiosXI 2014 R1.0
If I run it from the command line it works OK
./check_snmp_uptime.pl -H 10.1.1.1 -C pas\$word
I have updated the $ARG1$ variable now to pas$word as the Nagios service command appears to actually add a backslash now when I run the Test Check Command
COMMAND:check_snmp_uptime.pl -H 10.1.1.1 -C pas\$word
OUTPUT:
I have now tried all sorts of combinations of \ , \\ , $ and $$ to no avail.
regards... Fred