network printer setup

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 setup

Post by gzarif »

How do I add a network printer for toner and maintenance kit in Nagios XI?

I have downloaded the following plugin: http://exchange.nagios.org/directory/Pl ... er/details and I've also added it in the Monitoring Plugins

From there I believe I have to go to Configure → Core Configuration Manager → Commands and click Add New.

This is where I'm stuck I'm not sure what command name/line I need to use.

I'm extremely new at this; so thanks for your patience.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: network printer setup

Post by lmiltchev »

You can use something like this:

Code: Select all

$USER1$/check_print_toner -H $HOSTADDRESS$ $ARG1$
where "$USER1$" is the path to the plugins directory (/usr/local/nagios/libexec/) and "check_print_toner" is the name of your plugin. When you create the check, you can pass your arguments to the $ARG1$ field.

I would recommend that you follow the steps, outlined in the document listed below:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
gzarif
Posts: 38
Joined: Thu Mar 26, 2015 9:44 am

Re: network printer setup

Post by gzarif »

I can't seem to get it at all, i tried everything possible.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: network printer setup

Post by tmcdonald »

Can you show us what you have added for the command? And have you created a host and service for it as well? What specifically is not working?
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: network printer setup

Post by abrist »

If your printer support hp jet direct snmp queries, you could use check_hpjd as it will notify you when toner is low:
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 setup

Post by gzarif »

98% of the printers are Xerox printers and the rest are HP LaserJet 600
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: network printer setup

Post by jdalrymple »

You'll probably have to start by fiddling with your plugin at the command line as indicated by the custom plugin document:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

Note the section "Test your plugin from the command line"

After you get it working there then putting it into XI so it works for you will be a breeze.

I recommend this plugin over the one you're trying to use as it's much more up to date and a user commented that it does work with Xerox printers.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: network printer setup

Post by abrist »

Well, many non-hp printers support the jetdirect snmp oids.
Do you know any of the specific Xerox models?
Do they support snmp, and if they do, can you walk them?
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 setup

Post by gzarif »

I will try to add different kind of xerox printer as the HP JetDirect

Also to confirm if I see/get Printer Status this means it will tell me when my toner or maintenance kit is about to run out?

See attached screen shot from an HP Printer
You do not have the required permissions to view the files attached to this post.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: network printer setup

Post by jdalrymple »

If the plugin is working properly with that device (using SNMP OID 1.3.6.1.2.1.43.11.1.1.6.1) and testing it against your thresholds - YES, that is what that means.

FYI this is a generic printer MIB, it should work with any printer, though you should also be aware that the data under that OID could be arranged differently by different vendors, especially in the event that you have multiple toner cartridges such as with a color printer.
Locked