[mrtg] Re: External Application

Roosenraad, Chris Croosenraad at hsacorp.net
Thu Dec 30 15:30:51 MET 1999


Alex (et al),

Thanks for the many replies.  I've discovered my problem, fixed it, and and
away and flying.

Short solution:  I am an idiot.

Long solution:  In my desire to use proper PERL punctuation, instead of the
line:

TARGET[abc]: `/path/to/external.pl`

I had:

TARGET[abc]: `/path/to/external.pl`;


it was the trailing ";" that got me.  It seems that when that was in place,
mrtg would only read the first line from the external application, hence the
results I was seeing (external app ran fine, but only produced 1 data point
when run from mrtg).

Not a bug...unless you think MRTG should correct for this sort of human
error (I don't).

Anyway, thanks again for everyone's responses.  Given the time of year, I
was surprised and heartened by them.

Happy New Year (Apocalypse/Y2K)!

Chris

> -----Original Message-----
> From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl]
> Sent: Wednesday, December 29, 1999 7:14 PM
> To: Croosenraad at hsacorp.net
> Cc: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Re: External Application
> 
> 
> Roosenraad, Chris wrote:
> > 
> > I've got an external application that is returning what 
> appears to be the
> > correct 4 lines of data (4321, 1234, uptime, name) 
> seperated by carriage
> > returns ("\n").  The problem is that in the log files, only 
> the first value
> > is showing up, and the uptime/server name is not being 
> reported on the .html
> > page.
> > 
> 
> It would help if you would specify your OS ...
> 
> Make sure, very very sure, that the output is correct.  Do not reason
> from your scripts (as in: it should be "4321\n1234\nuptime\nname\n").
> Check it!
> 
> On unix, you could use "od", perhaps as "externalcmd | od -tx1"
> 
> regards,
> -- 
>    __________________________________________________________________
>  / alex at slot.hollandcasino.nl                  
> alex at ergens.op.het.net \
> | work                                                        
>  private |
> | My employer is capable of speaking therefore I speak only 
> for myself |
> +-------------------------------------------------------------
> ---------+
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> 
> 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg



More information about the mrtg mailing list