Hi, <div><br></div><div>Try changing permissions to 777 just to make sure that is not the problem. (chmod -R 777 dir). If it doesn't help, put if back to 555. And also, check if something has changed in the scripts' outputs (mrtg-load, etc)... And last thing: the permissions have to be according to what user and group mrtg is being ran under.</div>
<div><br></div><div>Hope anything of these things help.</div><div><br><div class="gmail_quote">On Sun, Jul 12, 2009 at 12:45 AM, Noob Centos Admin <span dir="ltr"><<a href="mailto:centos.admin@gmail.com">centos.admin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I was running MRTG 2.15.2 on Centos 5.2 without problems for a while.<br>
Over the weekend, I updated Centos to 5.3 and somehow it broke MRTG.<br>
<br>
I started getting emails from crond with the following errors<br>
<br>
2009-07-12 08:45:02: WARNING: Problem with External get<br>
'/var/www/html/mrtg/core/system network eth0':<br>
Expected a Number for 'in' but got 'p'<br>
<br>
2009-07-12 08:45:02: ERROR: Target[index][_IN_] ' $target->[0]{$mode}<br>
' did not eval into defined data<br>
<br>
<br>
The graphs were still updating at this point, however I didn't really<br>
want to see error mails every 5 minutes, nor did I think it would be<br>
smart to simply redirect crond output to null for mrtg.<br>
<br>
After searching and reading, I updated mrtg to 2.16.2 as well as added<br>
the parameters ENV LANG=C to the crontab line.<br>
<br>
After this, MRTG stopped updating the statistics logs. However, there<br>
are no error messages whatsoever.<br>
<br>
I've tried installing net-snmp, tested it was working then enabled<br>
snmpv3 but doesn't seem to help<br>
<br>
I've even changed all permissions in /var/html/mrtg to 555 just in<br>
case it was some strange permissions issue.<br>
<br>
The file mrtg.ok is updated on every run but zero length.<br>
<br>
Config file contents (without comment lines):<br>
WorkDir: /var/www/html/mrtg/core<br>
Logdir: /var/www/html/mrtg<br>
Interval: 5<br>
Options[_]: bits, growright<br>
EnableSnmpV3: yes<br>
<br>
<br>
crontab line :<br>
*/5 * * * * root env LANG=C /usr/local/mrtg-2/bin/mrtg<br>
/var/www/html/mrtg/core/mrtg.cfg --logging /var/log/mrtg.log<br>
<br>
entry in log:<br>
2009-07-12 11:35:02 -- Started mrtg with config<br>
'/var/www/html/mrtg/core/mrtg.cfg'<br>
<br>
Every single entry is just that, I'm not sure if there should be a<br>
line that says "Ended mrtg" or something to that effect.<br>
<br>
I'll appreciate any help on solving this, thanks in advanced!<br>
<br>
_______________________________________________<br>
mrtg mailing list<br>
<a href="mailto:mrtg@lists.oetiker.ch">mrtg@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</a><br>
</blockquote></div><br></div>