Variations in monitored services (inheritance question?)
Posted: Fri Jul 12, 2019 4:53 am
We have an estate of approximately 60 Nagios monitored servers which are not identical. By that I mean some have devices and services present that are missing on on others.
The configuration file is structured such that there is a template service{} definition that all our other specific checks inherit. At the moment these are all simple things (disk, load, user, etc) that every server can support. I want to extend this to check specific things on certain systems but I can't figure out the correct way to set this up in the configuration file. If I add these to the configuration file every server will try to check them and many will fail.
The structure of the configuration file is like this:
Generic host{} definition followed by a list of host definitions that inherit it.
A hostgroup{} definition which lists all 60+ hosts.
Generic service{} definition as mentioned at the top and a collection of services that inherit it.
I've looked at the Object inheritance page in the manual but I can't see how to apply it to this problem.
If someone has an example of host specific checks that would be a good start.
The configuration file is structured such that there is a template service{} definition that all our other specific checks inherit. At the moment these are all simple things (disk, load, user, etc) that every server can support. I want to extend this to check specific things on certain systems but I can't figure out the correct way to set this up in the configuration file. If I add these to the configuration file every server will try to check them and many will fail.
The structure of the configuration file is like this:
Generic host{} definition followed by a list of host definitions that inherit it.
A hostgroup{} definition which lists all 60+ hosts.
Generic service{} definition as mentioned at the top and a collection of services that inherit it.
I've looked at the Object inheritance page in the manual but I can't see how to apply it to this problem.
If someone has an example of host specific checks that would be a good start.