Dear Sir,
I am writing to thank you for your letter and say,
On Mon, Jan 13, 2003 at 03:27:30PM -0400, Michael Jewett wrote:
> Just wondering what is the easiest way to get information into the
> command_file. I have a passive check I'm working on that I would like to
> have the results put into the command file.
>
> do I just append the text to the end of the file? or what?
^named pipe.
Yes. However it depends on where the passive check is running: On the
Nag host - append it to the fifo; otherwise use send_ncsa to do so.
>
> I would like to do it in perl if at all possible.
>
open(F, '>>command_fifo); print F, ..yada; close F;
see http://YourNag/path_to_Nag/docs/extcommands.html
for a complete dscription of the command format _and_ also a note
referring to sample scripts (in /bin/sh).
> Thanks,
> Michael
>
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]