Unnecessary host_name and for type loops/multiplecheck_commands?

Morris, Patrick patrick.morris at hp.com
Mon Apr 2 08:15:40 CEST 2007


> My questions:
> 
> % Is "host_name localhost" really necessary here? There's no 
> reference to $HOSTADDRESS$ anywhere in confirm_dns, but if I 
> don't define "host_name", nagios complains.

You'll need either a hostname or hostgroup that the service belongs to.

> % I want to check about 20 hostnames.
> 
>  % Any shortcut to writing 20 6-line "service" definitions?
>  % Can I use a for loop or something?
>  % Use multiple check_command's in a single service (doesn't 
> seem to to work)?

If you'll be otherwise monitoring those 20 hosts, you can put them in a
hostgroup and assign your check to the group so it runs against all of
them.  Otherwise, you'll need to specify 20 different service checks.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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