So I have a service group in Nagios Xi which has more than 100 services for the servers. Now I want to edit the alert time intervals for the services so that the email notification is generated only when the service state is critical for more than 10 minutes.
Is there a way to make this change for all the service in bulk in a particular service group?
Still new to Nagios Xi setup. Appreciate any help on this.
Adjust alert intervals for services in a service group
Re: Adjust alert intervals for services in a service group
You should be able to go to Configure > Core Config Manager > Tools > Bulk Modifications Tool:
- Click Change a Single Config Option
- Select what you want to change
- Click the Select Services using Service Groups button to select the services
- Save Changes
- Repeat for the other items you need to adjust
You can either set the first_notification_delay to 10 OR you can adjust the retry_interval and the max_check_attempts so that they equal 10 minutes (for example like retry_interval 1, max_check_attempts 10).
Then apply configuration after.
- Click Change a Single Config Option
- Select what you want to change
- Click the Select Services using Service Groups button to select the services
- Save Changes
- Repeat for the other items you need to adjust
You can either set the first_notification_delay to 10 OR you can adjust the retry_interval and the max_check_attempts so that they equal 10 minutes (for example like retry_interval 1, max_check_attempts 10).
Then apply configuration after.
Re: Adjust alert intervals for services in a service group
Thanks a lot.
That worked for me.
Similarly is there a way to remove a particular service from all the servers in one go?
For example there is a service http which we dont want to monitor and is always critical so we just want to remove it from all the servers.
That worked for me.
Similarly is there a way to remove a particular service from all the servers in one go?
For example there is a service http which we dont want to monitor and is always critical so we just want to remove it from all the servers.
Re: Adjust alert intervals for services in a service group
Not currently.Similarly is there a way to remove a particular service from all the servers in one go?
First, apply configuration to make sure you have a valid configuration and then go to Admin > Config Snapshots and note the date/time of the last good one so that you can revert to it if necessary.
You can run this command to disable them:
Code: Select all
mysql -uroot -pnagiosxi nagiosql -e "update tbl_service set active = 0 where service_description = 'HTTP'"Go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Once they are done being written, apply configuration.
If you have issues, you'll need to revert to the config snapshot in Admin > Config Snapshots.
Re: Adjust alert intervals for services in a service group
Thanks man.
This was really helpful.
Sorry for asking too many questions on the same post. Similarly is there a way to add a particular service to a bunch of servers. Like if I have already on-boarded servers on nagiosxi and now I want to add a particular service to all those servers.
Is there a way to do that too?
This was really helpful.
Sorry for asking too many questions on the same post. Similarly is there a way to add a particular service to a bunch of servers. Like if I have already on-boarded servers on nagiosxi and now I want to add a particular service to all those servers.
Is there a way to do that too?
Re: Adjust alert intervals for services in a service group
What I generally do is create a hostgroup and assign the service to the hostgroup by editing the service and selecting the hostgroup under Manage Hostgroups. Then when you put any hosts in that hostgroup they will auto-inherit those services that are attached to the hostgroup.
I suppose you could use Configure > Config Wizards > Bulk Host Cloning and Import wizard to copy the service from one host to a bunch of other hosts, you would just need to put the existing case-sensitive address/hostname fields in the Import / Cloning Data input box.
I suppose you could use Configure > Config Wizards > Bulk Host Cloning and Import wizard to copy the service from one host to a bunch of other hosts, you would just need to put the existing case-sensitive address/hostname fields in the Import / Cloning Data input box.
Re: Adjust alert intervals for services in a service group
ok thanks.
I will give it a try.
I will give it a try.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Adjust alert intervals for services in a service group
Hi,
Great! Let us know how it goes.ok thanks.
I will give it a try.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Adjust alert intervals for services in a service group
Sorry for late reply. This can be closed out.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Adjust alert intervals for services in a service group
Hi,
Have a great day!
Benjamin
Thanks for letting us know, we'll lock this topic.Sorry for late reply. This can be closed out.
Have a great day!
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!