Antwort: Service Definition Efficiency
James Turnbull
james at lovedthanlost.net
Mon Jul 25 14:31:05 CEST 2005
Ralph.Grothe at itdz-berlin.de wrote:
> Hi Sascha,
>
> discovered your trick in the Time Saving Section of the Nagios
> docs.
>
> http://nagios.sourceforge.net/docs/2_0/templatetricks.html#servic
> e
Ralph
I may have missed you point but surely this:
define hostgroup{
hostgroup_name ssh_group
alias servers with ssh
members host1,host2,host3,host4,host5...
}
define /service/{
hostgroup_name ssh_group
service_description /ssh/
check_command check_ssh/
other service directives/ ...
}
works fine? The host_name and hostgroup_name are interchangeable in
service objects.
Regards
James Turnbull
--
James Turnbull <james at lovedthanlost.net>
---
Author of Hardening Linux, Apress
(http://www.amazon.com/exec/obidos/tg/detail/-/1590594444/)
---
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3194 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050725/df16d613/attachment.bin>
More information about the Users
mailing list