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
|Total Page Count||22.214.171.124.126.96.36.199.188.8.131.52.1|
|Total Duplex Page Count||184.108.40.206.220.127.116.11.18.104.22.168.22.214.171.124.22.0|
|Total Black/white printed Page Count||126.96.36.199.188.8.131.52.184.108.40.206.220.127.116.11.6.0|
|Total Color printed Page Count||18.104.22.168.22.214.171.124.126.96.36.199.188.8.131.52.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>184.108.40.206.4.1.17220.127.116.11.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.