Aggregating Services from multiple hosts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kkohut
Posts: 1
Joined: Wed Feb 17, 2010 4:19 pm

Aggregating Services from multiple hosts

Post by kkohut »

We have a web farm, and would like to roll up a given service (say, CPU utilization) of all the servers in the farm. The logic would work like this:

We want a single service monitor to reflect various conditions based on the aggreate CPU utilization of the farm, utilizing some sort of averaging algorithm. Does Nagios support this directly, or would we need to write a specific plugin ourselves (or is there a plugin already out there?).

I tried to search on this, but found nothing.

Thanks,

Kevin
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Aggregating Services from multiple hosts

Post by mmestnik »

This would likely be done by some form of script. Nagios works of a Pass/Fail mechanism and passes performance data as text, not as numerical values. Graphs are generated by parsing the text.

Since Nagios does not utilize the performance data it's code is simpler. It should be trivial to write a check_script that grabs the performance and status data out of Nagios' log/data files and then returns Pass/Fail and graph-able performance data.

For clustering I've found it useful to be able to have a parent host check that would return the better/best state of it's siblings, this was not difficult.
Locked