Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
define host{
use generic-printer ; Inherit default values from a template
host_name Pontefract ; The name we're giving to this printer
alias HP LaserJet 2605dn ; A longer name associated with the printer
address 888.888.888.888 ; IP address of the printer
hostgroups network-printers ; Host groups this printer is associated with
}
define service{
use generic-service ; Inherit values from a template
host_name Pontefract ; The name of the host the service is associated with
service_description Printer Status ; The service description
check_command check_hpjd!-C public ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
define service{
use generic-service
host_name Pontefract
service_description PING
check_command check_ping!3000.0,80%!5000.0,100%
normal_check_interval 5
retry_check_interval 1
}
Using the above, I have set up monitoring for our office network printer and although the ping test work correctly, I'm seeing the following in the browser:
Timeout: No Response from 888.888.888.888:161. : Timeout from host 888.888.888.888
I'm not sure where it's getting the :161 from, as I didn't specify it anywhere. I've looked at the printer and it's not showing any obvious signs of distress - can anyone suggest what the problem might be?
define host{
use generic-printer ; Inherit default values from a template
host_name Pontefract ; The name we're giving to this printer
alias HP LaserJet 2605dn ; A longer name associated with the printer
address 888.888.888.888 ; IP address of the printer
hostgroups network-printers ; Host groups this printer is associated with
}
define service{
use generic-service ; Inherit values from a template
host_name Pontefract ; The name of the host the service is associated with
service_description Printer Status ; The service description
check_command check_hpjd!-C public ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
define service{
use generic-service
host_name Pontefract
service_description PING
check_command check_ping!3000.0,80%!5000.0,100%
normal_check_interval 5
retry_check_interval 1
}
Using the above, I have set up monitoring for our office network printer and although the ping test work correctly, I'm seeing the following in the browser:
Timeout: No Response from 888.888.888.888:161. : Timeout from host 888.888.888.888
I'm not sure where it's getting the :161 from, as I didn't specify it anywhere. I've looked at the printer and it's not showing any obvious signs of distress - can anyone suggest what the problem might be?
Thanks in advance
Pete
Port 161 is SNMP. To get more specific information from the printer it is going to need to use SNMP. SNMP can be pretty interesting, but kind of a lot when you're first getting started. The first step you are going to want to take is to find out if your printer is able to support it.