I'm using this template on a HP Color Laserjet 4700 and it worked great so far, the percentages of the consumables where displayed correctly. But now, for the first time after using this template, I replaced an empty toner cartridge (cyan) and ran into trouble with Cacti: The printer's SNMP server returns the correct value "10000" for the remaining pages of the new cartridge. This value is also correctly read by Cacti and stored into the respective .rrd file as I've checked with "rrdtool lastupdate". Also the maximum value for this value is set to 10000 in the respective Cacti data template.
However, the graphs created by Cacti don't contain "100" as the percentage for the cyan toner, but "-nan" instead. It even stayed this way after some pages where printed with the new cartridge and the remaining page count is now down to 9900.
Any idea what could be wrong here?
Addendum: In the meantime, for testing purposes, I've created another Cacti host, querying the same printer. On that test host, all consumable values (including the cyan toner) show up correctly. Because of this, I suspect that the corresponding .rrd file might have an issue of some sort. Any idea how I could fix this? (Aside from removing and re-creating the file altogether.)