Service checks in hosts.cfg?
Hugo van der Kooij
hvdkooij at vanderkooij.org
Sat Feb 24 15:49:51 CET 2007
On Sat, 24 Feb 2007, chiel wrote:
> Thank you for your comments. I understand this way nagios must be
> configured.
>
> define service{
> use mydyndns-template
> host_name
> ns2.mydyndns.org,ns3.mydyndns.org,ns4.mydyndns.org,ns5.mydyndns.org
> service_description PING
> check_command check_ping!300,20%!1000,60%
> contact_groups mydyndns-org
> }
>
>
> In the above example you define all your hosts that you want to check with
> ping on one line. Let say I want to check over a 100 hosts with this
> services, must they al go on 1 line (?!).
> I can't put the hostgroup here because not al the hosts in that hostgroup
> respond to ping.
> (Of course I split up the config files as much as I can with creating
> cfg_dir's)
Can't recall if you can have multiple host_name lines. I have not needed
it yet. But it will take you only minutes to find out. Won't it?
Please, don't top post:
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
Hugo.
--
hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.
-------------------------------------------------------------------------
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