Is there any way for a Script plugin to "find" and add new metrics? Normally, these are hardcoded in the xml configuration file of course.
For example, let's say the script queries a database "where name like 'metric%'"
Then for each returned row, returns a value for 'metric1', metric2' etc..
As the returned list changes, new metric collection would begin and deprecated ones might stop.
Currently, I am using RHQ 3
Al Amyot | Consultant Sierra Systems
(eHealth): 204-926-4257 (T): 204-942-2575 (C): 204-230-7911 (F): 204-942-2047 444 St. Mary Avenue, Suite 1050 Winnipeg, MB R3C 3T1
Management Consulting | System Integration | Managed Services website: www.SierraSystems.com http://www.sierrasystems.com/
This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original.
Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
There is no way to do this currently. There has been alot of talk in the past on how to support this - its called "dynamic metadata". See this design wiki page for how far the discussions got (though nothing is planned for implementation right now):
http://rhq-project.org/display/RHQ/Design-Dynamic+Metadata
On Tue, 2011-12-20 at 15:36 -0600, Al Amyot wrote:
Is there any way for a Script plugin to “find” and add new metrics? Normally, these are hardcoded in the xml configuration file of course. For example, let’s say the script queries a database “where name like ‘metric%’” Then for each returned row, returns a value for ‘metric1’, metric2’ etc.. As the returned list changes, new metric collection would begin and deprecated ones might stop.
Hi, Am 20.12.2011 um 22:36 schrieb Al Amyot:
Is there any way for a Script plugin to “find” and add new metrics? Normally, these are hardcoded in the xml configuration file of course.
Not currently.
We had a student doing his master thesis on a proof-of-concept for this. Results are in the 'nagios' branch in git. His work is also described here: http://rhq-project.org/display/RHQ/Plugins+-+Nagios (in the attached pdf) That prototype only delivers a full cut through from discovery of types/metrics on agents until peristence in the db, but does not answer questions like what happens if the discovery does no longer find a certain type or metric (you can't just automatically delete stuff, as this may have been the result of some network glitch) etc.
Heiko
rhq-users@lists.stg.fedorahosted.org