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.
Disable Notifications
Re: Disable Notifications
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?
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Disable Notifications
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:
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:
You do not have the required permissions to view the files attached to this post.
Re: Disable Notifications
I actually wrote that thing:paul.jobb wrote:I noticed there was a topic on removing the disable option from the interface all together
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
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Disable Notifications
oh thankyou, I will take a look at that . You can close the topic
Re: Disable Notifications
I try adding the script and it complains its not supported, I tried a number of name combinations
You do not have the required permissions to view the files attached to this post.
Re: Disable Notifications
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)
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Disable Notifications
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
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
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Disable Notifications
Are you running an older version of XI? I believe the issue with custom includes was fixed some time ago.
Previous Nagios employee
Re: Disable Notifications
5.4.3 it should be right up to date