CPU load / gauge using MRTG HTML plugin

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
binary617
Posts: 1
Joined: Fri Feb 13, 2015 3:48 pm

CPU load / gauge using MRTG HTML plugin

Post by binary617 »

Is it possible to use the MRTG HTML plugin to extract gauge data for node CPU load coloring?

When I try this it seems to pull the wrong value from MRTG's html file.

WARNING <path> NewColourFromPercent: Clipped 144% to 100% for item <device> [WMWARN33]

It seem to poll the value as 144, when the daily graph current value is around 20% "in" should be the 60 second average value needed. Looking through forums the 'inprecent' seemed to the correct label variable. I also tried various combinations of USESCALE to see if it was scaling the input value but to no avail.

Basically I have a legacy setup that would not be trivial to move to MRTG-rrd.

NODE deviceCPU
MAXVALUE 100
ICON 18 18 box
LABEL {node:this:inpercent:%d} #also tried %.02f, etc
LABELOUTLINECOLOR none
LABELBGCOLOR none
USESCALE none in


NODE <device>
TEMPLATE deviceCPU
POSITION 450 100
LABELOFFSET N
TARGET /var/www/rc/<device>.html

data in HTML file:

<!-- maxin d 23 -->
<!-- maxout d 20 -->
<!-- avin d 18 -->
<!-- avout d 18 -->
<!-- cuin d 20 -->
<!-- cuout d 20 -->
<!-- avmxin d 19 -->
<!-- avmxout d 19 -->


thanks,

-nick
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests