Hi,

I have written a small perl script called "system_iostat" reading 
/proc/diskstats. It gets calles via NRPE daemon.

Output is something like this:

     IOstat OK | sda_tps_read=6375;0;0;0; sda_tps_write=46418;0;0;0; 
sda_read=308238848;0;0;0; sda_write=1401950720;0;0;0;

When it comes to icinga/pnp4nagios there is a 
"check_commands/system_iostat.cfg" containing only

DATATYPE = DERIVE
USE_MIN_ON_CREATE = 1
RRD_STORAGE_TYPE = MULTIPLE

As you can see, the minimum value ("0") is submitted by the plugin's 
performance data output.

Everything is fine while watching icinga collecting data and pnp4nagios 
drawing nice graphs :-)

But I noticed some "strange" behavior when I shutdown a machine. As 
Icinga can not get any values from remote nrpe daemon while remote 
system is down, it's status changed from OK to UNKNOWN (without perfdata).

Up to the point when the remote system is powered on again the graph is ok.

Now, when Icinga is able get "new" performance data from remote system, 
it draws huge peaks of values the hardware does not even support.

Dumping the rrd file(s) shows exactly what we see in the graphs.
- correct values during remote system's uptime
   e.g. <row><v>2.9362858667e+03</v></row>
- no updates during remote system is down
- strange updates after remote system is back online
   e.g. <row><v>9.9707636084e+05</v></row>


I think using datatype DERIVE with a minimum of zero is correct, as I 
want to ignore values lower than the previous one.

Found discussion about dsl traffic messurement from march 2008 
(https://lists.oetiker.ch/pipermail/rrd-users/2008-March/013890.html).


So, what am I doing wrong and what has to be changed to avoid strange peaks?

Please shed some light ;-)

Kind regards,

    Philipp

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to