hrPrinterStatus

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

Moderators: Developers, Moderators

Post Reply
omz13
Posts: 8
Joined: Thu May 12, 2005 5:03 pm
Location: Luxembourg
Contact:

hrPrinterStatus

Post by omz13 »

Greetings,

I am trying to monitor the printer status of my Xerox beast that sits beside me.

The data is quite easy to get at from the command line:

# snmpget -c public -v 1 -OnU n2025 1.3.6.1.2.1.25.3.5.1.1.1
.1.3.6.1.2.1.25.3.5.1.1.1 = INTEGER: idle(3)

In cacti I've set up a data template, etc., but when I try to retrieve this data, I'm getting the following error:

05/15/2005 04:10:04 PM - CMDPHP: Poller[0] Host[10] WARNING: Result from SNMP not valid. Partial Result: idle(3)

Any ideas how I can get cacti to read the result (preferably without having to muck around by writing a script to do that call and mangle the output...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Could try applying the patch here, http://forums.cacti.net/viewtopic.php?t=7289&start=15 (scroll down to the bottom), which should eliminate the text from being returned. But since the number is inside the text, my guess is that it will remove it all.

Another option is to run net-snmp with the option to not return any text.

Lastly, creating and running a script, isn't that hard to do.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests