Page 2 of 3
Re: how to configure MRTG for multiple nodes
Posted: Tue Sep 24, 2013 4:04 pm
by barry1946
at the blink of an eye.I mean i change it to nagios.nagios then I do ls -l and it is ... root.root
so if we could solve this issue of re-return , maybe we can solve the problem!
Re: how to configure MRTG for multiple nodes
Posted: Tue Sep 24, 2013 4:07 pm
by tmcdonald
What command are you using? Are you typing "nagios.nagios" or "nagios:nagios"?
Re: how to configure MRTG for multiple nodes
Posted: Tue Sep 24, 2013 4:20 pm
by barry1946
nagios.nagios
Re: how to configure MRTG for multiple nodes
Posted: Tue Sep 24, 2013 4:44 pm
by abrist
hmmm. mrtg is usually processed on a cron. I wonder if the cron is not setting the proper permissions. What is the output of:
Re: how to configure MRTG for multiple nodes
Posted: Tue Sep 24, 2013 5:05 pm
by barry1946
*/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
actually this is the original line that were automatically created after installing mrtg and I just uncommented it
there are plenty of suggestion out in the wild and I do not know which one to take.
I appreciate your suggestion for the cron.d/mrtg correct entry in this regard
Re: how to configure MRTG for multiple nodes
Posted: Wed Sep 25, 2013 8:43 am
by barry1946
I think the .log file becomes root:root because of the crond,
because the cron I set to 1 minute check after 1 minute the .log file in /var/www/mrtg/ becomes -rw-r--r--
also cron says: LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
content-type: type: text/plain;charset=UTF-8
I really need to solve this issue, I need help
Re: how to configure MRTG for multiple nodes
Posted: Wed Sep 25, 2013 9:17 am
by barry1946
I did LANG=en_US
export LANG
but still unable to open logfile for mrtftraf
Re: how to configure MRTG for multiple nodes
Posted: Wed Sep 25, 2013 1:29 pm
by abrist
What are the permission on check_mrtgtraf?
EDIT: And your umask settings:
Re: how to configure MRTG for multiple nodes
Posted: Sat Sep 28, 2013 2:48 am
by barry1946
it is 0022
Re: how to configure MRTG for multiple nodes
Posted: Mon Sep 30, 2013 9:33 am
by abrist
What about check_mrtgtraf?
Code: Select all
ls -la /usr/local/nagios/libexec/check_mrtgtraf