/var/lib/mrtg/**.rrd does not exist
Re: /var/lib/mrtg/**.rrd does not exist
I have executed the command and attached the /tmp/mrtg.txt file.
You do not have the required permissions to view the files attached to this post.
Re: /var/lib/mrtg/**.rrd does not exist
Delete the lock file:
This looks like it has the same issue:
Do the same thing we did with the last to comment out those in /etc/mrtg/conf.d/100.100.100.4.cfg
Please edit the config file /etc/mrtg/conf.d/X.X.X.X.cfg and change this:
To this:
Then run this command again and if any errors are shown send the full output:
Code: Select all
rm /var/lib/mrtg/mrtg.lockCode: Select all
ERROR: Line 26 (3000 Hanover St) in CFG file (/etc/mrtg/conf.d/100.100.100.4.cfg) does not make sensePlease edit the config file /etc/mrtg/conf.d/X.X.X.X.cfg and change this:
Code: Select all
3000 Hanover St
Palo Alto, CA 94304Code: Select all
# 3000 Hanover St
# Palo Alto, CA 94304Code: Select all
time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagiosRe: /var/lib/mrtg/**.rrd does not exist
rm /var/lib/mrtg/mrtg.lock
>> there is no such file exist in the path
Please edit the config file /etc/mrtg/conf.d/X.X.X.X.cfg and change this:
# 3000 Hanover St
# Palo Alto, CA 94304
>> done the changes
time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
>> getting error while executing the command, attached the screenshot.
>> there is no such file exist in the path
Please edit the config file /etc/mrtg/conf.d/X.X.X.X.cfg and change this:
# 3000 Hanover St
# Palo Alto, CA 94304
>> done the changes
time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
>> getting error while executing the command, attached the screenshot.
You do not have the required permissions to view the files attached to this post.
Re: /var/lib/mrtg/**.rrd does not exist
That should be working based on the last permissions.
What is the output of these commands?
What is the output of these commands?
Code: Select all
ls -ld /var/lib/mrtg
chage -l nagios
sestatusRe: /var/lib/mrtg/**.rrd does not exist
attached the output of below commands
ls -ld /var/lib/mrtg
chage -l nagios
sestatus
ls -ld /var/lib/mrtg
chage -l nagios
sestatus
You do not have the required permissions to view the files attached to this post.
Re: /var/lib/mrtg/**.rrd does not exist
Please run these commands as root:
Then do this again and if you see any errors, please send them:
Code: Select all
chown -R apache.nagios /var/lib/mrtg
chmod -R 0775 /var/lib/mrtgCode: Select all
time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagiosRe: /var/lib/mrtg/**.rrd does not exist
attached the output of the given command.
You do not have the required permissions to view the files attached to this post.
Re: /var/lib/mrtg/**.rrd does not exist
can I delete and re-add the devices again ? Does it work ?
Re: /var/lib/mrtg/**.rrd does not exist
Please run these commands:
Then run this again:
Attach this file as well:
Code: Select all
sed -i 's/3000 Hanover St/#3000 Hanover St/g' /etc/mrtg/conf.d/*.cfg
sed -i 's/Palo Alto, CA 94304/#Palo Alto, CA 94304/g' /etc/mrtg/conf.d/*.cfgCode: Select all
time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagiosCode: Select all
/usr/bin/cfgmakerRe: /var/lib/mrtg/**.rrd does not exist
Attached the output of the commands and cfgmaker file.
You do not have the required permissions to view the files attached to this post.