[mrtg] Re: Error with external command

Carlos Sebastian Vieira Uribe CarlViUr at suramericana.com.co
Fri Sep 10 14:36:58 MEST 1999


Thanks.

It worked using int($variable) to round the results.

Atte,

Sebastián Vieira Uribe
Analista en Gestión de Telecomunicaciones
Suramericana de Seguros S.A.

> ----------
> Desde: 	Alex van den Bogaerdt[SMTP:alex at slot.hollandcasino.nl]
> Enviado el: 	Viernes, 10 de Septiembre de 1999 07:13 a.m.
> Para: 	CarlViUr at suramericana.com.co
> Cc: 	mrtg at list.ee.ethz.ch
> Asunto: 	[mrtg] Re: Error with external command
> 
> > 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
> 

--
* 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