Changing configuration directives for huge services list
Posted: Tue Mar 08, 2011 5:32 am
Hello again,
We are using Nagios XI 2009R1.3 and monitoring over 5000 services. We have used configuration wizards to add new hosts. The configurations looks like the following:
Now it is being decided to change check_interval from 5 to 60 minutes. Is there an easy to way to change this directive for all 5000 services?
--------------------
It seems the wizard doesn't honour the directives in the templates. The template xiwizard_windowsserver_disk_service has check_interval set to 60 but when I add disk monitor service to any host it will have the same configuration as above.
The snippet below is from php file which has code for dealing with disk checks
Is that a bug (feature)? Any help is appreciated. Thanks
We are using Nagios XI 2009R1.3 and monitoring over 5000 services. We have used configuration wizards to add new hosts. The configurations looks like the following:
Code: Select all
define service {
host_name hostxyz.example.com
service_description Disk Monitor
use xiwizard_windowsserver_disk_service
max_check_attempts 5
check_interval 5
retry_interval 1
notification_interval 60
contacts nagiosadmin,servicenow
_xiwizard dh_windows_server
register 1
}--------------------
It seems the wizard doesn't honour the directives in the templates. The template xiwizard_windowsserver_disk_service has check_interval set to 60 but when I add disk monitor service to any host it will have the same configuration as above.
The snippet below is from php file which has code for dealing with disk checks
Code: Select all
case "disk":
$objs[]=array(
"type" => OBJECTTYPE_SERVICE,
"host_name" => $hostname,
"service_description" => "Disk Monitor",
"use" => "xiwizard_linuxserver_disk_service",
"_xiwizard" => $wizard_name,
);
break;