change notification alert setting/dashlet from 2h to 24h

This support forum board is for questions relating to Nagios Fusion.
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

change notification alert setting/dashlet from 2h to 24h

Post by martin@boxit.net »

Hey forum,
I am new at the nagios forum, but we are using nagios already at a lot of places with a couple of onsite nagios setups (managed with fusion)

I wanted to change the settings for the dashlet - notification alert from 2h to 24h, but I cannot find any option or setting where I can do this.

Is there a way in the webinterface or do I need to find the cfg file for the dashlet.

Thanks a lot

Best

Martin
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: change notification alert setting/dashlet from 2h to 24h

Post by scottwilkerson »

Martin,

Which exact dashlet are you referring to?

Also, what version of Nagios Fusion are you running?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: change notification alert setting/dashlet from 2h to 24h

Post by martin@boxit.net »

I am using nagios fusion 2014R1.1 and I was trying to change it for the dashlet: recent alerts (recent notifications)

When checking the dashlet now it shows last 2 hours and I was wondering if I could change this.

Thanks and sorry for the late response, I moved the last couple days.

Best

Martin
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: change notification alert setting/dashlet from 2h to 24h

Post by scottwilkerson »

Unfortunately there isn't a setting.

In that version you would need to change the value of line 176 in this file
/usr/local/nagiosfusion/html/includes/utils-recentalerts.inc.php
from

Code: Select all

$twohoursago=$now-(60*120); 
to

Code: Select all

$twohoursago=$now-(60*1440); 
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: change notification alert setting/dashlet from 2h to 24h

Post by martin@boxit.net »

Thanks a lot for the quick reply.

I will try to change the value and check.


Best

Martin
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: change notification alert setting/dashlet from 2h to 24h

Post by scottwilkerson »

Let us know if you have any other issues.

It will take 5 minutes after making the change for it to poll the 24 hours worth of data
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: change notification alert setting/dashlet from 2h to 24h

Post by martin@boxit.net »

Thanks, I cannot find the path in my fusion setup

/usr/local/nagiosfusion/html/includes/utils-recentalerts.inc.php

I do not have a folder called nagiosfusion in the local folder



Sorry

I might need to wait until my senior engineer comes back fro vacation, he set the host up
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: change notification alert setting/dashlet from 2h to 24h

Post by martin@boxit.net »

I think I found it, sorry.

Thanks again

Best

Martin
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: change notification alert setting/dashlet from 2h to 24h

Post by martin@boxit.net »

Do I need to restart a service after I made the changed and saved the file?

Thanks

Best

Martin
martin@boxit.net
Posts: 25
Joined: Mon Aug 21, 2017 4:53 pm

Re: change notification alert setting/dashlet from 2h to 24h

Post by martin@boxit.net »

I did the value change and saved the config.

Fusion is still poling the last 2 hours instead of 24h.

Might not work in this version.

Thanks again

Best

Martin
Locked