Re: [Nagios-devel] Assign services to hosts,
Posted: Tue Jun 03, 2008 11:47 pm
Tom
i think this is the wrong list. (Real answer below)
Am Mittwoch, den 04.06.2008, 09:26 +0200 schrieb Tom Sommer:
> Hi,
>
> I have a growing pain with Nagios that I thought I might share with you.
>
> I have a lot (!) of servers, and while some of them are generic and thus
> grouped, I also have a lot of servers to which I need set up custom
> monitoring per host.
>
> This means, correct me if I am wrong, I need to go to each service I want
> to apply to a host, and enter it into the "host_name" variable.
I think you are wrong. You can make a group per service. You can assign
the group to the host in the host definition. Define the service on the
group et voila problem solved.
example
define service{
=EF=BB=BF service_description MYSERVICE
use some-defaults
hostgroup_name group-myservice
check_command somecheck
}
define group{
hostgroup_name group-mysqervice
alias All hosts running MYSERVICE
}
define host[
use some-host-defaults
name MYHOST
hostgroups +group-myservice
}
Chris
financial.com AG
Munich head office/Hauptsitz M=C3=BCnchen: Maria-Probst-Str. 19 | 80939 M=
=C3=BCnchen | Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Eber=
t-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Al=
exis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitze=
nder)
Register court/Handelsregister: Munich =E2=80=93 HRB 128 972 | Sales tax ID=
number/St.Nr.: DE205 370 553
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
i think this is the wrong list. (Real answer below)
Am Mittwoch, den 04.06.2008, 09:26 +0200 schrieb Tom Sommer:
> Hi,
>
> I have a growing pain with Nagios that I thought I might share with you.
>
> I have a lot (!) of servers, and while some of them are generic and thus
> grouped, I also have a lot of servers to which I need set up custom
> monitoring per host.
>
> This means, correct me if I am wrong, I need to go to each service I want
> to apply to a host, and enter it into the "host_name" variable.
I think you are wrong. You can make a group per service. You can assign
the group to the host in the host definition. Define the service on the
group et voila problem solved.
example
define service{
=EF=BB=BF service_description MYSERVICE
use some-defaults
hostgroup_name group-myservice
check_command somecheck
}
define group{
hostgroup_name group-mysqervice
alias All hosts running MYSERVICE
}
define host[
use some-host-defaults
name MYHOST
hostgroups +group-myservice
}
Chris
financial.com AG
Munich head office/Hauptsitz M=C3=BCnchen: Maria-Probst-Str. 19 | 80939 M=
=C3=BCnchen | Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Eber=
t-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Al=
exis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitze=
nder)
Register court/Handelsregister: Munich =E2=80=93 HRB 128 972 | Sales tax ID=
number/St.Nr.: DE205 370 553
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]