Page 1 of 2
change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 21, 2017 4:57 pm
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
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Tue Aug 22, 2017 1:45 pm
by scottwilkerson
Martin,
Which exact dashlet are you referring to?
Also, what version of Nagios Fusion are you running?
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 2:28 pm
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
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 2:48 pm
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
to
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 2:52 pm
Thanks a lot for the quick reply.
I will try to change the value and check.
Best
Martin
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 2:54 pm
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
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 3:00 pm
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
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 3:13 pm
I think I found it, sorry.
Thanks again
Best
Martin
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 3:26 pm
Do I need to restart a service after I made the changed and saved the file?
Thanks
Best
Martin
Re: change notification alert setting/dashlet from 2h to 24h
Posted: Mon Aug 28, 2017 5:02 pm
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