On Wed, Dec 13, 2006 at 11:44:44AM +1100, Linux Cook wrote:
> 
> ERROR: Target[kontor.root][_IN_] 'dskPercent. $target->[6]{$mode} ' (eval):
> Bareword "dskPercent" not allowed while "strict subs" in use at (eval 15)
> line 1.
> 
> ERROR: Target[kontor.root][_OUT_] 'dskPercent. $target->[6]{$mode} ' (eval):
> Bareword "dskPercent" not allowed while "strict subs" in use at (eval 16)
> line 1
> 
> my mrtg.cfg has config like:
> 
> Target[kontor.root]:dskPercent.1:[EMAIL PROTECTED]

The target is wrong. mrtg tried to evaluate dskPercent as Perl code and
failed, like this:

  $ perl -Mstrict -we 'eval {dskPercent}'
  Bareword "dskPercent" not allowed while "strict subs" in use at -e line 1.
  Execution of -e aborted due to compilation errors.

Consult the manual for the correct target syntax.

http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html#per_target_configuration

-- 
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
plug@lists.linux.org.ph (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to