Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@pevsyl
Favorites0
Views
Projects0
After the instalation in a debian nagios server. Some problem appeared. 1) line 60: Syntax Error: "(" unexpected... You need to change the First line to #!/bin/bash 2) Some of problem with the consumable. Ie when you say ./check_snmp_printer 172.16.146.14 public CONSUM noir you have : Error OID not found,maybe your Printer does not support checking this device, call me with Option CONSUM TEST or see help. The part for consumable code begin at the line 180. the ID is not correct you need to change -f8 with -f13 3) I have one consumable with 10% and that cause an error. you need to change the condition in the if. -lt with -le for example : if [ "$STATUS" -le "30" ] and if [ "$STATUS" -le "10" ] You may not have these errors but me I had. Sorry for my bad english. I will say, I have never develop with bash before.
Reviewed 9 years ago