Page 1 of 2
Network Printer
Posted: Fri Apr 10, 2015 12:37 pm
by gzarif
How do I add a network printer to Nagios XI?
Re: Network Printer
Posted: Fri Apr 10, 2015 1:23 pm
by gzarif
I believe that i need to use SNMP however; how can I check for printer cartridge when it reached 5% of it's like and how do I also check for the maintenance kit when it reaches 5%?
Re: Network Printer
Posted: Fri Apr 10, 2015 2:03 pm
by abrist
You can use the nagios-plugins check_hpjd if the printer complies with hp jetdirect snmp queries:
http://nagios-plugins.org/doc/man/check_hpjd.html
Re: Network Printer
Posted: Mon Apr 13, 2015 7:58 am
by gzarif
98% of the printer that I have here at Xerox.
I used to have Nagios Core that that was able to check it for me right now I have no idea how to configure it.
Re: Network Printer
Posted: Mon Apr 13, 2015 9:13 am
by jolson
What plugin did you use in Nagios Core, and what did your command.cfg definition look like?
Re: Network Printer
Posted: Mon Apr 13, 2015 11:17 am
by gzarif
The nagios core was setup before i joined the organization; this is my first time using nagios and working with it.
I have attached the command.cfg file from nagios core.
also example of the services from nagios 4
define service {
hostgroup_name printer_maintenace
service_description MAINTENANCE
check_command check_print_toner!public!2
use generic-service
}
define service {
hostgroup_name printers
service_description TONER
check_command check_print_toner!public!1
use generic-service
}
Re: Network Printer
Posted: Mon Apr 13, 2015 11:37 am
by jolson
It looks like Nagios Core was using the following plugin:
http://exchange.nagios.org/directory/Pl ... er/details
Please download that plugin and install it in Nagios XI:
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Once installed, you will need to generate a command for it - from there, you will be able to define a new service check for your printer toner using the Nagios Core definitions as a guide. Let me know if you run into any trouble along the way. Thank you!
Your command definition may look something like the following:
3.PNG
Re: Network Printer
Posted: Tue Apr 14, 2015 11:34 am
by gzarif
I've installed the plug in however at the Command Management I'm not sure what command name or line it needs to be.
Any guidance in that?
Also I need to check/monitor the maintenance kit; I think we only added the toner right?
Thanks,
G
Re: Network Printer
Posted: Tue Apr 14, 2015 3:09 pm
by jolson
To determine what you need to add as arguments, let's try running it from the command line with the 'help' argument:
Code: Select all
bash /usr/local/nagios/libexec/check_print_toner -h
Looks like you may need a logging directory:
Code: Select all
mkdir /usr/local/nagios/var/check_print_toner_logs/ && chown nagios:nagios /usr/local/nagios/var/check_print_toner_logs/
The usage is described as follows:
Code: Select all
Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline]
[-p pattern] [-s packetsize] [-t ttl] [-I interface or address]
[-M mtu discovery hint] [-S sndbuf]
[ -T timestamp option ] [ -Q tos ] [hop1 ...] destination
Define your command as appropriate in your 'Command Definition', and fill our the arguments as appropriate in your 'service definition'. Please let us know if you need further help. Thanks!
Re: Network Printer
Posted: Wed Apr 15, 2015 7:23 am
by gzarif
I'm sorry

, as I mentioned last time, I'm very new with Nagios and in coding environment.
I'm still stuck