Frequent errors from cron for MRTG

From Notes_Wiki
Revision as of 04:40, 10 November 2012 by Saurabh (talk | contribs) (Created page with "=Frequent errors from cron for mrtg= If you get frequent errors from cron for mrtg with message '<tt>Can't locate MRTG_lib.pm in @INC</tt>' then you can use following steps t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Frequent errors from cron for mrtg

If you get frequent errors from cron for mrtg with message 'Can't locate MRTG_lib.pm in @INC' then you can use following steps to get rid of error message:

  1. Edit file '/usr/bin/mrtg' (Use 'which mrtg' to find location if path changes)
  2. Add line 'use lib qw(/usr/lib64/mrtg2);' before the line which is causing the error to be displayed.