Random Project

Question

Hello,
I wanted to try your snmp_printer plugin but I’m a bit lost. I don’t know how to describe the plugin in the commands.cfg and in my printer.cfg

Actually I have something like that :

In commands.cfg
# ‘check_snmp_printer.pl’ command definition
define command{
command_name check_snmp_printer
command_line $USER1$/check_snmp_printer.pl -H $HOSTADDRESS$ $ARG1$ -P -S -t $ARG2$

And in printer.cfg
define service{
use generic-service
host_name Printer1
service_description Toner Supply
check_command check_snmp_printer!public!”CONSUM Toners”!20!10
}

define service{
use generic-service
host_name Printer1
service_description Printer Model
check_command check_snmp_printer!public!”MODEL”
}
Thanks for your help.