what to do when mrtg fails to generate rrd's
Posted: Wed May 11, 2016 5:33 pm
Any thoughts on how to make the rrd's be generated?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfgCode: Select all
[root@NagiosXI ~]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
SNMP Error:
no response received
SNMPv2c_Session (remote host: "10.11.51.254" [10.11.51.254].161)
community: "ImaxRW"
request ID: 1674085092
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 497
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 on [email protected]:161::::2:v4only
at /usr/bin/mrtg line 2330
2016-05-11 16:08:25: WARNING: skipping because at least the query for ifInOctets.1 on 10.11.51.254 did not succeed
2016-05-11 16:08:25: WARNING: no data for ifInOctets&ifOutOctets:[email protected]. Skipping further queries for Host 10.11.51.254 in this round.
2016-05-11 16:08:36: ERROR: Target[10.11.51.254_1][_IN_] ' $target->[299]{$mode} ' did not eval into defined data
2016-05-11 16:08:36: ERROR: Target[10.11.51.254_1][_OUT_] ' $target->[299]{$mode} ' did not eval into defined data
2016-05-11 16:08:36: ERROR: Target[10.11.51.254_2][_IN_] ' $target->[300]{$mode} ' did not eval into defined data
2016-05-11 16:08:36: ERROR: Target[10.11.51.254_2][_OUT_] ' $target->[300]{$mode} ' did not eval into defined data
2016-05-11 16:08:36: ERROR: Target[10.0.3.147_11][_IN_] ' $target->[326]{$mode} ' did not eval into defined data
2016-05-11 16:08:36: ERROR: Target[10.0.3.147_11][_OUT_] ' $target->[326]{$mode} ' did not eval into defined data
2016-05-11 16:08:36: ERROR: Target[10.0.3.146_11][_IN_] ' $target->[332]{$mode} ' did not eval into defined data
2016-05-11 16:08:36: ERROR: Target[10.0.3.146_11][_OUT_] ' $target->[332]{$mode} ' did not eval into defined data
[root@NagiosXI ~]#
RRD file does not existBox293 wrote:From your screenshots I can see they have an unknown status, but what is the error message being displayed?
File doesn't existCan you post the file: /etc/mrtg/conf.d/10.0.0.50.cfg
Code: Select all
###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date: 2016-05-11 16:26:13
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define host {
host_name CenturyLink-Border
use xiwizard_switch_host
address 10.0.0.50
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts rbuckle
contact_groups Engineering
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image switch.png
statusmap_image switch.png
_xiwizard switch
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################Code: Select all
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date: 2016-05-16 10:20:55
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
host_name CenturyLink-Border
service_description Ping
use xiwizard_switch_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts rbuckle
contact_groups Engineering
_xiwizard switch
register 1
}
define service {
host_name CenturyLink-Border
service_description To CenturyLink Bandwidth
use xiwizard_switch_port_bandwidth_service
check_command check_xi_service_mrtgtraf_bits!10.0.0.50_1.rrd!50.00,50.00!80.00,80.00!M
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts rbuckle
contact_groups Engineering
_xiwizard switch
register 1
}
define service {
host_name CenturyLink-Border
service_description To CenturyLink Status
use xiwizard_switch_port_status_service
check_command check_xi_service_ifoperstatus!Canopy!1!-v 2
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts rbuckle
contact_groups Engineering
_xiwizard switch
register 1
}
define service {
host_name CenturyLink-Border
service_description To Core 1 Bandwidth
use xiwizard_switch_port_bandwidth_service
check_command check_xi_service_mrtgtraf!10.0.0.50_2.rrd!500.00,500.00!800.00,800.00!M
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts rbuckle
contact_groups Engineering
_xiwizard switch
register 1
}
define service {
host_name CenturyLink-Border
service_description To Core 1 Status
use xiwizard_switch_port_status_service
check_command check_xi_service_ifoperstatus!Canopy!2!-v 2
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts rbuckle
contact_groups Engineering
_xiwizard switch
register 1
}
define service {
host_name CenturyLink-Border
service_description To Core 2 Bandwidth
use xiwizard_switch_port_bandwidth_service
check_command check_xi_service_mrtgtraf!10.0.0.50_3.rrd!500.00,500.00!800.00,800.00!M
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts rbuckle
contact_groups Engineering
_xiwizard switch
register 1
}
define service {
host_name CenturyLink-Border
service_description To Core 2 Status
use xiwizard_switch_port_status_service
check_command check_xi_service_ifoperstatus!Canopy!3!-v 2
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts rbuckle
contact_groups Engineering
_xiwizard switch
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################