Help Graphing items from file

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
kondoor
Posts: 12
Joined: Tue Mar 01, 2005 3:31 pm

Help Graphing items from file

Post by kondoor »

I would like to be able to graph how many pages we print every day on all of our printers combined. I figured the easiest way to do this would be to do the following, please tell me if I am totally off base here

I am graphing how many pages per day we print on each printer using the information from this thread http://forums.cacti.net/about4422.html and it is working great. To me the logical way to add them all together would be to create a cron job that does a snmpwalk on the oid and pipe it to a text file for each printer, giving me a result like this for each printer
SNMPv2-SMI::mib-2.43.10.2.1.5.1.1 = Counter32: 543 where 543 is the number of pages for the day printed and then just write a script to get the total. Thats where I get stuck how do i get that number into cacti or rrd or whatever I need to. Or am I going about this totally wrong and there is a much better way to do this. We currently have around 90 printers I am monitoring, but I am really noob at cacti, having only used it for about 3 weeks now, but successfully monitoring 40 servers, 23 routers and 90 printers with more devices to come. Help please, and thanks in advance.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Since you are already polling the devices, you could create an aggregate graph following the directions here: http://forums.cacti.net/viewtopic.php?t=5703
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
kondoor
Posts: 12
Joined: Tue Mar 01, 2005 3:31 pm

Post by kondoor »

Thanks for the link

I will try that when I get into work tomorrow, but my initial question after looking at that is will i have 90 items in the legend?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Only if you add the Legend items. You could simply add the Legend item for the total.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
kondoor
Posts: 12
Joined: Tue Mar 01, 2005 3:31 pm

Post by kondoor »

Thanks for the help, I think I got it going, it will look better once I have a real days data. Here is one of my branches
Attachments
graph_image.php.png
graph_image.php.png (10.31 KiB) Viewed 1818 times
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Nice.

I think if I graphed the pages printed around here, someone would get fired :)
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
kondoor
Posts: 12
Joined: Tue Mar 01, 2005 3:31 pm

Post by kondoor »

funny you say that about people getting fired, I am on a crusade to get people to quit printing stupid things like email, jokes, webpages, and that sort of thing. Along with graphing how many pages are sent to the printer each day I also have syslog setup and I am keeping track of who is printing stuff to each printer. I hopefully won't have to go to the resort of getting people fired.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests