[mrtg] Re: Error with external command
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Fri Sep 10 14:13:20 MEST 1999
> I made an external command (PERL SCRIPT) for monitoring response time (PING)
> to some routers.
> First i tried it in AIX with MRTG 2.8.6 without problems.
>
> Now it is running in RedHat5.2 and MRTG 2.8.6.
> It works but when i call mrtg from command line i get the following error:
>
> # ./mrtg ../conf/trpta.cfg
> Problem with Externale get '`/nm/mrtg/trpta/trpta.pl armeniaR`':
> Expected an INTEGER for 'in' but got '887.5'
>
> Problem with Externale get '`/nm/mrtg/trpta/trpta.pl armeniaR`':
> Expected an INTEGER for 'out' but got '887.5'
>
>
> What is happenning?? and how to soleve this??
>
The error is telling you what happens: MRTG expects an integer and it is
getting a real.
Run the command from the prompt, you'll notice the difference inbetween
AIX and linux, I bet AIX does return integers.
You'll have to modify the script and round the numbers to integers.
Regards,
Alex
--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list