One service definition for all hosts

Simon Beale simon at minos.org.uk
Fri May 25 11:18:35 CEST 2007


Under the service definition change hostgroup to hostgroup_name.

Note a service can have both a host_name list and a hostgroup_name list,
and the check will be run for both lists.

Simon

> Hello,
>
> Is it possible to define a service check for a hostgroup?
> I have 100 nodes in cluster and would like to define sth like this:
>
> define hostgroup{
>  hostgroup  wns
>  members    wn1-wn100
> }
>
> define service{
>  hostgroup           wns
>  service_description SSH
>  check_command       check_ssh
> }
>
> It would check SSH on all hosts in "wns" hostgroup,
> without defining it for every host.
>
> I did RTFM, but couldn't find the answer.
>
> Regards,
> Patryk
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list