Need help in nagios XI:

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
shan_1986
Posts: 25
Joined: Sun Jul 28, 2013 9:10 am

Need help in nagios XI:

Post by shan_1986 »

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Need help in nagios XI:

Post by Box293 »

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shan_1986
Posts: 25
Joined: Sun Jul 28, 2013 9:10 am

Re: Need help in nagios XI:

Post by shan_1986 »

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Need help in nagios XI:

Post by abrist »

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.
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.
shan_1986
Posts: 25
Joined: Sun Jul 28, 2013 9:10 am

Re: Need help in nagios XI:

Post by shan_1986 »

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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Need help in nagios XI:

Post by abrist »

shan_1986 wrote:May we edit the service templates directly?
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.
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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Need help in nagios XI:

Post by Box293 »

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shan_1986
Posts: 25
Joined: Sun Jul 28, 2013 9:10 am

Re: Need help in nagios XI:

Post by shan_1986 »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need help in nagios XI:

Post by lmiltchev »

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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
shan_1986
Posts: 25
Joined: Sun Jul 28, 2013 9:10 am

Re: Need help in nagios XI:

Post by shan_1986 »

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
}
Locked