Monitoring printers

 

All operations will be done on the Nagwin machine:

 

  • Copy contents of check-printer archive to <inst-dir>/plugins/check_printer directory (if it doesn't exist before)
  • Define the following command in the nagios configuration directory (<inst.dir>/nagios/nagwin/printer-commands.cfg for example):

 

################################################################################
#
# PRINTER COMMANDS
#
################################################################################

# 'check_printer' command definition
define command{
    command_name    check_printer
    command_line    $USER1$/check_printer/check_printer --host $HOSTADDRESS$
}

 

  • Create a configuration file for each printer (home-laser in our example) in etc/nagios/nagwin directory:
# Define printer
define host{
use generic-printer
host_name home-laser
alias Brother HL-2270DW
address ip.add.re.ss
}

define service{
use generic-service
host_name home-laser
service_description Printer status
check_command check_printer
}

 

  • Restart Nagwin_Nagios service and check results via web interface.

 

Release announcements