[mrtg] Set Target in Windows MRTG

Gayan S. Amarasiri Gayan.Amarasiri at dialog.lk
Mon Jul 27 06:44:48 CEST 2009


When I use it as below it gives error like " ERROR: Target[SOC][_IN_]''c:\mrtg-2.16.2\bin\inno.pl''evaluated to 'c:\mrtg-2.16.2\bin\inno.pl' instead of a number
ERROR: Target[SOC][_OUT_]''c:\mrtg-2.16.2\bin\inno.pl''evaluated to 'c:\mrtg-2.16.2\bin\inno.pl' instead of a number"

Any reason for this?

Thanks & BR,

-----Original Message-----
From: Steve Shipway [mailto:s.shipway at auckland.ac.nz]
Sent: Saturday, July 25, 2009 6:37 AM
To: Gayan S. Amarasiri; mrtg at lists.oetiker.ch
Subject: RE: Set Target in Windows MRTG

In windows you do it exactly the same.  Of course, the paths to the script will be given in Windows notiation, and if you have already assosciated the .pl extension with the Perl interpreter then you dont need to give the pat hto perl.  So...

Target[SOC]: `C:\mrtg\bin\SOC.pl`

may well be sufficient in this case, provided this is the place you install the SOC.pl script...


From: mrtg-bounces at lists.oetiker.ch [mrtg-bounces at lists.oetiker.ch] On Behalf Of Gayan S. Amarasiri [Gayan.Amarasiri at dialog.lk]

In linux we can set target a perl file as follows.
Target[SOC]: `/usr/bin/perl /etc/mrtg/SOC.pl`
How to do it in windows mrtg?

This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.

More information about the mrtg mailing list