This is a multi-part message in MIME format.
------=_NextPart_000_0030_01C7EFA2.E911B260
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi Folks,
I am new to Nagios EPN development, so please be gentle - and let me know if
this is the right list to send these types of questions to.
I am trying to do something that I thought would be simple but is starting
to drive me crazy.
I want to create a plug-in that will retain data in memory across multiple
executions.
As an initial test, I created a counter plug-in:
#!/usr/bin/perl
use utils qw(%ERRORS);
use strict;
use vars qw($counter)
$counter++;
print "The counter is $counter";
exit $ERRORS{'OK'};
So far, so good.
When I test this in mini_epn, it works as expected incrementing each time I
invoke it.
However, when I add this as a check into the Nagios configuration file and
launch Nagios, the value does not increment across multiple executions.
What am I missing?
Thanks,
Tal
------=_NextPart_000_0030_01C7EFA2.E911B260
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi Folks,
I am new to Nagios EPN development, so please be =
gentle –
and let me know if this is the right list to send these types of =
questions to.
I am trying to do something that I thought would be =
simple
but is starting to drive me crazy.
I want to create a plug-in that will retain data in =
memory
across multiple executions.
As an initial test, I created a counter =
plug-in:
=
&=
nbsp;
#!/usr/bin/perl
 
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]