change notification alert setting/dashlet from 2h to 24h
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
change notification alert setting/dashlet from 2h to 24h
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
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
-
- 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
Martin,
Which exact dashlet are you referring to?
Also, what version of Nagios Fusion are you running?
Which exact dashlet are you referring to?
Also, what version of Nagios Fusion are you running?
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: change notification alert setting/dashlet from 2h to 24h
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
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
-
- 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
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
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);
Code: Select all
$twohoursago=$now-(60*1440);
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: change notification alert setting/dashlet from 2h to 24h
Thanks a lot for the quick reply.
I will try to change the value and check.
Best
Martin
I will try to change the value and check.
Best
Martin
-
- 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
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
It will take 5 minutes after making the change for it to poll the 24 hours worth of data
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: change notification alert setting/dashlet from 2h to 24h
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
/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
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: change notification alert setting/dashlet from 2h to 24h
I think I found it, sorry.
Thanks again
Best
Martin
Thanks again
Best
Martin
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: change notification alert setting/dashlet from 2h to 24h
Do I need to restart a service after I made the changed and saved the file?
Thanks
Best
Martin
Thanks
Best
Martin
-
- Posts: 25
- Joined: Mon Aug 21, 2017 4:53 pm
Re: change notification alert setting/dashlet from 2h to 24h
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
Fusion is still poling the last 2 hours instead of 24h.
Might not work in this version.
Thanks again
Best
Martin