You would probably need to make your plugin do something like this -

1.       Test rrd format (rrdtool info)

2.       If rrd file has HWpredict RRAs defined goto 5

3.       Create HWpredict RRAs (rrdtool tune)

4.       Exit with unknown status

5.       Find current aberrant behaviour status (rrdtool fetch)

6.       Check if it is 1 or zero; if aberrant then exit status 2 showing value

7.       Else exit status 0 (possibly showing value?)

Steve

________________________________
Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 924 6487
Mobile: +64 (0)21 753 189
Email: [email protected]<mailto:[email protected]>
P Please consider the environment before printing this e-mail


From: [email protected] 
[mailto:[email protected]] On Behalf Of 
Leandro Souza
Sent: Monday, 14 March 2011 12:00 p.m.
To: [email protected]
Subject: [mrtg] MRTG with RRD and RRA:HWPREDICT

Hi,

   I'm using MRTG with RRD. But I'm trying to do a plugin for Nagios to detect 
aberrant behaviour. So, what I want to know is, is it possible? I mean, how to 
create, or to change, a RRD base for use with MRTG and in same time add a 
RRA:HWPREDICT support?

   Thanks,

-- Leandro Toledo de Souza
www.leandrotoledo.com.br<http://www.leandrotoledo.com.br>
"Se eu tiver uma maçã e você também tiver uma maçã, e trocarmos de maçãs, cada 
um ficará com uma maçã. Se eu tiver uma ideia e você também tiver uma ideia, e 
trocarmos ideias, cada um ficará com duas ideias."
George Bernard Shaw

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to