Page 1 of 2
network printer setup
Posted: Wed Apr 15, 2015 7:17 am
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.
Re: network printer setup
Posted: Wed Apr 15, 2015 10:02 am
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
Re: network printer setup
Posted: Wed Apr 15, 2015 11:33 am
by gzarif
I can't seem to get it at all, i tried everything possible.
Re: network printer setup
Posted: Wed Apr 15, 2015 11:38 am
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?
Re: network printer setup
Posted: Wed Apr 15, 2015 11:39 am
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
Re: network printer setup
Posted: Wed Apr 15, 2015 11:44 am
by gzarif
98% of the printers are Xerox printers and the rest are HP LaserJet 600
Re: network printer setup
Posted: Wed Apr 15, 2015 12:24 pm
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.
Re: network printer setup
Posted: Wed Apr 15, 2015 12:25 pm
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?
Re: network printer setup
Posted: Wed Apr 15, 2015 12:39 pm
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
Re: network printer setup
Posted: Wed Apr 15, 2015 12:48 pm
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.