Page 1 of 1

[Nagios-devel] Hosts and Services

Posted: Fri Jun 17, 2005 12:03 pm
by Guest
I've been poking around the data model for nagios 2.x recently and from
what I can see the =E2=80=9Ccheck_command=E2=80=9D and related variables =
in the =E2=80=9Cdefine
host{=E2=80=9C section are actually redundant...


Should those variables be removed and let the =E2=80=9Cdefine service{=E2=
=80=9D section
handle =E2=80=9Ccheck_commands=E2=80=9D?


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 ...=20
}


define host_service {
host_name linux-server
service ping-linux-servers
contact_group linux-admins
}


(more of a relational way of thinking)=20


For host =E2=80=9Ccontact_groups=E2=80=9D you do not actually get contact=
ed when a host
fails, it is actually a =E2=80=9Cservice=E2=80=9D that has executed and f=
ailed on that
host. If the =E2=80=9Chost check_command=E2=80=9D 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






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