Re: [Nagios-devel] Bug or feature request: Multiple host_name in

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Bug or feature request: Multiple host_name in

Post by Guest »

chiel wrote:
> Hello,
>
> I want to have mutiple host_name lines in a service object. Just like
> "members" in a hostgroup object, so I will get a better overview and not
> al my hosts have to be on 1 line.
> Something like this:
>
> define service{
> use local-service
> host_name localhost
> host_name server1
> host_name server2
> host_name server3
> service_description PING
> check_command check_ping!100.0,20%!500.0,60%
> }
>
> This is no problem when the hosts have multiple services atached to
> them, but you wil get an error when this is the only check for a host
> "Warning: Host 'server2' has no services associated with it!"
>
> Maybe a bug?
>
> Michiel
>

This will accomplish what you're looking for:

define service{
use local-service
host_name localhost,server1,server2,server3
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked