Check_Printer Assistance Defining Command
Posted: Sat Oct 04, 2014 2:04 pm
Hello,
I'm able to manually call the plugin and receive results(ie check_printer 192.168.1.1 public 1 alerts). I do not know know how to properly define the command in commands.cfg.
The plugin help is in German which is not my native language. After I learn to properly configure the command my next goal is to define the service.
Assistance would be greatly appreciated. Thanks.
I'm able to manually call the plugin and receive results(ie check_printer 192.168.1.1 public 1 alerts). I do not know know how to properly define the command in commands.cfg.
Code: Select all
define command{
command_name check_printer
command_line /usr/lib/nagios/plugins/check_printerCode: Select all
define service{
use generic-service ; Inherit values from a template
host_name Office-Printer ; The name of the host the service is associated with
service_description Printer Alert Status ; The service description
check_command check_printer!192.168.1.1!public!1!alerts ; The command used to monitor the service and return OK,Warning,Error
}