Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

harmscon

Reviews(1)
byharmscon, May 17, 2011
SNMP Printer Check
Works well for 3 different brand network printers.
I had to make the following changes to get the plugin to run:
1. dos2unix
2. set bash as shell
3.put quotes around MARKER_COLOR to eliminate grep error messages
4.new line after here doc terminator

$ diff -b ../../Downloads/firefox/check_snmp_printer_args.sh /usr/lib/nagios/plugins/check_snmp_printer_args.sh
1c1
#!/bin/bash
495a496
> CURRENT_STATUS=0
561c562
if $(echo "$MARKER_NAME" | grep -vqi "$MARKER_COLOR"); then
1022c1023,1024
all_required_binaries
> )
Owner's reply

#1 should not be needed with the latest versions of the plugin, but yes I have received a few complaints about dos2unix before. That's what happens when I don't have a Linux workstation at my company :)

#2 is needed for Ubuntu machines, yes. All other distros use BASH or an interpreter that works with the plugin.

#3 should be fixed already in the latest version of the plugin.

I will have to investigate #4 but have not heard other complains about this.