Is is possible to setup an 'aggregate service'?

Jason Dinsdale jasondinsdale at gmail.com
Wed Jan 19 04:21:44 CET 2005


I have Nagios installed and running just fine, and what a great tool it is 
too ... kudos to Ethan.  

I have a Q about whether it is possible to setup what I like to call 
an 'aggregate' service - a check of the doco gave me nothing. (and leads me to 
believe that this cannot be done currently?); our company has several business-
level (or abstract) services that are in fact comprised of multiple host-level 
services, all of which contribute to this high-level service being 'up' or 
not.  For example, for this high-level service to be deemed as 'up' by the 
business, the following all need to be OK:

- Host A - 3 x processes, and 2 x specific established TCP connections.
- Host B - 3 x processes, and 2 x specific established TCP connections.
- Host C - DNS service, 2 x specific processes.
- Host D - WWW service.
- Host E - Database up and responding to queries.

What I'd like to do is setup an 'aggregate service' who's state is dependant 
on the state of these specific services on hosts A, B, C, D & E so that:

- If all services on A,B,C,D & E are OK, then the aggregate services is OK.
- If one of the services on A,B,C,D & E is in a WARNING state, then the 
aggregate services is also in a WARNING state.
- As above, but with CRITICAL.

A further real-world wrinkle to this is that hosts A & B are in a load-
balanced config, so that if one host is down (CRITICAL) this is not actually a 
CRITICAL problem for the 'aggregate' service since it can still function using 
host B, and so it would be more appropriate to give the aggregate service 
a 'WARNING' condition.   This being the case it would be ideal if there was 
some way of describing these dependencies.

So can this be done, or is this really a new feature request?   Some of you 
might suggest that I just write a check for all these conditions and use a 
simple service check, but to me it makes a lot of sense to just leverage the 
existing service/check infrastructure and associated status info within Nagios.
Unfortunately I'm not much of a developer (not at this level anyway) so it's 
beyond me to write a mod to Nagios itself... :(

Thanks,

Jason



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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