I'm not getting MRTG performance graphs on my hosts
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.10 (Final)
x64
Installed via Hyper-v image
No special configurations
I wasn't getting any bandwidth graphs although other snmp graphs were working fine. Found this https://support.nagios.com/kb/article.php?id=29 and worked through it. At some point while I was working through it the bandwidth graphs started working, then they stopped after 15 minutes. I've gone through those steps/procedures a number of times now and twice it started graphing again but only for 15 minutes. None of the tests indicate errors,
[root@localhost ~]# time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
real 0m2.180s
user 0m1.345s
sys 0m0.119s
seems to vary but I haven't seen it over 7 seconds for real and I only have 5 hosts configured. (It appears running this is what starts the graphing when graphing is working)
/usr/local/nagios/libexec/check_rrdtraf -f '/var/lib/mrtg/<IP_port>.rrd' -w 1 -c 2
Reports 0bps in and out when it's not working. Of course now that I'm posting the above /usr/bin/mrtg made it start and I get
CRITICAL - Current BW in: 57.59Mbps Out: 41.57Mbps|in=57.599371Mb/s;1;2 out=41.575454Mb/s;1;2
and I have graphs for now. Assuming they aren't going to last more than 15 minutes can I get some advice? Thanks in advance.
MRTG graphing failures
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: MRTG graphing failures
What version of XI are you running?
If it is 5.5.7 there was a bug introduced in the Switch Wizard and it should be updated
Admin -> Manage Config Wizards -> Check for Updates -> Install updates
Also, running the following commands from the command line will fix a permissions problem that was introduced in this version
If it is 5.5.7 there was a bug introduced in the Switch Wizard and it should be updated
Admin -> Manage Config Wizards -> Check for Updates -> Install updates
Also, running the following commands from the command line will fix a permissions problem that was introduced in this version
Code: Select all
chown apache:nagios /etc/mrtg -R
chmod 775 /etc/mrtg -R
chown apache:nagios /var/lib/mrtg -R
chmod 775 /var/lib/mrtg -RRe: MRTG graphing failures
Great. It looks like that fixed it. Thanks again!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: MRTG graphing failures
Great!kavan wrote:Great. It looks like that fixed it. Thanks again!
Locking