[Nagiosplug-help] Services
Charles Lacour
Clacour at greyhound.com
Mon Nov 1 07:14:14 CET 2004
>>> "barry.maclean" <barry.maclean at shaw.ca> 10/29/04 10:45PM >>>
>How do I configure a service to be checked every 10 minutes and
> other services 20 etc.????
Assuming you're using the recommended template method, you define
a service template that uses a 20-minute interval, then override it for the
one service you want to be different.
The top of the "services.cfg" file that comes as part of the nagios
package has a template called "generic-service" at the top of the file.
You can either modify it, or copy it and change the name.
The particular parameter you want is called "normal_check_interval".
Set that to 20 in the template, and then copy that one line to the specific
service you want to be different and change the time in the
service-specific line.
Example:
define service {
use test-service
hostname test002
service_description fs_space
check_command fs_space
contact_groups unix_admins
}
define service {
use test-service
hostname test002
service_description cpubusy
check_command cpubusy
contact_groups unix_admins
normal_check_interval 10
}
Assuming "test-service" had been defined with normal_check_interval
set to 20, the "fs_space" check would run every 20 minutes, and the
"cpubusy" check would run every 10.
More information about the Help
mailing list