Hosts and Services
craig cook
craig.cook at ncmail.net
Fri Jun 17 22:03:34 CEST 2005
I've been poking around the data model for nagios 2.x recently and from
what I can see the “check_command” and related variables in the “define
host{“ section are actually redundant...
Should those variables be removed and let the “define service{” section
handle “check_commands”?
e.g.
define host {
host_name linux-server
address 10.0.0.1
parents linux-server2
hostgroups web-servers
check_command ping-linux-servers
contact_group linux-admins
[snip]
}
should actually become something like
define host {
host_name linux-server
address 10.0.0.1
parents linux-server2
hostgroups web-servers
}
define service {
service ping-linux-servers
check_command_line ping ...
}
define host_service {
host_name linux-server
service ping-linux-servers
contact_group linux-admins
}
(more of a relational way of thinking)
For host “contact_groups” you do not actually get contacted when a host
fails, it is actually a “service” that has executed and failed on that
host. If the “host check_command” was removed, this would be a little
clearer.
Comments?
(If this is as clear a mud I'll try and explain it a different way)
Craig Cook
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
More information about the Developers
mailing list