Like all of you know, (and me) there are a lot of Monitoring software (Open Source or not), I'm talking about Nagios, Hyperic, OpenNMs, Tivoly, Microsoft...
Like all of you know, best way to extract info of a Tomcat server is by a correctly secured JMX bean.
Well, My problem is double:
First: The default polling time of the monitoring servers is way too long. A Five minutes pull can not detect a problem or a peak of use, even a restart.
The solution to this is as simple as reduce the polling time to 5 seconds (or less).
This will probably saturate the server, But that's easy to solve. (More Iron)
Anyway, this polling time leads us to the 2º Problem
If i pull the JMx counter in a 5 second interval, and I get about 5 counters for each instance of tomcat, and we have more than 15 servers...
That's 375 samples per 5 seconds. 4500 samples per minute. Yes. The Database will grow very fast.
Reason many samples:
I dont really need each sample, but the average of them in a given time period (10 mins). But if a pull the counter in a 10 minute interval, I will loose a lot of info, that I need for detecting problems, monthly graphics of use...
So, the question is simple. Is there any software that can pull frecuently but stores only the average of the samples in a given period?
Of course, There's "manual" options to this problem... maybe daily tasks on the DB that calculate the average of the table in a period...
Or a perl-based script that makes the iteration... and then stores it in the DB
But before to that programming, I'm looking in the net and asking.
Thanks in advance