Page 1 of 2

what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 5:33 pm
by rbuckle
Image

Any thoughts on how to make the rrd's be generated?

Re: what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 6:03 pm
by Box293
Do you see any errors when you run the following command?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

Re: what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 6:09 pm
by rbuckle
Nothing concerning that host 10.0.0.50

Code: 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 ~]#

Re: what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 6:13 pm
by Box293
Can you post the file: /etc/mrtg/conf.d/10.0.0.50.cfg

Go into CCM
Find the host object CenturyLink-Border
Click the disk icon
Paste the text config here in a code block
Find the service objects for CenturyLink-Border
Click the disk icon for one of them
Paste the text config here in a code block

From your screenshots I can see they have an unknown status, but what is the error message being displayed?

Re: what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 6:19 pm
by rbuckle
Box293 wrote:From your screenshots I can see they have an unknown status, but what is the error message being displayed?
RRD file does not exist
Can you post the file: /etc/mrtg/conf.d/10.0.0.50.cfg
File doesn't exist

Re: what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 6:27 pm
by rbuckle

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
#
###############################################################################

Re: what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 6:48 pm
by Box293
I also need:

Find the service objects for CenturyLink-Border
Click the disk icon for one of them
Paste the text config here in a code block

Can you post the file: /etc/mrtg/conf.d/10.0.0.50.cfg

Re: what to do when mrtg fails to generate rrd's

Posted: Wed May 11, 2016 7:37 pm
by rbuckle
The cfg file does not exist, i will get the other information when i get back to a computer

Re: what to do when mrtg fails to generate rrd's

Posted: Thu May 12, 2016 9:11 am
by lmiltchev
Sure, whenever you are ready.

Re: what to do when mrtg fails to generate rrd's

Posted: Mon May 16, 2016 12:21 pm
by rbuckle

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
#
###############################################################################