<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>ZenPacks : 2NMS PrinterMIB : Comments</title>
    <link>http://community.zenoss.org/docs/DOC-11311#comments</link>
    <description>Comments on : 2NMS PrinterMIB</description>
    <language>en</language>
    <pubDate>Thu, 27 Oct 2011 08:02:35 GMT</pubDate>
    <generator>Jive SBS 4.5.6.2  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2011-10-27T08:02:35Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4728</link>
      <description>&lt;!-- [DocumentBodyStart:9d91906b-48a1-4f0a-8df2-b8b383af66df] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Looks real good but modelling breaks down with our printers (2 tried so far - HP &amp;amp; Canon).&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;In investigating deeper by uncommenting the two debug lines in 'PrinterMap.py' (line 113 &amp;amp; 114) the following is output:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;2011-10-27 16:24:13,482 WARNING zen.ZenModeler: Get Data= {} &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;2011-10-27 16:24:13,483 WARNING zen.ZenModeler: Table Data= {'prtMarkerSupplies': {'1': {'PrtMarkerSuppliesTypeTC': 3, 'prtMarkerSuppliesLevel': 2500, 'PrtMarkerSuppliesSupplyUnitTC': 13, 'prtMarkerSuppliesDescription': 'Canon Cartridge 323/323 II Black', 'prtMarkerSuppliesMaxCapacity': 2500}, '3': {'PrtMarkerSuppliesTypeTC': 3, 'prtMarkerSuppliesLevel': 1510, 'PrtMarkerSuppliesSupplyUnitTC': 13, 'prtMarkerSuppliesDescription': 'Canon Cartridge 323 Magenta', 'prtMarkerSuppliesMaxCapacity': 1510}, '2': {'PrtMarkerSuppliesTypeTC': 3, 'prtMarkerSuppliesLevel': 1510, 'PrtMarkerSuppliesSupplyUnitTC': 13, 'prtMarkerSuppliesDescription': 'Canon Cartridge 323 Yellow', 'prtMarkerSuppliesMaxCapacity': 1510}, '5': {'PrtMarkerSuppliesTypeTC': 4, 'prtMarkerSuppliesLevel': -3, 'PrtMarkerSuppliesSupplyUnitTC': 13, 'prtMarkerSuppliesDescription': 'Waste Toner', 'prtMarkerSuppliesMaxCapacity': 1700}, '4': {'PrtMarkerSuppliesTypeTC': 3, 'prtMarkerSuppliesLevel': 1510, 'PrtMarkerSuppliesSupplyUnitTC': 13, 'prtMarkerSuppliesDescription': 'Canon Cartridge 323 Cyan', 'prtMarkerSuppliesMaxCapacity': 1510}}, 'prtMarkerColorant': {'1': {'prtMarkerColorantValue': 'black', 'prtMarkerColorantIndex': 1}, '3': {'prtMarkerColorantValue': 'magenta', 'prtMarkerColorantIndex': 1}, '2': {'prtMarkerColorantValue': 'yellow', 'prtMarkerColorantIndex': 1}, '4': {'prtMarkerColorantValue': 'cyan', 'prtMarkerColorantIndex': 1}}} &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;2011-10-27 16:24:13,484 ERROR zen.ZenModeler: Problem while executing plugin TwoNMS.snmp.PrinterMap &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;2011-10-27 16:24:13,486 ERROR zen.ZenModeler: Traceback (most recent call last): &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;File "/usr/local/zenoss/zenoss/Products/DataCollector/zenmodeler.py", line 623, in processClient &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;datamaps = plugin.process(device, results, self.log) &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.TwoNMS.PrinterMIB-1.0-py2.6.egg/ZenPacks/TwoNMS/PrinterMIB/modeler/plugins/TwoNMS/snmp/PrinterMap.py", line 136, in process &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;omcolor = self.objectMap(colors[oid]) &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;KeyError: '5'&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;The problem seems to stem from that "prtMarkerSupplies" is an array of size 5 listing values in the order of 1, 3, 2, 5, 4.&amp;#160; These values are then used to parse the "prtMarkerColorant" array that only has 4 values.&amp;#160; Natrually the array goes out of bounds when it tries to reference colors[5].&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I am not a Python boy so cannot reliably suggest the fix to this, however it seems a simple IF statement should enable skipping any invalid entries for color.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;eg.&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;for&amp;#160; oid,data in supplies.iteritems():&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160; omsupply = self.objectMap(data)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160; if oid &amp;lt;= colors.iteritems() then&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160; omcolor = self.objectMap(colors[oid]) &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160; {process more color code if needed}&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160; {next code}&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I'm not sure the split should be for the end of the IF statement or even if this would break later code.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Is this resonable?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9d91906b-48a1-4f0a-8df2-b8b383af66df] --&gt;</description>
      <pubDate>Thu, 27 Oct 2011 08:02:35 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4728</guid>
      <dc:date>2011-10-27T08:02:35Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4729</link>
      <description>&lt;!-- [DocumentBodyStart:a41a42c6-b6ce-4bb5-9cf5-f603ccb06773] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;HI,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I didn't realize there were printer supplies that don't have a color value.&lt;/p&gt;&lt;p&gt;Probably the best way to fix this is to add en eval and catch indexError statement.&amp;#160; I need to look at the exact code, but it would be something like this:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;span style="font-size: 12pt;"&gt;for&amp;#160; oid,data in supplies.iteritems():&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;span style="font-size: 12pt;"&gt;&amp;#160;&amp;#160; omsupply = self.objectMap(data)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;span style="font-size: 12pt;"&gt;&amp;#160;&amp;#160; try: &lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;span style="font-size: 12pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omcolor = self.objectMap(colors[oid]) &lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;span style="font-size: 12pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {process more color code if needed}&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 12pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; catch &lt;span class="kw2"&gt;&lt;strong class="highlight"&gt;IndexError&lt;/strong&gt;&lt;/span&gt;, e:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 12pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {do something, or ignore error}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;span style="font-size: 12pt;"&gt;&amp;#160;&amp;#160; {next code}&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"&gt;﻿&lt;/div&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a41a42c6-b6ce-4bb5-9cf5-f603ccb06773] --&gt;</description>
      <pubDate>Thu, 27 Oct 2011 12:32:32 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4729</guid>
      <dc:date>2011-10-27T12:32:32Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4730</link>
      <description>&lt;!-- [DocumentBodyStart:00bc8108-27db-4ffe-bec6-f6c7e4390c81] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Maarten,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Yes the supplies in question would be things such as fuser, waste toner bin, paper transport, oil roll, and maybe others.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I'll try your code on the one line giving errors tomorrow and post results.&amp;#160; Will post the full sub routine if further errors are beyond me.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;J&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Sent from my iPad&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:00bc8108-27db-4ffe-bec6-f6c7e4390c81] --&gt;</description>
      <pubDate>Thu, 27 Oct 2011 13:06:20 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4730</guid>
      <dc:date>2011-10-27T13:06:20Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4735</link>
      <description>&lt;!-- [DocumentBodyStart:30b430f3-98c2-40ec-b4e0-7b6162866319] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have had some success changing this code:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt; for oid,data in supplies.iteritems():&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply = self.objectMap(data)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omcolor = self.objectMap(colors[oid])&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.id = self.prepId(omcolor.prtMarkerColorantValue)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.snmpindex = omcolor.prtMarkerColorantIndex&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantValue = omcolor.prtMarkerColorantValue&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantIndex = omcolor.prtMarkerColorantIndex&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.PrtMarkerSuppliesTypeTC = self.cartType[str(omsupply.PrtMarkerSuppliesTypeTC)]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.PrtMarkerSuppliesSupplyUnitTC = self.cartUnit[str(omsupply.PrtMarkerSuppliesSupplyUnitTC)]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.rgbColorCode = self.rgbColorCodes[omcolor.prtMarkerColorantValue]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; except KeyError:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; log.error("error occurred " )&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.rgbColorCode = self.rgbColorCodes['unknown']&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; rm.append(omsupply) &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;to this:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt; for oid,data in supplies.iteritems():&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply = self.objectMap(data)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omcolor = self.objectMap(colors[oid])&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.id = self.prepId(omcolor.prtMarkerColorantValue)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.snmpindex = omcolor.prtMarkerColorantIndex&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantValue = omcolor.prtMarkerColorantValue&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantIndex = omcolor.prtMarkerColorantIndex&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; except KeyError:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.id = self.prepId(1)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.snmpindex = 1&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantValue = 'N/A'&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantIndex = 1&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.PrtMarkerSuppliesTypeTC = self.cartType[str(omsupply.PrtMarkerSuppliesTypeTC)]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.PrtMarkerSuppliesSupplyUnitTC = self.cartUnit[str(omsupply.PrtMarkerSuppliesSupplyUnitTC)]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.rgbColorCode = self.rgbColorCodes[omcolor.prtMarkerColorantValue]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; except KeyError:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; log.error("error occurred " )&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.rgbColorCode = self.rgbColorCodes['unknown']&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; rm.append(omsupply) &lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;The printers now model okay and the non-toner consumables are marked with a colorant of 'N/A'.&amp;#160; I assigned other default values of '1' to id, snmpindex, prtMarkerColorantIndex, but I am unsure if this is correct or might cause other issues.&amp;#160; Any feedback here?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:30b430f3-98c2-40ec-b4e0-7b6162866319] --&gt;</description>
      <pubDate>Fri, 28 Oct 2011 01:53:14 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4735</guid>
      <dc:date>2011-10-28T01:53:14Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4736</link>
      <description>&lt;!-- [DocumentBodyStart:6d6e7f8a-9fb2-4f5e-a8cb-421a905417f0] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Another correction:&lt;/p&gt;&lt;p&gt;/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.TwoNMS.PrinterMIB-1.0-py2.6.egg/ZenPacks/TwoNMS/PrinterMIB/reports/PrinterMIB/Inventory Report.rpt&lt;/p&gt;&lt;p&gt;Line 47 reads:&lt;/p&gt;&lt;p&gt; tableName,'inkused','Pct Ink Used')"/&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;The logic is opposite as the values returned from snmp are ink remaining. So a quick fix for the UI is to change the line to:&lt;/p&gt;&lt;p&gt; tableName,'inkused','Pct Ink Rem')"/&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6d6e7f8a-9fb2-4f5e-a8cb-421a905417f0] --&gt;</description>
      <pubDate>Fri, 28 Oct 2011 03:06:37 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4736</guid>
      <dc:date>2011-10-28T03:06:37Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4737</link>
      <description>&lt;!-- [DocumentBodyStart:4cb22c5c-d950-4a08-ae31-a8d9fa1296da] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Also considering the above logic, the Ink threshold needs to be changed to a minimum.&amp;#160; Presently it is a 95% max threshold.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Suggest changing this to 2 thresholds:&lt;/p&gt;&lt;p&gt;1 - a 5% minimum as a warning&lt;/p&gt;&lt;p&gt;2 - a 0% minimum as an error (actual value should be something like .001)&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4cb22c5c-d950-4a08-ae31-a8d9fa1296da] --&gt;</description>
      <pubDate>Fri, 28 Oct 2011 03:57:13 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4737</guid>
      <dc:date>2011-10-28T03:57:13Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4738</link>
      <description>&lt;!-- [DocumentBodyStart:ad01d9ca-f692-4cb5-bc3c-660b1e27aba0] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks for your suggestions!&amp;#160; I only had 1 printer to test with so if you see other things that need to be changed, let me know and I'll release an updated version.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ad01d9ca-f692-4cb5-bc3c-660b1e27aba0] --&gt;</description>
      <pubDate>Fri, 28 Oct 2011 05:28:56 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4738</guid>
      <dc:date>2011-10-28T05:28:56Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4739</link>
      <description>&lt;!-- [DocumentBodyStart:f326885d-f8ae-426a-b8b6-655bfec0ef28] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Ok, I believe I have it working.&amp;#160; The only issue remaining is the Reports &amp;gt; PinterMIB &amp;gt; Printer Usage Graphs is not showing all printers.&amp;#160; It is showing 4 supplies from the 1st printer modeled and only 1 out of 6 supplies from the 2nd printer modeled.&amp;#160; All other printers are not showing.&amp;#160; However, with 11 printers and each having multiple supplies, this graph report needs restructuring.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;For everything else, the code above was semi-working but not mapping the toner values properly.&amp;#160; Below is the fix in two locations within the PrinterMap.py code:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Line #31&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;-&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #'.3': 'prtMarkerSuppliesColorantIndex', # snmp index&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;+&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; '.3.1': 'prtMarkerSuppliesColorantIndex', # snmp index&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;From line 134 the FOR statement should read:&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for oid,data in supplies.iteritems():&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply = self.objectMap(data)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omcolor = self.objectMap(colors[oid])&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.id = self.prepId(omcolor.prtMarkerColorantValue)&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; except KeyError: # colors[oid] is only valid for toner supplies&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.id = self.cartType[str(omsupply.PrtMarkerSuppliesTypeTC)]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omcolor.prtMarkerColorantValue = 'other'&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;br/&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # Non-toner supplies have a ColorantIndex of 0 but we need the correct value for the snmpindex&lt;br/&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if omsupply.prtMarkerSuppliesColorantIndex == 0:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.snmpindex = oid&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; else:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.snmpindex = omsupply.prtMarkerSuppliesColorantIndex&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: monospace;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantValue = omcolor.prtMarkerColorantValue&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.prtMarkerColorantIndex = omsupply.prtMarkerSuppliesColorantIndex&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: monospace;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.PrtMarkerSuppliesTypeTC = self.cartType[str(omsupply.PrtMarkerSuppliesTypeTC)]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.PrtMarkerSuppliesSupplyUnitTC = self.cartUnit[str(omsupply.PrtMarkerSuppliesSupplyUnitTC)]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.rgbColorCode = self.rgbColorCodes[omcolor.prtMarkerColorantValue]&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; except KeyError:&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; log.error("error occurred " )&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; omsupply.rgbColorCode = self.rgbColorCodes['unknown']&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;br/&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; # Uncomment next 2 lines for debugging when modeling&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #log.info('-- SUPPLIES STORED --')&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #log.info(omsupply)&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; rm.append(omsupply)&lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return rm&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f326885d-f8ae-426a-b8b6-655bfec0ef28] --&gt;</description>
      <pubDate>Fri, 28 Oct 2011 07:24:06 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4739</guid>
      <dc:date>2011-10-28T07:24:06Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4745</link>
      <description>&lt;!-- [DocumentBodyStart:08478791-12d8-4429-886d-9a7d94933c25] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It seems there is a problem with the above code as the model breaks after a number of hours and stops mapping the incoming values to the correct graphs/thresholds.&amp;#160; I have made an update to the IF statement to map the oid to all colorant values for non-toner items.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Will let it run overnight to confirm issue is corrected.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:08478791-12d8-4429-886d-9a7d94933c25] --&gt;</description>
      <pubDate>Mon, 31 Oct 2011 07:50:21 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4745</guid>
      <dc:date>2011-10-31T07:50:21Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4747</link>
      <description>&lt;!-- [DocumentBodyStart:d8b84586-02fa-4f58-93d3-7545074df3be] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;jaymunro, you could fork the &lt;a class="jive-link-external-small" href="https://github.com/zenoss/ZenPacks.TwoNMS.PrinterMIB"&gt;PrinterMIB&lt;/a&gt; public code repository, toss in your edits, and toss a pull request back up to Maarten on github.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: start;"&gt;On &lt;a class="jive-link-external-small" href="https://github.com/zenoss/ZenPacks.TwoNMS.PrinterMIB"&gt;https://github.com/zenoss/ZenPacks.TwoNMS.PrinterMIB&lt;/a&gt; click 'fork' button while logged in to github.&lt;/li&gt;&lt;li style="text-align: start;"&gt;&lt;tt&gt;&lt;span&gt;git clone &lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:git@github.com"&gt;git@github.com&lt;/a&gt;&lt;span&gt;:jaymunro/ZenPacks.TwoNMS.PrinterMIB.git&lt;/span&gt;&lt;/tt&gt;&lt;/li&gt;&lt;li style="text-align: start;"&gt;Pull over edits you made / apply patch you made&lt;/li&gt;&lt;li style="text-align: start;"&gt;Can use &lt;tt&gt;zenpack --link --install &lt;/tt&gt;&lt;tt&gt;ZenPacks.TwoNMS.PrinterMIB &lt;/tt&gt;to install in place and not copy to $ZENHOME/ZenPacks&lt;/li&gt;&lt;li style="text-align: start;"&gt;&lt;tt&gt;git add -A; git status&lt;/tt&gt;&lt;/li&gt;&lt;li style="text-align: start;"&gt;&lt;tt&gt;git commit -m 'Fixed blah'&lt;/tt&gt;&lt;/li&gt;&lt;li style="text-align: start;"&gt;&lt;tt&gt;git push --tags origin master&lt;/tt&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="text-align: start;"&gt;&lt;span&gt;This will allow others to see the new code in its entirety at your personal github space. Like &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://github.com/jaymunro/ZenPacks.TwoNMS.PrinterMIB"&gt;http://github.com/jaymunro/ZenPacks.TwoNMS.PrinterMIB&lt;/a&gt;&lt;span&gt; . If Maarten accepts, we can merge them over to the official location. I am promoting our new instructions for this at the&lt;/span&gt;&lt;a class="jive-link-wiki-small" href="http://community.zenoss.org/docs/DOC-8495"&gt;ZenPack Development Process&lt;/a&gt; doc.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d8b84586-02fa-4f58-93d3-7545074df3be] --&gt;</description>
      <pubDate>Tue, 01 Nov 2011 18:22:40 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4747</guid>
      <dc:date>2011-11-01T18:22:40Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4748</link>
      <description>&lt;!-- [DocumentBodyStart:b72e8f74-f186-4824-8344-784d8c393966] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks Nick. It is a good suggestion and is something new to me so will do my best. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I am still attempting to squash a bug where non-colorant supplies drop out of monitoring after a few hours and cause indexing on all the graphs and thresholds to get mixed up.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Will try the git fork once I clear this up or need more help.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b72e8f74-f186-4824-8344-784d8c393966] --&gt;</description>
      <pubDate>Wed, 02 Nov 2011 23:32:35 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4748</guid>
      <dc:date>2011-11-02T23:32:35Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4766</link>
      <description>&lt;!-- [DocumentBodyStart:d8a75fb1-3391-4d67-a16f-b7f8be86d3ea] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Ok, git done and pull request sent.&amp;#160; Hope I did everything correctly.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d8a75fb1-3391-4d67-a16f-b7f8be86d3ea] --&gt;</description>
      <pubDate>Fri, 04 Nov 2011 08:11:51 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4766</guid>
      <dc:date>2011-11-04T08:11:51Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4767</link>
      <description>&lt;!-- [DocumentBodyStart:77a6cfe1-6b11-4890-9bf9-71bd66b17ffe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;You did it perfectly! I have merged the changes, after reviewing them briefly, into the official repository. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;If anyone wants to run on this latest code do following as zenoss user:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;git clone git://github.com/zenoss/ZenPacks.TwoNMS.PrinterMIB.git&lt;/p&gt;&lt;p&gt;zenpack --link --install ZenPacks.TwoNMS.PrinterMIB&lt;/p&gt;&lt;p&gt;zopectl restart&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Enjoy!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:77a6cfe1-6b11-4890-9bf9-71bd66b17ffe] --&gt;</description>
      <pubDate>Fri, 04 Nov 2011 15:58:56 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4767</guid>
      <dc:date>2011-11-04T15:58:56Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4789</link>
      <description>&lt;!-- [DocumentBodyStart:f4b3ce8e-fd0c-43e7-85ba-bcf504e6c1c0] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;i'm trying to use it to check an Epson B-500DN.&lt;/p&gt;&lt;p&gt;I was able to install the zenpack on zenoss 3.2.1&lt;/p&gt;&lt;p&gt;i added a printer but if i try to open the graph section i have an error message:&lt;/p&gt;&lt;p&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;span class="ext-mb-text" id="ext-gen501"&gt;&lt;p&gt;The server reported the following error:&lt;/p&gt;&lt;p class="exception-message"&gt;pythonThresholdException User-supplied Python expression ((0.05 * here.prtMarkerSuppliesMaxCapacity) if (here.prtMarkerSuppliesLevel &amp;gt;= 0) else -3) for minimum value caused error: ['InkUsage_prtMarkerSuppliesLevel']&lt;/p&gt;&lt;p&gt;The system has encountered an error. Please reload the page.&lt;/p&gt;&lt;p&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;i'm trying it on zenoss 3.2.1 using centos 5.7 and a remote collector&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;Maurizio&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f4b3ce8e-fd0c-43e7-85ba-bcf504e6c1c0] --&gt;</description>
      <pubDate>Tue, 15 Nov 2011 22:15:41 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4789</guid>
      <dc:date>2011-11-15T22:15:41Z</dc:date>
      <clearspace:dateToText>2 years, 3 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4791</link>
      <description>&lt;!-- [DocumentBodyStart:ecb93d80-2342-41e5-a1ab-54d370a8cf0e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Maurizio,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;This is an error generated by one of the thresholds configured for the graphs,&amp;#160; these thresholds were recently added by jaymunro - check his comment of October 28th.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;The pack itself was only tested by mysefl for HP Laserjet printers so it's possible that your printer doesn't support all the OIDs of the default printer MIB. Maybe do an snmpwalk on your printer and check that you get some values for this part of the snmp tree :&amp;#160; .1.3.6.1.2.1.43.11.1.1.&amp;#160;&amp;#160; The exact OIDs which are used by the pack can be found in the modeler file PrinterMap.py.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Alternatively you can just try and remove the thresholds for the graphs and see if that works.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Maarten&lt;/p&gt;&lt;div class="mcePaste" id="_mcePaste" style="position: absolute; top: 11px; left: 0px;"&gt;﻿&lt;/div&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&lt;span class="p"&gt;&lt;/span&gt;&amp;#160;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ecb93d80-2342-41e5-a1ab-54d370a8cf0e] --&gt;</description>
      <pubDate>Wed, 16 Nov 2011 07:39:04 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4791</guid>
      <dc:date>2011-11-16T07:39:04Z</dc:date>
      <clearspace:dateToText>2 years, 3 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4792</link>
      <description>&lt;!-- [DocumentBodyStart:4da92a6c-6f3d-4817-8200-54614420352c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Jay, thanks for your updates by the way!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4da92a6c-6f3d-4817-8200-54614420352c] --&gt;</description>
      <pubDate>Wed, 16 Nov 2011 07:39:28 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4792</guid>
      <dc:date>2011-11-16T07:39:28Z</dc:date>
      <clearspace:dateToText>2 years, 3 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4798</link>
      <description>&lt;!-- [DocumentBodyStart:4129dcf8-665e-47dc-bfd3-970b27205ca2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Maurizo,&lt;/p&gt;&lt;p&gt;I was getting such errors or similar when I had some syntax errors in the min val expression, but I suspect the cause is that I changed the source code by hand rather than export from zenoss.&amp;#160; &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;In the next few days, I will try snapshotting my machine and then remove the pack and add from git to see if I get the same as you.&amp;#160; If so, I'll sort out a fix.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;In the meantime, you can remove the offending threshold at Advanced &amp;gt; Monitoring Templates &amp;gt; Printer Supply &amp;gt; /Printer/PrinterMIB&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;If that fixes it for you and the other threshold works, then it's probably a simple typo from me.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4129dcf8-665e-47dc-bfd3-970b27205ca2] --&gt;</description>
      <pubDate>Wed, 16 Nov 2011 08:55:30 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4798</guid>
      <dc:date>2011-11-16T08:55:30Z</dc:date>
      <clearspace:dateToText>2 years, 3 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-4809</link>
      <description>&lt;!-- [DocumentBodyStart:8d59e83a-5c15-4fe8-a7dc-29908076d62b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Removed , reinstalled and restarted services.&lt;/p&gt;&lt;p&gt;Now everything is working really fine.&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;Maurizio&lt;/p&gt;&lt;p&gt;________________________&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;i tried to remove the thresholds but without any luck.&lt;/p&gt;&lt;p&gt;also checked the device with anmpwalk from the command line :&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;snmpwalk -v 1 -c public 192.168.0.101 .1.3.6.1.2.1.43.11.1.1&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.2.1.1 = INTEGER: 1&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.2.1.2 = INTEGER: 1&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.2.1.3 = INTEGER: 1&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.2.1.4 = INTEGER: 1&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.2.1.5 = INTEGER: 1&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.3.1.1 = INTEGER: 1&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.3.1.2 = INTEGER: 2&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.3.1.3 = INTEGER: 3&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.3.1.4 = INTEGER: 4&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.3.1.5 = INTEGER: 0&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.4.1.1 = INTEGER: 3&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.4.1.2 = INTEGER: 3&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.4.1.3 = INTEGER: 3&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.4.1.4 = INTEGER: 3&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.4.1.5 = INTEGER: 4&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.5.1.1 = INTEGER: 6&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.5.1.2 = INTEGER: 6&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.5.1.3 = INTEGER: 6&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.5.1.4 = INTEGER: 6&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.5.1.5 = INTEGER: 8&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.6.1.1 = STRING: "Black Ink Cartridge T6181/T6171/T6161"&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.6.1.2 = STRING: "Cyan Ink Cartridge T6172/T6162"&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.6.1.3 = STRING: "Magenta Ink Cartridge T6173/T6163"&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.6.1.4 = STRING: "Yellow Ink Cartridge T6174/T6164"&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.6.1.5 = STRING: "Maintenance Cartridge T6190"&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.7.1.1 = INTEGER: 4&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.7.1.2 = INTEGER: 4&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.7.1.3 = INTEGER: 4&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.7.1.4 = INTEGER: 4&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.7.1.5 = INTEGER: 4&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.8.1.1 = INTEGER: 100&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.8.1.2 = INTEGER: 100&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.8.1.3 = INTEGER: 100&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.8.1.4 = INTEGER: 100&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.8.1.5 = INTEGER: 100&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.9.1.1 = INTEGER: 34&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.9.1.2 = INTEGER: 10&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.9.1.3 = INTEGER: 61&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.9.1.4 = INTEGER: 86&lt;/p&gt;&lt;p&gt;SNMPv2-SMI::mib-2.43.11.1.1.9.1.5 = INTEGER: 17&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;i will try removing and reinstalling the zenpack .&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Maurizio&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;---------------------------------------------------------------------------------&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;after removing the zenpack and reinstalling it, i found a new error :&lt;/p&gt;&lt;p&gt;2011-11-21 11:43:57,445 ERROR zen.ZenDisc: Problem while executing plugin TwoNMS.snmp.PrinterMap&lt;/p&gt;&lt;p&gt;2011-11-21 11:43:57,446 ERROR zen.ZenDisc: Traceback (most recent call last):&lt;/p&gt;&lt;p&gt;&amp;#160; File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 623, in processClient&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; datamaps = plugin.process(device, results, self.log)&lt;/p&gt;&lt;p&gt;&amp;#160; File "/opt/zenoss/ZenPacks/ZenPacks.TwoNMS.PrinterMIB-1.0-py2.6.egg/ZenPacks/TwoNMS/PrinterMIB/modeler/plugins/TwoNMS/snmp/PrinterMap.py", line 136, in process&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; omcolor = self.objectMap(colors[oid])&lt;/p&gt;&lt;p&gt;KeyError: '5'&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;2011-11-21 11:43:58,347 INFO zen.ZenDisc: Changes in configuration applied&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8d59e83a-5c15-4fe8-a7dc-29908076d62b] --&gt;</description>
      <pubDate>Mon, 21 Nov 2011 09:08:30 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-4809</guid>
      <dc:date>2011-11-21T09:08:30Z</dc:date>
      <clearspace:dateToText>2 years, 3 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-5208</link>
      <description>&lt;!-- [DocumentBodyStart:653f05b8-ace9-438c-8423-8212da8f5f45] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Not sure if I set everything up right...&amp;#160; When I add a printer and make sure that its device class is /printer/printermib, the /printermib component never shows up under the device details.&amp;#160; Is this because it only supports HP printers?&amp;#160; Also, is there a specific version of the mib that needs to be installed? Right now I'm using Printer-Mib created by Harry Lewis IBM, language SMIv2.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Sorry if these are dumb questions, I'm new to snmp and zenoss...&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:653f05b8-ace9-438c-8423-8212da8f5f45] --&gt;</description>
      <pubDate>Mon, 12 Mar 2012 20:34:29 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-5208</guid>
      <dc:date>2012-03-12T20:34:29Z</dc:date>
      <clearspace:dateToText>2 years, 1 day ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-6369</link>
      <description>&lt;!-- [DocumentBodyStart:a4282a28-6e83-402d-90b0-4a0731fed1cc] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Gents,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I seem to be having an issue downloading the egg.zip file and uploading it to my zenoss core instance.. (latest version vmware workstation image - converted to ESXi).&lt;/p&gt;&lt;p&gt;The functionality this ZenPack should provide is very much desired; but as i'm having installation problems, I need a little guidence.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a4282a28-6e83-402d-90b0-4a0731fed1cc] --&gt;</description>
      <pubDate>Fri, 15 Feb 2013 00:33:56 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-6369</guid>
      <dc:date>2013-02-15T00:33:56Z</dc:date>
      <clearspace:dateToText>1 year, 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-6581</link>
      <description>&lt;!-- [DocumentBodyStart:a956210c-2896-4ca2-b8d4-ecea4ecc65d3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I've got another issue..&amp;#160; blocked by allow-hosts...&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;[zenoss@localhost zenoss]$ &lt;/strong&gt;zenpack --install ZenPacks.TwoNMS.PrinterMIB-1.0-py2.6.egg&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;span&gt;Link to &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://pypi.python.org/simple/ZenPacks.TwoNMS.PrinterMIB/"&gt;http://pypi.python.org/simple/ZenPacks.TwoNMS.PrinterMIB/&lt;/a&gt;&lt;span&gt; ***BLOCKED*** by --allow-hosts&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;#160; &lt;/p&gt;&lt;p&gt;&lt;em&gt;Couldn't find index page for 'ZenPacks.TwoNMS.PrinterMIB' (maybe misspelled?)&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;#160; &lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;span&gt;Link to &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://pypi.python.org/simple/"&gt;http://pypi.python.org/simple/&lt;/a&gt;&lt;span&gt; ***BLOCKED*** by --allow-hosts&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;em&gt;No local packages or download links found for ZenPacks.TwoNMS.PrinterMIB==1.0&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a956210c-2896-4ca2-b8d4-ecea4ecc65d3] --&gt;</description>
      <pubDate>Fri, 12 Apr 2013 10:39:16 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-6581</guid>
      <dc:date>2013-04-12T10:39:16Z</dc:date>
      <clearspace:dateToText>11 months, 5 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-6596</link>
      <description>&lt;!-- [DocumentBodyStart:53c2dd91-8352-4ba7-9d35-208e88d8be6e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Simon,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Are you still having the same issue with this?&amp;#160; What version of Zenoss are you using?&lt;/p&gt;&lt;p&gt;Can you try adding more debug info by running "zenpack --install ZenPacks.TwoNMS.PrinterMIB-1.0-py2.6.egg -v 10"&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;regards&lt;/p&gt;&lt;p&gt;Maarten&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:53c2dd91-8352-4ba7-9d35-208e88d8be6e] --&gt;</description>
      <pubDate>Sun, 19 May 2013 20:49:58 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-6596</guid>
      <dc:date>2013-05-19T20:49:58Z</dc:date>
      <clearspace:dateToText>9 months, 4 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-6588</link>
      <description>&lt;!-- [DocumentBodyStart:3ec9bbf1-d2c9-4855-93db-8b440cd12dfe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;After some assistance from one of your coleagues.. I got this working..&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-message-small" href="http://community.zenoss.org/message/73211#73211"&gt;http://community.zenoss.org/message/73211#73211&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Massive thank you for checking back with me.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Love this zenpack!&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3ec9bbf1-d2c9-4855-93db-8b440cd12dfe] --&gt;</description>
      <pubDate>Mon, 20 May 2013 13:59:22 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-6588</guid>
      <dc:date>2013-05-20T13:59:22Z</dc:date>
      <clearspace:dateToText>9 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 2NMS PrinterMIB</title>
      <link>http://community.zenoss.org/docs/DOC-11311#comments-6615</link>
      <description>&lt;!-- [DocumentBodyStart:115e624a-c97d-4690-aecb-5cc09bc6e25d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p style="margin: 0 0 15px; font-size: 15px; font-family: 'Helvetica Neue', arial, sans-serif; color: #42474a;"&gt;Tried this ZenPack with a Xerox ColorQube 8570 printer. I noticed that during modeling the message "Non-colorant supply logged" was logged for all supply components.&lt;/p&gt;&lt;p style="margin: 0 0 15px; font-size: 15px; font-family: 'Helvetica Neue', arial, sans-serif; color: #42474a;"&gt;Investigation showed that this was caused by two problems, one in the unit values returned from the printer and one in handling the color values in the modeler:&lt;/p&gt;&lt;p style="margin: 0 0 15px; font-size: 15px; font-family: 'Helvetica Neue', arial, sans-serif; color: #42474a;"&gt;1. For PrtMarkerSuppliesSupplyUnitTC the printer returned a value of '19' which is not a key in the 'cartUnit' map. However RFC3805 (printer mib v2) states that 19 is valid value to indicate that percentage is returned. I added the following lines to the 'cartUnit' map in the ./modeler/plugins/TwoNMS/snmp/&lt;a class="jive-link-external-small" href="http://printermap.py/"&gt;PrinterMap.py&lt;/a&gt; file:&lt;br/&gt;------------------------------------------------------------&lt;br/&gt;'18': 'items',&lt;br/&gt;'19': 'percent'&lt;br/&gt;------------------------------------------------------------&lt;/p&gt;&lt;p style="margin: 0 0 15px; font-size: 15px; font-family: 'Helvetica Neue', arial, sans-serif; color: #42474a;"&gt;2. The prtMarkerColorantValue returned by the printer starts with a capital character. As the keys in the the 'rgbColorCodes' map are all lowercase this did not work. A possible solution is to convert the returned value to lowercase before the lookup in the table. To do so I changed this line (note the .lower() method):&lt;br/&gt;------------------------------------------------------------&lt;br/&gt;omsupply.rgbColorCode = self.rgbColorCodes[omcolor.prtMarkerColorantValue&lt;strong&gt;.lower()&lt;/strong&gt;]&lt;br/&gt;------------------------------------------------------------&lt;/p&gt;&lt;p style="margin: 0 0 15px; font-size: 15px; font-family: 'Helvetica Neue', arial, sans-serif; color: #42474a;"&gt;Now all is working fine for this printer. Nice colored graphs!&lt;/p&gt;&lt;p style="font-size: 15px; font-family: 'Helvetica Neue', arial, sans-serif; color: #42474a;"&gt;Maybe these changes can be used in the next version of this ZenPack&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:115e624a-c97d-4690-aecb-5cc09bc6e25d] --&gt;</description>
      <pubDate>Thu, 30 May 2013 10:06:15 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-11311#comments-6615</guid>
      <dc:date>2013-05-30T10:06:15Z</dc:date>
      <clearspace:dateToText>9 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

