On Thu, 10 Mar 2005 18:27:30 +0000, Braun Brelin <bbrelin at openapp.biz> wrote:
> I'm running a Nagios 2.x management console that's getting data from a
> production Linux system running nrpe. The real time monitoring needs to
> run on the production box.
>> I'm trying to create the plugin (using Perl as my language) thus;
>> 1. Create a daemon that actually monitors the log file.
> 2. On a specific event, the daemon will write status information to a
> data file.
> 3. The plugin will read the data file at a specified interval and send
> it back through the nrpe daemon to the nagios console.
>> Is this the right way to go about it? I don't quite see how to merge
> the steps so that the plugin does all of the functionality in one
> program. Since the code needs to run in real time, for example, I can't
> output any of the Nagios error codes since the daemon never quits unless
> the entire system goes down.
Why can't the plugin issue the nagios error code based on what it
reads from the file?
T.
--
Thomas Bridge
CCIE #14108
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!