Page 1 of 1

Bulk Host Notification Management

Posted: Wed Apr 17, 2019 10:41 am
by smetzler
Hello,

We have almost 400 devices currently entered in NagiosXI and have activated notifications (Email/Text). When the devices were initially entered into NagiosXI, the notification enabled was either set to Off or Skip on every device. Does anyone know of a simple way to interact with the database to modify all hosts at once to set notifications enabled to On, select the appropriate notification period, Contact Group(s), Notification interval, first notification delay and notification options? If this is possible, is there a way to ensure all services are set to notification set to off. The only thing we need to monitor at this point is when a host goes offline (ping). All of our servers are HA so we are less worried about specific services, just to ensure the hosts are online.

Thank you,

Shane Metzler
SCADA Cyber Security Specialist
Hillsborough County Public Utilities

Re: Bulk Host Notification Management

Posted: Wed Apr 17, 2019 10:49 am
by scottwilkerson
If you have the enterprise version you can go to Configure -> CCM -> Bulk Modifications Tool
Select "Change a single configuration option"
Select the item you want to change
Select hosts/services to change it on
Save changes
Apply configuration

Re: Bulk Host Notification Management

Posted: Wed Apr 17, 2019 12:21 pm
by smetzler
Scott,

Thank you so much! That worked perfectly. Since I now know about this awesome tool, I tried to use the remove contact group and remove contact however, when I select all of the hosts/services I receive the following error when trying to remove the group/contact: Invalid bulk command specified! Could not load page due to missing cmd option.

My second question, is which service(s) do I need to make sure I have set to notify for when a host goes down / is not responding (ping)? I want to make sure I do not remove that specific service from the alert group.

Thank you for everything!

Shane

Re: Bulk Host Notification Management

Posted: Wed Apr 17, 2019 12:28 pm
by scottwilkerson
smetzler wrote:Thank you so much! That worked perfectly. Since I now know about this awesome tool, I tried to use the remove contact group and remove contact however, when I select all of the hosts/services I receive the following error when trying to remove the group/contact: Invalid bulk command specified! Could not load page due to missing cmd option.
It is possible you are hitting a limit on max_input_vars, see this article on how to increase that in php.ini
https://support.nagios.com/kb/article/n ... e-611.html
smetzler wrote: My second question, is which service(s) do I need to make sure I have set to notify for when a host goes down / is not responding (ping)? I want to make sure I do not remove that specific service from the alert group.
This isn't the services, but the hosts (if the commands are set to ping or check_icmp).

Re: Bulk Host Notification Management

Posted: Wed Apr 17, 2019 12:46 pm
by smetzler
Scott,

Thank you for the excellent assistance!

Re: Bulk Host Notification Management

Posted: Wed Apr 17, 2019 1:03 pm
by lmiltchev
@smetzler, is it OK to close this topic and mark it as resolved? Let us know if you have any further questions.

Re: Bulk Host Notification Management

Posted: Wed Apr 17, 2019 1:59 pm
by smetzler
@lmiltchev This topic can be closed and marked as resolved.

Thank you,