hostgroups in service definitions
Rasmus Plewe
rplewe at ess.nec.de
Wed Nov 27 18:24:56 CET 2002
Hello,
I'm trying to set up Nagios for an (in the end) fairly large and
complex network. I haven't used Nagios/Netsaint before, but with the
documentation and the FAQ I got a pretty good start, at least for the
not large and complex test bed.
My problem:
My logical thinking tells me that in a "define service{}" I should be
able to insert a hostgroup, with the result that this service would be
defined on all hosts in the hostgroup (as I have a couple of basically
identical hosts). This does not seem to work.
What I have done:
- I used
host_name mygroup
in the service definition. Result when running nagios -v:
Error: Host 'my_group' specified in service 'SMTP' not defined anywhere!
- I used
host_group my_group
in the service definition. Result when running nagios -v:
Error: Could not add object property in file '[...]/services.cfg' on line x.
- I used
host_name host1,host2,host3
in the service definition. This seems to work.
What more did I do:
- I read the documentation regarding service definition (again) and
looked for other places in the documentation that could be of help.
- I read and searched the FAQ.
- I tried to search the mailing list archive. Unfortunately the search
funktion was either stalling or time out-ing, more or less.
I'm sure it must be some tiny overseeing on my side, as I would expect
this to be in the FAQ if it was really neccessary to list all
computers seperately - what would be the point of hostgroups then, and
it would be quite error prone when adding/deleting hosts.
Regards,
Rasmus
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
More information about the Users
mailing list