<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi there,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am developing a plugin in Perl that uses a file
to store and write values.</FONT></DIV>
<DIV><FONT face=Arial size=2>The program runs just fine from the commandline.
However now I tried to integrate it in Nagios and it gave some problems. I found
out that when the interpreter hits the open statement the programs shuts
down ie it doesnt do anything, and Nagios returns a Critical without any data.
Anything in front of this statement works but after it doesn't.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#it stop right here</FONT></DIV>
<DIV><FONT face=Arial size=2>open(FILEWRITE, "< counter.dat") or die ("Can't
open counter.dat");<BR>@number = <FILEWRITE>;<BR>close
FILEWRITE;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I use this "open" call to get some data out of a
file and use it for comparison and later I open it again and write to it
(depending).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This data is key to the program. My question is
whether there is another way around this. I need to open a file and read from
it, but somehow ePN doesn't allow this. Or am I overseeing something else
here?</FONT></DIV><FONT face=Arial size=2>
<DIV><BR>Thanks,</DIV>
<DIV> </DIV>
<DIV>Jan van den Berg</DIV>
<DIV> </DIV>
<DIV>PS reply to my email as I am not at work. </FONT></DIV></BODY></HTML>