Re: [Nagios-users] One defined service for all hosts

2007-05-25 Thread Jim Avery
On 25/05/07, Patryk LasoĊ„ [EMAIL PROTECTED] 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_descriptionSSH
  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@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


Re: [Nagios-users] One defined service for all hosts

2007-05-25 Thread John A. Sullivan III
On Fri, 2007-05-25 at 11:09 -0400, Morris, Patrick wrote:
  Is it possible to define a service check for a hostgroup?
 
 Yes. I define almost all of mine that way.
snip
It's a huge time and maintenance saver to do it that way. Here is a
quick example:

define service{
hostgroup_name  NiagaraVPNGW
service_description Niagara_SSH
check_command   check_ssh
use NiagService
}

define service{
hostgroup_name  NiagaraInetRouters
service_description Niagara_Inet_Ping
check_command   check_ping!1000.0,60%!3000.0,100%
use NiagService
}

Hope this helps - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
[EMAIL PROTECTED]

If you would like to participate in the development of an open source
enterprise class network security management system, please visit
http://iscs.sourceforge.net


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


Re: [Nagios-users] One defined service for all hosts

2007-05-25 Thread Morris, Patrick
 Is it possible to define a service check for a hostgroup?

Yes. I define almost all of mine that way.

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