Page 1 of 1

Enable all "forgotten" disabled notifications

Posted: Fri Dec 15, 2017 12:01 pm
by ckiernan
Looking for a solution to enable all service/host notifications that happen to be disabled.

We disabled/enable notifications on service groups automatically as part of our release process. For fear of accidentally disabling and not re-enabling notifications, I run a report a couple times a day to see what has services disabled.

I have a new requirement to automatically enable all disabled notification every morning.

I know about the feature to turn all notifications off/on - that's not what i'm looking for.

I know I can use the bulk modification tool - but it's manual and I have 8k services.

For example... if I have 30 random services with notifications disabled - I want to be able to automate turning them all on at a specific time each day.

I'm running XI 5.4.9 currently

Re: Enable all "forgotten" disabled notifications

Posted: Fri Dec 15, 2017 3:10 pm
by npolovenko
Hello, @ckiernan.

Take a look here:
https://old.nagios.org/developerinfo/ex ... mand_id=91
And here:
https://old.nagios.org/developerinfo/ex ... mand_id=92

Basically, you'd need to create a new service group in XI and have it include all the other service groups that you plan to enable/disable notifications for.
test.png
After that use the newly created service group with two scripts from above. All children service groups should automatically inherit the notification options from the parent service group.

Let us know if it worked for you.