Network Printer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gzarif
Posts: 38
Joined: Thu Mar 26, 2015 9:44 am

Network Printer

Post by gzarif »

How do I add a network printer to Nagios XI?
gzarif
Posts: 38
Joined: Thu Mar 26, 2015 9:44 am

Re: Network Printer

Post 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%?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Network Printer

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
gzarif
Posts: 38
Joined: Thu Mar 26, 2015 9:44 am

Re: Network Printer

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Network Printer

Post by jolson »

What plugin did you use in Nagios Core, and what did your command.cfg definition look like?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
gzarif
Posts: 38
Joined: Thu Mar 26, 2015 9:44 am

Re: Network Printer

Post 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
}
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Network Printer

Post 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
You do not have the required permissions to view the files attached to this post.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
gzarif
Posts: 38
Joined: Thu Mar 26, 2015 9:44 am

Re: Network Printer

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Network Printer

Post 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!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
gzarif
Posts: 38
Joined: Thu Mar 26, 2015 9:44 am

Re: Network Printer

Post by gzarif »

I'm sorry :roll: , as I mentioned last time, I'm very new with Nagios and in coding environment.

I'm still stuck
Locked