Page 1 of 1
Calculating trend and showing in Highcharts
Posted: Mon Aug 10, 2015 3:56 am
by WillemDH
Hello,
i'm getting questions why Nagios is not showing a trend for certain services, eg disk usage. I read some posts this is possible with pnp4nagios. Is this something that's on the roadmap for Highcharts too? As trend lines are showing in competing monitoring products, I get some pressure to get this implemented.....
Ideally a trend line should be visible on the generated Highcharts. If we would then also be able to alert when a trend passes a certain threshold, it would be perfect.
Any thoughts or advice around this topic is welcome. For now the only option I see is to create a wrapper script around the command to monitor disk usage and calculate the trend myself somehow from the rrd's.
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c CheckDriveSize -a Drive=$ARG1$ ShowAll=long MaxWarn=$ARG2$ MaxCrit=$ARG3$
As this would take some time to implement, I was hoping this feature would be on the roadmap somewhere?
Grtz
Willem
Re: Calculating trend and showing in Highcharts
Posted: Mon Aug 10, 2015 10:59 am
by lmiltchev
You can view the "trends" by clicking on the "Capacity Planning" tab under "Host/Service Status Detail" page however setting up warning/critical thresholds (alerting on the predicted value) hasn't been implemented yet.
Re: Calculating trend and showing in Highcharts
Posted: Mon Aug 10, 2015 11:29 am
by WillemDH
Hey Ludmill,
I'm not sure but I would think the capacity planner and trends aren't exactly the same? With trend I would mean a counter which displays for example the growth of usage between the last and the current check. I'll see if I can get some useful examples to compare the two and will pm them to you.
For the usage we have some MS BI servers which grow for example 200 MB / 5 minutes. If the growth would suddenly exponentially grow to 2GB / 5 minutes, people would like to get an alert, even if the disk has enough free space. Maybe I don't mean trend but 'average growth'? (sorry I'm not statistician)
Grtz
Willem
Re: Calculating trend and showing in Highcharts
Posted: Mon Aug 10, 2015 11:51 am
by ssax
Re: Calculating trend and showing in Highcharts
Posted: Mon Aug 10, 2015 11:55 am
by ssax
I mean for the highcharts display of it (still would have to be coded into XI), it doesn't really help for the checks/alerts though.
Re: Calculating trend and showing in Highcharts
Posted: Mon Aug 10, 2015 12:49 pm
by WillemDH
Hey Ssax,
Thank you for this link. That are some very nice Highcharts. It seems a SMA (Simple Moveing Average) or the EMA (Exponential Moving Average) is more what I'm looking for then the trendline in the example, as the trendline seem not really curved. I understand something like this would not really be easy to implement. Certainly in combination with alerting. And then there is also the fact that some people would want a SMA or EMA of 1 hour interval and other of a 1 day interval. I'll see if I can post some screenshots of trendlines in PNP4Nagios. (where I got the idea from)
Grtz
Willem
Re: Calculating trend and showing in Highcharts
Posted: Mon Aug 10, 2015 4:49 pm
by ssax
Sounds good, I'll refer to this topic in the feature request once you've posted the examples.
Re: Calculating trend and showing in Highcharts
Posted: Tue Aug 11, 2015 1:54 am
by WillemDH
Hello,
Please check the three screenshots attached. The 'trend' line in the third screenshot shows what I meant to make a feature request for. It shows very clear that for example in hte beginning of May there was a very high trend compared to the 'normal' trend. I hope this explains what I initially meant for the fr.
Grtz
Willem
Re: Calculating trend and showing in Highcharts
Posted: Tue Aug 11, 2015 1:59 pm
by hsmith
I have submitted a feature request for you.
Code: Select all
NEW TASK ID 6242 created - Nagios XI Feature Request: Trends / Alerts / Highcharts
Thank you for your feedback.
Re: Calculating trend and showing in Highcharts
Posted: Tue Aug 11, 2015 2:29 pm
by WillemDH
Ok, please close this thread. Thanks.