Calculating trend and showing in Highcharts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Calculating trend and showing in Highcharts

Post 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..... :roll:
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
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Calculating trend and showing in Highcharts

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Calculating trend and showing in Highcharts

Post 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) :D

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Calculating trend and showing in Highcharts

Post by ssax »

ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Calculating trend and showing in Highcharts

Post 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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Calculating trend and showing in Highcharts

Post 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
Nagios XI 5.8.1
https://outsideit.net
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Calculating trend and showing in Highcharts

Post by ssax »

Sounds good, I'll refer to this topic in the feature request once you've posted the examples.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Calculating trend and showing in Highcharts

Post 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
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Calculating trend and showing in Highcharts

Post 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.
Former Nagios Employee.
me.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Calculating trend and showing in Highcharts

Post by WillemDH »

Ok, please close this thread. Thanks.
Nagios XI 5.8.1
https://outsideit.net
Locked