Page 1 of 2
Disable Notifications
Posted: Wed Apr 05, 2017 10:10 am
by paul.jobb
I notice in XI when I acknowledge an alert it creates a comment on the user who did that along with some notes however disabling notifications doesn't do any of that. Outside of looking through the audit report is there a way to record who disabled alerting on a particular host or service? Is that something I can add? I noticed there was a topic on removing the disable option from the interface all together, but I do want to have the option for users to disable alerting still.
I would like to create a report weekly listing which monitors are disabled and by whom, we have a fairly large team and it would be nice to supply some history in that report.
Re: Disable Notifications
Posted: Wed Apr 05, 2017 1:41 pm
by mcapra
You should be able to add
DISABLE_SVC_NOTIFICATIONS to the "Search" box at the top of the screen when viewing the Audit Log. Does this produce what you're looking for?
2017_04_05_13_40_33_Administration_Nagios_XI.png
Re: Disable Notifications
Posted: Wed Apr 05, 2017 3:35 pm
by paul.jobb
Ok Thanks, might be able to make that work.
It would be nice if it behaved similarly to acknowledgements , in that the history is there for regular users so they don't have to look through audit records:
Capture.JPG
Re: Disable Notifications
Posted: Thu Apr 06, 2017 10:35 am
by mcapra
paul.jobb wrote:I noticed there was a topic on removing the disable option from the interface all together
I actually wrote that thing:
https://pastebin.com/JTYGDM3K
I modified it to submit a simple comment whenever "Disable Notifications" happens, but it submits 2 comments instead of just one so it's not perfect. Close, anyway:
https://pastebin.com/dNtmtqAC
Re: Disable Notifications
Posted: Mon Apr 10, 2017 11:29 am
by paul.jobb
oh thankyou, I will take a look at that . You can close the topic
Re: Disable Notifications
Posted: Mon Apr 10, 2017 11:47 am
by paul.jobb
I try adding the script and it complains its not supported, I tried a number of name combinations
Capture.JPG
Re: Disable Notifications
Posted: Mon Apr 10, 2017 1:48 pm
by mcapra
Interesting, are you able to upload other types of files? Can you share your Apache's error log? (/var/log/httpd/error_log or ssl_error_log)
Re: Disable Notifications
Posted: Mon Apr 10, 2017 2:45 pm
by paul.jobb
I was able to upload a jpg
These errors appeared in the errorlog earlier
[Mon Apr 10 10:39:15.491647 2017] [:error] [pid 7946] [client 199.215.163.161:63313] PHP Notice: Undefined variable: type in /usr/local/nagiosxi/html/includes/components/custom-includes/manage.php on line 158, referer:
https://application.monitoring.gov.ab.c ... manage.php
[Mon Apr 10 10:44:20.197359 2017] [:error] [pid 24281] [client 199.215.163.161:51481] PHP Notice: Undefined variable: type in /usr/local/nagiosxi/html/includes/components/custom-includes/manage.php on line 158, referer:
https://application.monitoring.gov.ab.c ... manage.php
[Mon Apr 10 10:44:22.706746 2017] [:error] [pid 24281] [client 199.215.163.161:51481] PHP Notice: Undefined variable: type in /usr/local/nagiosxi/html/includes/components/custom-includes/manage.php on line 158, referer:
https://application.monitoring.gov.ab.c ... manage.php
I tried uploading the file again just now however and it still didn't work but it didn't log anything either
Re: Disable Notifications
Posted: Mon Apr 10, 2017 3:15 pm
by avandemore
Are you running an older version of XI? I believe the issue with custom includes was fixed some time ago.
Re: Disable Notifications
Posted: Mon Apr 10, 2017 3:39 pm
by paul.jobb
5.4.3 it should be right up to date