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
Bulk Host Notification Management
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bulk Host Notification Management
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
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
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bulk Host Notification Management
It is possible you are hitting a limit on max_input_vars, see this article on how to increase that in php.inismetzler 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.
https://support.nagios.com/kb/article/n ... e-611.html
This isn't the services, but the hosts (if the commands are set to ping or check_icmp).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.
Re: Bulk Host Notification Management
Scott,
Thank you for the excellent assistance!
Thank you for the excellent assistance!
Re: Bulk Host Notification Management
@smetzler, is it OK to close this topic and mark it as resolved? Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bulk Host Notification Management
@lmiltchev This topic can be closed and marked as resolved.
Thank you,
Thank you,