Service checks in hosts.cfg?
chiel
chiel at gmx.net
Sat Feb 24 14:21:32 CET 2007
Hello,
I have been working with Nagios for a couple of days now and I'm just beginning to understand the principle of the config (.cfg) files.
I understand that you create a service (let say Ping) and put all your hosts (or hostgroups) in there that you want to check with ping.
But is it also possible to define these checks in the hosts.cfg file??
So I would become something like this:
define host{
host_name server1
alias Linux server 1
address 10.0.0.1
contact_groups network_team
checks check_ping, check_load, check_snmp <--- This line
}
This would make more sense to me, because if you got over a 100 hosts to check, and you don't want to do it with a hostgroup, then all these host most be in the services.cfg on one line (do I got this right?).
Please comment on this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070224/ec3698be/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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