Re: [Nagios-devel] One service definition for all hosts
Posted: Fri May 25, 2007 1:18 am
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
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
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
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]