Page 1 of 1

Aggregating Services from multiple hosts

Posted: Wed Feb 17, 2010 4:26 pm
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

Re: Aggregating Services from multiple hosts

Posted: Mon Mar 01, 2010 10:42 am
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.