Hello,
I need help in updating "notification options" in nagios XI for 100 service checks.
How could i update them in one shot? Is there any way to do that or should i update in usual way by clicking each service check?
Please help.
Regards,
Sudarshan.
Need help in nagios XI:
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Need help in nagios XI:
If you have the Enterprise Edition license you can use "Bulk Modifications" in CCM under Tools.
If you DON'T have the Enterprise Edition license you can enable the free trial and make the changes you require within the trial period
If you've already activated the trial in the past and it is now expired then you are out of luck
Whatever method you chose, I suggest when making the changes you use "Contact Groups". It is very easy to add and remove a contact in a group as you don't need to modify a bunch of services.
If you DON'T have the Enterprise Edition license you can enable the free trial and make the changes you require within the trial period
If you've already activated the trial in the past and it is now expired then you are out of luck
Whatever method you chose, I suggest when making the changes you use "Contact Groups". It is very easy to add and remove a contact in a group as you don't need to modify a bunch of services.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Need help in nagios XI:
Hi,
Thanks for your prompt reply.
I'm not updating contacts for the service checks. I'm trying to update the notification options "w c u r f s" in alert settings, where you could suppress the alert when a downtime is scheduled or when the service is in flapping state.
Sorry, i should have been more specific. I don't see any option to update this is in Bulk modification tool.
Regards,
Sudarshan.
Thanks for your prompt reply.
I'm not updating contacts for the service checks. I'm trying to update the notification options "w c u r f s" in alert settings, where you could suppress the alert when a downtime is scheduled or when the service is in flapping state.
Sorry, i should have been more specific. I don't see any option to update this is in Bulk modification tool.
Regards,
Sudarshan.
Re: Need help in nagios XI:
Unfortunately, this option is not available in the bulk mod tool. f these are options that you need to change often, I would suggest applying them with a template.
You may want to open a feature request on: http://tracker.nagios.com and ask to include notification options with the bulk mod tool.
You may want to open a feature request on: http://tracker.nagios.com and ask to include notification options with the bulk mod tool.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Need help in nagios XI:
Thank you for your reply.
I was going through the cfg files and tried to modify the templates yesterday. May we edit the service templates directly?
I was going through the cfg files and tried to modify the templates yesterday. May we edit the service templates directly?
Re: Need help in nagios XI:
If you are implying the config files, it is not advised as those files are overwritten on apply. edit the template from the CCM in the XI web UI.shan_1986 wrote:May we edit the service templates directly?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Need help in nagios XI:
One option is:
At the command line, take a copy of the services you want to update from /usr/local/nagios/etc/services/
Delete these services from CCM and Apply Config
Edit these services from step 1 to change the options.
Copy these modified services into /usr/local/nagios/etc/import/
Apply Configuration and these services will now re-exist with the updated options
At the command line, take a copy of the services you want to update from /usr/local/nagios/etc/services/
Delete these services from CCM and Apply Config
Edit these services from step 1 to change the options.
Copy these modified services into /usr/local/nagios/etc/import/
Apply Configuration and these services will now re-exist with the updated options
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Need help in nagios XI:
Thanks for your reply.
Is there any document which describes host and service templates.
I have created a sample service template but when i create services, values from the service template is not inherited to the service i have created.
Could you please give some detailed explanation or any document.
Below is the service template and service:
Whatever values given in the service check is applied, but the template values are not getting updated in the service check like (check_command and other alert and notification serttings). Am i missing something here?
define service {
name xiwizard_generic_service
check_command check_xi_service_nsclient!password!UPTIME!!!!!!
is_volatile 0
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 1
check_period xi_timeperiod_24x7
parallelize_check 1
obsess_over_service 1
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 60
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,
notifications_enabled 1
register 0
}
define service {
host_name ASHENTWDFS-D01.ADVISORY.COM,ASHENTWDFS-D02.ADVISORY.COM
service_description System - Uptime
use xiwizard_generic_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
register 1
}
Regards,
Sudarshan.
Is there any document which describes host and service templates.
I have created a sample service template but when i create services, values from the service template is not inherited to the service i have created.
Could you please give some detailed explanation or any document.
Below is the service template and service:
Whatever values given in the service check is applied, but the template values are not getting updated in the service check like (check_command and other alert and notification serttings). Am i missing something here?
define service {
name xiwizard_generic_service
check_command check_xi_service_nsclient!password!UPTIME!!!!!!
is_volatile 0
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 1
check_period xi_timeperiod_24x7
parallelize_check 1
obsess_over_service 1
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 60
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,
notifications_enabled 1
register 0
}
define service {
host_name ASHENTWDFS-D01.ADVISORY.COM,ASHENTWDFS-D02.ADVISORY.COM
service_description System - Uptime
use xiwizard_generic_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
register 1
}
Regards,
Sudarshan.
Re: Need help in nagios XI:
Only the value that are not defined "locally" (on a host/service level) will get inherited. Read more on object inheritance here:
http://nagios.sourceforge.net/docs/nagi ... tance.html
May I ask you why you are modifying the "xiwizard_generic_service" template (instead of using a custom one) by adding the "UPTIME" check? This check command will be added to all of the services that use that template, unless another check command is specified on a service level.
In regards to the notification interval and notification period - they are the same in the service and the template. What exactly is not getting inherited?
http://nagios.sourceforge.net/docs/nagi ... tance.html
May I ask you why you are modifying the "xiwizard_generic_service" template (instead of using a custom one) by adding the "UPTIME" check? This check command will be added to all of the services that use that template, unless another check command is specified on a service level.
In regards to the notification interval and notification period - they are the same in the service and the template. What exactly is not getting inherited?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Need help in nagios XI:
Thanks for your reply.
That document is really helpful. In the example i gave you previously, "UPTIME" command is not getting inherited to the hosts i have specified.
define service {
host_name ASHENTWDFS-D01.ADVISORY.COM,ASHENTWDFS-D02.ADVISORY.COM
service_description System - Uptime
use xiwizard_generic_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
register 1
}
That document is really helpful. In the example i gave you previously, "UPTIME" command is not getting inherited to the hosts i have specified.
define service {
host_name ASHENTWDFS-D01.ADVISORY.COM,ASHENTWDFS-D02.ADVISORY.COM
service_description System - Uptime
use xiwizard_generic_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
register 1
}