One defined service for all hosts

Jim Avery jim at jimavery.me.uk
Fri May 25 13:18:48 CEST 2007


On 25/05/07, Patryk Lasoń <eos at spin.ict.pwr.wroc.pl> wrote:
> 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
> }
>
> "RTFM" answer is also accepted ;-)

the syntax is "hostgroup_name" so you were nearly right.

RTFM at http://nagios.sourceforge.net/docs/2_0/templatetricks.html

hth,

Jim
-------------------------------------------------------------------------
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-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