check_sharp_81

Ok, I created a script file called: check_sharp_81 here are the contents:

a=snmpwalk -v 1 -c public 192.168.2.81 | grep '2.43.17.6.1.5.1.1'
echo $a | awk -F: ‘{ print $4 }’

It prints the status of the printer, the preceding command returns “Ready.”

I created the following command:

define command {
command_name check_sharp_81
command_line $USER11/check_check_sharp_81
}

The command runs, but the Status Information Box simply says: (null)

The permissions are set correctly and nothing is logged.

I’m lost.

Thanks,

–tj

I corrected the file name, but still returning (null) status information

I put the full path at it’s working now. Sorry for the post.

–tj