Bulk Host Notification Management

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
smetzler
Posts: 27
Joined: Mon Apr 15, 2019 11:06 am

Bulk Host Notification Management

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk Host Notification Management

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
smetzler
Posts: 27
Joined: Mon Apr 15, 2019 11:06 am

Re: Bulk Host Notification Management

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk Host Notification Management

Post 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).
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
smetzler
Posts: 27
Joined: Mon Apr 15, 2019 11:06 am

Re: Bulk Host Notification Management

Post by smetzler »

Scott,

Thank you for the excellent assistance!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bulk Host Notification Management

Post by lmiltchev »

@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!
smetzler
Posts: 27
Joined: Mon Apr 15, 2019 11:06 am

Re: Bulk Host Notification Management

Post by smetzler »

@lmiltchev This topic can be closed and marked as resolved.

Thank you,
Locked