Hello, First, this is not a question. It's a How to. In this howTo I will use a HP Laserjet Color MFP as scan-Subject.
The first Things you need are the OIDs, you will sense. Here we're using
Property | OID |
---|---|
Total Page Count | 1.3.6.1.2.1.43.10.2.1.4.1.1 |
Total Duplex Page Count | 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.22.0 |
Total Black/white printed Page Count | 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.6.0 |
Total Color printed Page Count | 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.2.7.0 |
I figured out these OIDs by myself with help of the free downloadable SNMP-Test Tool here on Paessler Website.
It's not that difficult if you first came behind the way OIDs are built up.
To create a working OIDLIB out of this data is quite easy. To be honest, I just used a MIB File, exported it with the MIB importer (also free here at this Website) and had a look into the file itself.
So you need the raw frame first:
<?xml version="1.0" encoding="UTF-8"?> <oidlist> <system> <version>2</version> </system> <list> <entry> </entry> </list> </oidlist>
Between <Entry> and </Entry> you will place your Settings for each separate channel. Here is the one for the total page channel:
<entry> <name>HP-Laserjet |page count|Total Pages</name> <lookupname></lookupname> <oid>1.3.6.1.4.1.1773.1.1.1.22.0</oid> <type>vmAbsolute</type> <kind>mkDirect</kind> <unittype>sutCustom</unittype> <units>Pages</units> <indicator>Total Pages</indicator> <scale>1</scale> <multiply>no</multiply> <max>0</max> <usegetnext>no</usegetnext> <is64bit>no</is64bit> <isunsigned>no</isunsigned> <isfloat>no</isfloat> <description>The total number of pages printed.</description> </entry>
You can copy/paste this and replace the related parts with the other OIDs. Just make sure to close the file with </list> and </oidlist>
otherwise the parser won't work.
Also make sure to set the type to vmAbsolute
I hope that helped some of you, who are on the search for a way to bring your own sensors up.
After you copied the [placeNameHere].oidlib File in %PRTGInstallPath%\snmplibs\ you can add a sensor at your device and search for "library" in the search field. then you can chose your own created oidlib file and select the sensors which fit with this device you are sensing.
Have fun!
Add comment