servicegroups???
bru1n at comcast.net
bru1n at comcast.net
Fri Apr 29 15:44:59 CEST 2005
I can't specifically answer your question as to why. You are correct in that members are not required in the servicegroup def if you put them in the service def. The docs could/should be a little clearer.
There are two ways to do it, one way, my setup example below, is to put the servicegroup in the service def making the field unneccesary. If you choose to specify members in the servicegroup.cfg, it seemed like a lot more work, and not as flexible, but then the docs are correct.
Also, reading the Member description in the Directive Descriptions http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#servicegroup it say that either way is acceptable.
nagios @ miata: uname -a
SunOS miata 5.10 Generic sun4u sparc SUNW,Sun-Fire-V210
nagios @ miata: ./nagios -v
Nagios 2.0b3
Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org)
Last Modified: 04-03-2005
License: GPL
# services.cfg
define service{
host_name dbserver1
service_description check-stagedb
servicegroups db-proc
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups dba-admins
notification_interval 960
notification_period 24x7
check_command check_oracle_db!orastage
}
define service{
host_name dbserver2
service_description oracle-devdb
servicegroups db-proc
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups dba-admins
notification_interval 960
notification_period 24x7
check_command check_oracle_db!oradev
}
# servicegroups.cfg
define servicegroup{
servicegroup_name db-proc
alias DB PMON Process
}
# checkcommands.cfg
# 'check_oracle_db' command definition
define command{
command_name check_oracle_db
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -S 18 -C "$USER1$/check_oracle --db $ARG1$"
}
> Hi
>
> I was just playing around with servicegroups and I notificied that
> members are marked as required (red) in the documentation.. Nagios2b3
> doesn't insist on it being there though.. I couldn't see any reason
> why you should not be able to define a servicegroup without members
> (or define the members on the individial services)?
>
> So I figured i must be an error in the documentation...
>
> I wanted to correct this, so I opened the cvs version of
> xodtemplate.html but the servicegroup section is gone!
>
> Can anybody tell me why this is?
>
> Regards,
> Christian Theil Have
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net
> Plus IDC's 2005 look-ahead and a copy of this survey
> Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix
> _______________________________________________
> 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
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
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