Quantcast
Channel: Spiceworks Community - Latest topics
Viewing all articles
Browse latest Browse all 183079

check_snmp_printer

$
0
0

New(er) to Nagios here. Any assistance would be greatly appreciated, right after I bang my head off the wall one more time.

I found a 3rd pty check command on Nagios Exchange called check_snmp_printer

http://exchange.nagios.org/directory/Plugins/Hardware/Printers/check_snmp_printer/details

I have it defined (correctly?) in commands.cfg. Please double check:

# 'check_snmp_printer' command definition
define command{
command_name check_snmp_printer
command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ $ARG1$ $ARG2$
}

I then created printer-038.cfg and appended the following:

define service{
use generic-service
host_name PRINTER-038
service_description check_snmp_printer
check_command check_snmp_printer!public,CONSUM ALL
normal_check_interval 10
retry_check_interval 1
}

--------------------

Now when I run ./check_snmp_printer 172.18.0.2 public CONSUM ALL I get the output i need.

HOWEVER, when i let nagios run it, she says:

check_snmp_printer UNKNOWN 03-18-2013 11:37:28 0d 0h 9m 35s 3/3

usage is:

I am banging my head off the wall trying to figure out what i did wrong. Any assistance would be greatly appreciated!!!!!!!

edit____ here's the output of the actual issue.

Status Information: usage is:
/usr/local/nagios/libexec/check_snmp_printer
where CHECK can be:
MESSAGES
MODEL
CONSUM TEST
CONSUM ALL
CONSUM
PAPER1
PAPER2
PAPER3
PAGECOUNT
CONSUM TEST, will give you the exact Names of installed Consumables like:
"Black Toner Cartridge HP C4191A"
For monitoring this consumable you'll call me like this:
/usr/local/nagios/libexec/check_snmp_printer CONSUM black
The string just needs to be unique
CONSUM ALL will give you all the Stuff at once...


Viewing all articles
Browse latest Browse all 183079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>