This is a multi-part message in MIME format.
------=_NextPart_000_0027_01C7F070.C9A36300
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Just a clarification: When I entered the code in my original email, I just
typed it in rather than copy and paste. Here is the actual code that is
running on the system.
use lib "/usr/local/nagios/libexec";
use utils qw(%ERRORS);
use strict;
use vars qw($counter);
$counter++;
print "The counter is ".$counter;
exit $ERRORS{'OK'};
Any help/insight is appreciated.
Tal
_____
From: [email protected]
[mailto:[email protected]] On Behalf Of Tal Cohen
Sent: Wednesday, September 05, 2007 9:56 AM
To: [email protected]
Subject: [Nagios-devel] EPN Newbie question
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_0027_01C7F070.C9A36300
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#default#ieooui) }
Just a clarification: When I =
entered the
code in my original email, I just typed it in rather than copy and =
paste. Here
is the actual code that is running on the =
system.
<span
style=3D'font-size:10.0pt;font
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]