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,
HP 2500 Laser Color Printer
Moderators: Developers, Moderators
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!
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!
Hehe...
I will change it...
Let us move to my topic... => http://forums.cacti.net/viewtopic.php?t=24159
I will change it...
Let us move to my topic... => http://forums.cacti.net/viewtopic.php?t=24159
Who is online
Users browsing this forum: No registered users and 0 guests