The process (running as the hobbit user) that is trying to write the MRTG confcache file doesn't have permissions to write to the mrtg/cfg directory. Changing the permissions on the mrtg/cfg dir should fix the problem. Alternatively you could use the --confcache-file option in MRTG to point the cache files to a directory the hobbit user can write to.
Al
arun.nale at tcs.com wrote:
Guys, Anybody knows about the problem below
----- Forwarded by Arun Nale/MUM/TCS on 09/13/2005 08:10 AM ----- *arun.nale at tcs.com*
09/12/2005 08:39 AM Please respond to hobbit at hswn.dk
To hobbit at hswn.dk cc
Subject [hobbit] Hobbit MRTG integrqation
Hi Henrik,
I am getting following error in the mrtg.log while integrating mrtg within trends as specified in the hobbit help page. http://localhost/hobbit/help/hobbit-mrtg.html ERROR: writing /usr/local/mrtg/router.ok.ok: Permission denied at /usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1438
Pl. help If i execute the CMD env LANG=C /usr/local/mrtg/bin/mrtg --lock-file /var/log/hobbit/mrtg.lock /usr/local/mrtg/router.cfg as root there is no error.
thanks Arun Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
ForwardSourceID:NT0000A582
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you