Page 2 of 3
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Wed Feb 03, 2021 11:26 pm
by preethu.d
I have executed the command and attached the /tmp/mrtg.txt file.
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Thu Feb 04, 2021 6:34 pm
by ssax
Delete the lock file:
This looks like it has the same issue:
Code: Select all
ERROR: Line 26 (3000 Hanover St) in CFG file (/etc/mrtg/conf.d/100.100.100.4.cfg) does not make sense
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:
Code: Select all
3000 Hanover St
Palo Alto, CA 94304
To this:
Code: Select all
# 3000 Hanover St
# Palo Alto, CA 94304
Then run this command again and if any errors are shown send the full output:
Code: 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=nagios
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Fri Feb 05, 2021 12:54 pm
by preethu.d
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.
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Fri Feb 05, 2021 3:39 pm
by ssax
That should be working based on the last permissions.
What is the output of these commands?
Code: Select all
ls -ld /var/lib/mrtg
chage -l nagios
sestatus
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Mon Feb 08, 2021 12:07 pm
by preethu.d
attached the output of below commands
ls -ld /var/lib/mrtg
chage -l nagios
sestatus
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Mon Feb 08, 2021 6:32 pm
by ssax
Please run these commands as root:
Code: Select all
chown -R apache.nagios /var/lib/mrtg
chmod -R 0775 /var/lib/mrtg
Then do this again and if you see any errors, please send them:
Code: 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=nagios
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Tue Feb 09, 2021 12:57 am
by preethu.d
attached the output of the given command.
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Tue Feb 09, 2021 7:50 am
by preethu.d
can I delete and re-add the devices again ? Does it work ?
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Tue Feb 09, 2021 7:23 pm
by ssax
Please run these commands:
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/*.cfg
Then run this again:
Code: 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=nagios
Attach this file as well:
Re: /var/lib/mrtg/**.rrd does not exist
Posted: Wed Feb 10, 2021 12:33 am
by preethu.d
Attached the output of the commands and cfgmaker file.