Page 1 of 2
Printer Page Count History
Posted: Wed Nov 18, 2015 10:21 am
by tmm72
I am new to the Nagios XI interface so bear with me.
What I have going on is a group that monitors the printers on the network. It currently is pinging the IP and a snmp total page count on the printer.
So what I am looking for is a history of the page counts that have been collected over time.
Thanks for your assistance.
Re: Printer Page Count History
Posted: Wed Nov 18, 2015 1:33 pm
by rkennedy
Have you seen the performance graph tab under 'Service Status Detail'? I believe this is what you're looking for.
Alternatively, there are other reports that may work for you under the 'Reports' tab -> 'Trends'.
Does this answer your question?
Re: Printer Page Count History
Posted: Wed Nov 18, 2015 2:08 pm
by tmm72
Well I have seen those but that just shows the state of the service. Not the in my instance the page count of what it collected over a time period.
Re: Printer Page Count History
Posted: Wed Nov 18, 2015 5:49 pm
by tgriep
From the Home Screen, click on the Graph Explorer link and click the Scalable Performance Graph Tab and see if that gives you what you are looking for.
Re: Printer Page Count History
Posted: Thu Nov 19, 2015 8:51 am
by tmm72
Those are all performance graphs of the service checking the services.
That I am looking for is a graph or list of values that show the history of the service that checks the page counts.
So in example
Date - Page Count
11/1/15 - 12563
11/2/15 - 12658
11/3/15 - 12796
Re: Printer Page Count History
Posted: Thu Nov 19, 2015 2:28 pm
by jrdalrymple
I'm assuming that your service check results look something like this:
OK - 100000 pages printed
5 minutes later
OK - 100001 pages printed
5 minutes later
OK - 100003 pages printed
etc. right?
So Nagios is not stateful by default. It doesn't break things up into time periods. If you want to do that you'll have to create a custom wrapper and turn your service check into something that looks like:
OK - 1500 pages printed in the past 24 hours
OK - 1501 pages printed in the past 24 hours
OK - 1499 pages printed in the past 24 hours
Meaning Nagios will have to save some data and do some math for you. What you're seeking isn't built in.
Re: Printer Page Count History
Posted: Thu Nov 19, 2015 3:22 pm
by lmiltchev
In case you are going to write a custom plugin, check our the Nagios Plugin Development GUidelines here:
https://nagios-plugins.org/doc/guidelines.html
Re: Printer Page Count History
Posted: Thu Nov 19, 2015 3:24 pm
by tmm72
So one question is that when it is checking the drives on the system it keeps a record of the usage etc.
That is what I am looking for is a history of what is collected.
Re: Printer Page Count History
Posted: Thu Nov 19, 2015 4:49 pm
by lmiltchev
What is the plugin that you are currently using for checking the printer page count? Can you provide us with a URL link to it? Does the plugin return perfdata?
Re: Printer Page Count History
Posted: Thu Nov 19, 2015 4:53 pm
by tmm72
What I have setup is check command check_xi_service_snmp
snmp-check -p 161 -o mib-2.43.10.2.1.4.1.1 -C public -P 2c -m SNMPv2-SMI
It returns "SNMP OK - 280427"