Disable Notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Disable Notifications

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Disable Notifications

Post 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
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Disable Notifications

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Disable Notifications

Post 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
Former Nagios employee
https://www.mcapra.com/
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Disable Notifications

Post by paul.jobb »

oh thankyou, I will take a look at that . You can close the topic
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Disable Notifications

Post by paul.jobb »

I try adding the script and it complains its not supported, I tried a number of name combinations
Capture.JPG
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Disable Notifications

Post 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)
Former Nagios employee
https://www.mcapra.com/
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Disable Notifications

Post 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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Disable Notifications

Post by avandemore »

Are you running an older version of XI? I believe the issue with custom includes was fixed some time ago.
Previous Nagios employee
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Disable Notifications

Post by paul.jobb »

5.4.3 it should be right up to date
Locked