Service dependences
刘兰涛
liulantao at gmail.com
Sun Aug 23 04:40:33 CEST 2009
hi, shacky
normally we should define the services first, and then give a servicedependency defination to describe the dependency.
a general skeleton may be like this:
define service{
host_name somehost
service_description NRPE
check_command some!command!
... ; other stuffs
}
define service{
host_name otherhost
service_description nrpeservice
check_command some!command!
... ; other stuffs
}
define servicedependency{
host_name somehost
service_description NRPE
#dependent_host_name otherhost
dependent_service_description nrpeservice
execution_failure_criteria w,c
}
for more detailed documentation, see http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#servicedependency.
On 08/22/2009 04:29 PM, shacky wrote:
> define service{
> use remote-service
> host_name my.server.hostname
> service_description NRPE
> check_command check_tcp!5666
> dependent_service_description
> nrpeservice1,nrpeservice2,nrpeservice3,nrpeservice4
> execution_failure_criteria w,c
> }
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list