Difference between revisions of "Frequent errors from cron for MRTG"
From Notes_Wiki
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Server administration tips and tricks]] > [[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 to get rid of error message: | 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 to get rid of error message: | ||
Line 6: | Line 5: | ||
#Edit file '<tt>/usr/bin/mrtg</tt>' (Use 'which mrtg' to find location if path changes) | #Edit file '<tt>/usr/bin/mrtg</tt>' (Use 'which mrtg' to find location if path changes) | ||
#Add line '<tt>use lib qw(/usr/lib64/mrtg2);</tt>' before the line which is causing the error to be displayed. | #Add line '<tt>use lib qw(/usr/lib64/mrtg2);</tt>' before the line which is causing the error to be displayed. | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Server administration tips and tricks]] > [[Frequent errors from cron for MRTG]] |
Latest revision as of 15:55, 22 July 2022
Home > CentOS > CentOS 6.x > Server administration tips and tricks > 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:
- Edit file '/usr/bin/mrtg' (Use 'which mrtg' to find location if path changes)
- Add line 'use lib qw(/usr/lib64/mrtg2);' before the line which is causing the error to be displayed.
Home > CentOS > CentOS 6.x > Server administration tips and tricks > Frequent errors from cron for MRTG