HP 2500 Laser Color Printer

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

jweinraub
Cacti User
Posts: 61
Joined: Fri Apr 13, 2007 9:21 am

Post by jweinraub »

that does look like a clever idea. i was wondering if that would be possible since the web admin site gets the data from some place. right now i am out of my office right i will look into this tomorrow.

i am not from germany, however my grandfather and father were both born there.

thanks and regards,
tkempken
Posts: 24
Joined: Wed Nov 07, 2007 12:12 pm
Contact:

Post by tkempken »

ah.. ;-)

thanks... i hope it will work for you on first try...

please let me know if it works for you
jweinraub
Cacti User
Posts: 61
Joined: Fri Apr 13, 2007 9:21 am

Post by jweinraub »

I suspect you are from Germany?

Well... my first try failed because I never bothered to read the instructions. I did ./script.php my_ip_addr

As for my second try, ... nicht schlecht!

[jweinraub@intranet ~]$ ./get_data.php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
rest_toner_black:59 rest_toner_magenta:43 rest_toner_cyan:43 rest_toner_yellow:43 left_pages_black:2518 left_pages_magenta:1324 left_pages_cyan:1324 left_pages_yellow:1324 printed_pages_black:1750 printed_pages_magenta:1756 printed_pages_cyan:1756 printed_pages_yellow:1756

I don't know why I get this warning. I don't know if this is due to your script or my PHP configuration since I recently upgraded to PHP5, compiled from source since RHEL 4 does not support PHP5 just yet :-(.

I have several of these printers. So I wonder if it is possible to make this work with them all. Do I need to use a variable for $ip?

Or do i need several instances when I graph these. Another thing I use here is nagios. I wonder if it is easy to make this into a nagios plugin so i can get warnings when the ink is low.

Thanks! Danke schön!
tkempken
Posts: 24
Joined: Wed Nov 07, 2007 12:12 pm
Contact:

Post by tkempken »

Hehe...

I will change it...

Let us move to my topic... => http://forums.cacti.net/viewtopic.php?t=24159
bryanwheeler1

Post by bryanwheeler1 »

The link is full of specification.Very helpful for me also.Thanks for share.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests