mrtg problem after yum update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

mrtg problem after yum update

Post by srrhd »

Hi,

Our server has been updated via "yum update". If NagiosXI is still working perfectly, all the bandwith services using check_rrdtraf from the Switch/Router Wizard stopped working. The rrd files are now populated with NAN.

When verifying the mrtg.cfg we got:
[root@localhost var]# sudo-u apache LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
2015-01-29 15:33:35: ERROR: Creating templock /etc/mrtg/mrtg.cfg_l_16199: Permission denied at /usr/bin/mrtg line 1829.
Our server is a CentOS 6, rrdtool version is 1.3.8-7.el6, and NagiosXI is 2014R2.5.

All files in /etc/mrtg/conf.d/ are owned by apache:nagios in 775.

The mrtg.cfg is :
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg

Include: conf.d/*.cfg
Forks: 4
What can we do fix this permission problem ? We tried the script NagiosXI-FixPerms.sh but it didn't help.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, Graph Explorer, Latest Alert
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: mrtg problem after yum update

Post by scottwilkerson »

srrhd wrote:All files in /etc/mrtg/conf.d/ are owned by apache:nagios in 775.
These are ok, but what are the permissions of

Code: Select all

ls -al /var/lib/mrtg
Also, we use a very specific version of mrtg in XI

Can you post the output of running

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg
If it isn't 2.17.4 we will need to walk you through manually upgrading mrtg from our source tarball
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: mrtg problem after yum update

Post by srrhd »

All the .rrd files are owned by root in 644 :

Code: Select all

[root@localhost ~]# ls -al /var/lib/mrtg
[...]
-rw-r--r--   1 root root 105312 Jan 29 08:45 10.0.0.200_10.rrd
[...]
For mrtg the version is 2.16.2:

Code: Select all

[root@localhost ~]# LANG=C LC_ALL=C /usr/bin/mrtg
Usage: mrtg <config-file>

mrtg-2.16.2 - Multi Router Traffic Grapher

Copyright 1995-2006 by Tobias Oetiker
Licensed under the Gnu GPL.

If you want to know more about this tool, you might want
to read the docs. You can find everything on the
mrtg website:

http://oss.oetiker.ch/mrtg/
I used your script from /tmp/nagiosxi/subcomponents/mrtg/ to upgrade it and everything works fine now.

Thanks for your support.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, Graph Explorer, Latest Alert
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: mrtg problem after yum update

Post by cmerchant »

Great! We'll go ahead and close the thread. Thanks.
Locked