I hope I’ve posted this to the correct forum as I do not see a plug-in developer’s forum.
Here’s the situation, I have several different boxes running dedicated applications that I want to monitor various aspects of.
The good news is that most of these applications publish many of the various parameters I wish to monitor as XML that I can easily get by directing the right request to a specific port on the box, so very little in the way of scripts actually need be deployed on the box itself. The bad news is that the port, request format and information returned all vary by which version of the application is running on the box.
I’ve already developed a perl plug-in that will query what type of application, and what version, is on any particular box, but takes about two seconds to run. I figure I only need to check about once a week to keep pace with what is on any particular box in the network, so the run time at that frequency is negligible. How can I use that information returned to determine the proper checks I need to run in order to retrieve the remainder of the information? I would like to be able to do this as an active check and avoid putting a phalanx of scripts on the boxes themselves. Any way this could be done on the Nagios monitor side that doesn’t involve passive checks or constant updating of either the host.cfg and/or service.cfg? I’m also limited to perl or batch scripting in the solution. Links to examples welcome.
Thanks in advance.