OK so since migrating one of our Nagios servers from CentsOS 6 to CentOS 7 whenever we add a new bandwidth check, the system is failing to create the rrd files that hold the information. So we get a lot of the following alerts:

All existing graphs created prior to the migration are populating just fine.
I have run the following
Code: Select all
ls -l /var/lib/mrtg
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Code: Select all
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_10625.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_10626.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_10627.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_10628.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_10.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_40.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_5001.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_5179.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 192.168.254.99_5182.rrd
-rwxrwxr-x 1 apache nagios 0 Nov 20 16:11 mrtg.ok
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_10101.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_10102.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_10103.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_10104.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_10105.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_10148.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_10149.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_12002.rrd
-rw-rw-r-- 1 apache nagios 105320 Nov 20 16:11 wxswocncr16_250.rrd
You have new mail in /var/spool/mail/root
[root@wxlnxnagxip02 mrtg]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
SNMPGET Problem for ifHCInOctets.250 ifHCOutOctets.250 on svc-snmpexec@wxswocncr16:161::::2:v4only: No response from remote host "wxswocncr16" at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 594.
Net_SNMP_util::snmpget('svc-snmpexec@wxswocncr16:161::::2:v4only', 'HASH(0x2bcd7e0)', 'ifHCInOctets.250', 'ifHCOutOctets.250') called at /usr/bin/mrtg line 2330
main::getsnmparg('HASH(0x27e3ca0)', 'HASH(0x35499c8)', 'HASH(0x26db538)', 'HASH(0x2b818a8)') called at /usr/bin/mrtg line 2510
main::readtargets('HASH(0x27e3ca0)', 'ARRAY(0x286ddb0)', 'HASH(0x26db538)') called at /usr/bin/mrtg line 403
main::main called at /usr/bin/mrtg line 143
2020-11-20 16:13:22: WARNING: skipping because at least the query for ifHCInOctets.250 on wxswocncr16 did not succeed
2020-11-20 16:13:22: WARNING: no data for ifHCInOctets&ifHCOutOctets:svc-snmpexec@wxswocncr16. Skipping further queries for Host wxswocncr16 in this round.
SNMPGET Problem for ifHCInOctets.10151 ifHCOutOctets.10151 on svc-snmpexec@192.168.251.11:161::::2:v4only: No response from remote host "192.168.251.11" at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 594.
Net_SNMP_util::snmpget('svc-snmpexec@192.168.251.11:161::::2:v4only', 'HASH(0x5e49160)', 'ifHCInOctets.10151', 'ifHCOutOctets.10151') called at /usr/bin/mrtg line 2330
main::getsnmparg('HASH(0x27e3ca0)', 'HASH(0x5e4bef0)', 'HASH(0x26db538)', 'HASH(0x2b818a8)') called at /usr/bin/mrtg line 2510
main::readtargets('HASH(0x27e3ca0)', 'ARRAY(0x286ddb0)', 'HASH(0x26db538)') called at /usr/bin/mrtg line 403
main::main called at /usr/bin/mrtg line 143
2020-11-20 16:13:22: WARNING: skipping because at least the query for ifHCInOctets.10151 on 192.168.251.11 did not succeed
2020-11-20 16:13:22: WARNING: no data for ifHCInOctets&ifHCOutOctets:svc-snmpexec@192.168.251.11. Skipping further queries for Host 192.168.251.11 in this round.
SNMPGET Problem for ifHCInOctets.1 ifHCOutOctets.1 on svc-snmpexec@192.168.250.121:161::::2:v4only: No response from remote host "192.168.250.121" at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 594.
Net_SNMP_util::snmpget('svc-snmpexec@192.168.250.121:161::::2:v4only', 'HASH(0x706ec50)', 'ifHCInOctets.1', 'ifHCOutOctets.1') called at /usr/bin/mrtg line 2330
main::getsnmparg('HASH(0x27e3ca0)', 'HASH(0x70719d0)', 'HASH(0x26db538)', 'HASH(0x2b818a8)') called at /usr/bin/mrtg line 2510
main::readtargets('HASH(0x27e3ca0)', 'ARRAY(0x286ddb0)', 'HASH(0x26db538)') called at /usr/bin/mrtg line 403
main::main called at /usr/bin/mrtg line 143
2020-11-20 16:13:22: WARNING: skipping because at least the query for ifHCInOctets.1 on 192.168.250.121 did not succeed
2020-11-20 16:13:22: WARNING: no data for ifHCInOctets&ifHCOutOctets:svc-snmpexec@192.168.250.121. Skipping further queries for Host 192.168.250.121 in this round.
SNMPGET Problem for ifHCInOctets.251 ifHCOutOctets.251 on svc-snmpexec@192.168.251.31:161::::2:v4only: No response from remote host "192.168.251.31" at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 594.
Net_SNMP_util::snmpget('svc-snmpexec@192.168.251.31:161::::2:v4only', 'HASH(0x54bab10)', 'ifHCInOctets.251', 'ifHCOutOctets.251') called at /usr/bin/mrtg line 2330
main::getsnmparg('HASH(0x27e3ca0)', 'HASH(0x54bd860)', 'HASH(0x26db538)', 'HASH(0x2b818a8)') called at /usr/bin/mrtg line 2510
main::readtargets('HASH(0x27e3ca0)', 'ARRAY(0x286ddb0)', 'HASH(0x26db538)') called at /usr/bin/mrtg line 403
main::main called at /usr/bin/mrtg line 143