Printer Page Count History

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmm72
Posts: 7
Joined: Fri Nov 13, 2015 9:24 am

Printer Page Count History

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Printer Page Count History

Post 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?
Former Nagios Employee
tmm72
Posts: 7
Joined: Fri Nov 13, 2015 9:24 am

Re: Printer Page Count History

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Printer Page Count History

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tmm72
Posts: 7
Joined: Fri Nov 13, 2015 9:24 am

Re: Printer Page Count History

Post 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
jrdalrymple
Posts: 16
Joined: Fri Nov 13, 2015 4:49 pm

Re: Printer Page Count History

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Printer Page Count History

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
tmm72
Posts: 7
Joined: Fri Nov 13, 2015 9:24 am

Re: Printer Page Count History

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Printer Page Count History

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
tmm72
Posts: 7
Joined: Fri Nov 13, 2015 9:24 am

Re: Printer Page Count History

Post 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"
Locked