[mrtg-developers] Getting error from MRTG when runningexternalscript

Alex van den Bogaerdt alex at ergens.op.het.net
Tue Mar 18 16:41:39 CET 2008


On Tue, Mar 18, 2008 at 10:26:44AM -0500, Scott S. Heath wrote:
> I replaced the last print line of my code with a hard coded print
> statement just printing out just 250,50 and received this error:
> 
> readline() on closed filehandle NF at /usr/bin/mrtg line 1311.
> Use of uninitialized value in concatenation (.) or string at
> /usr/bin/mrtg line 1484.
> 
> When I pass this code through od -c I get:
> 0000000   2   5   0  \n   5   0  \n
> 0000007
> 
> When I pass my original code through od -c I get:
> 0000000   2   0   0  \n   0  \n   0  \n   C   o   p   y   Q   u   e   u
> 0000020   e   L   e   n   g   t   h  \n
> 0000030
> 
> I'm not sure how to interpret this as I'm brand new to perl.

Looking good. But where does this final newline come from?


Does your mrtg setup work if you don't use the external program
interface?

Can the mrtg script start your script? (check permissions)



More information about the mrtg-developers mailing list