Nagios Graph converting figures to binary bytes rather than decimal

Claudio Kuenzler ck at claudiokuenzler.com
Tue Dec 18 13:14:35 CET 2012


> Hi Claudio,****
>
> ** **
>
> I have entered the map entry below based on your example and I am still
> seeing the results on the graph show as a decimal version of the Bytes
> value.****
>
> ** **
>
> /perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+)/****
>
> and push @s, [$1,****
>
>         ['data', GAUGE, $2*1024*1024 ],****
>
>         ['warn', GAUGE, $3*1024*1024 ],****
>
>         ['crit', GAUGE, $4*1024*1024 ],****
>
>         ['min', GAUGE, $5*1024*1024 ],****
>
>         ['max', GAUGE, $6*1024*1024 ] ];
>

You didn't follow my example, as you're again multiplying with 1024.

Take _another_ look at my example:

        ['used', GAUGE, $2*1000**2 ],
        ['total', GAUGE, $6*1000**2 ] ];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20121218/fd5076fc/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list