Here are the checks that are sanitized... I think the configuration looks to be fine. It is whatever the process is going to /var/lib/mrtg/ isn't picking it up perhaps?
Working one:
Code: Select all
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.3.2
# Date: 2015-12-23 12:13:05
# 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 server4
service_description eth0 Bandwidth
use xiwizard_switch_port_bandwidth_service
servicegroups ALL_Network_Bandwidth
check_command check_xi_service_mrtgtraf!server4_2.rrd!7,7!8,8!G
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
define service {
host_name server4
service_description eth0 Status
use xiwizard_switch_port_status_service
servicegroups ALL_Network_Bandwidth
check_command check_xi_service_ifoperstatus!nagios!2!-v 2
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
define service {
host_name server4
service_description eth1 Bandwidth
use xiwizard_switch_port_bandwidth_service
servicegroups ALL_Network_Bandwidth
check_command check_xi_service_mrtgtraf!server4_3.rrd!7,7!8,8!G
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
define service {
host_name server4
service_description eth1 Status
use xiwizard_switch_port_status_service
servicegroups ALL_Network_Bandwidth
check_command check_xi_service_ifoperstatus!nagios!3!-v 2
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Non-Working one:
Code: Select all
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.3.2
# Date: 2015-12-23 12:15:04
# 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 server2
service_description eth0 Bandwidth
use xiwizard_switch_port_bandwidth_service
servicegroups WMI_NETWORK_Checks
check_command check_xi_service_mrtgtraf!server2_2.rrd!7,7!8,8!G
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
define service {
host_name server2
service_description eth0 Status
use xiwizard_switch_port_status_service
servicegroups WMI_NETWORK_Checks
check_command check_xi_service_ifoperstatus!nagios!2!-v 2
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
define service {
host_name server2
service_description eth1 Bandwidth
use xiwizard_switch_port_bandwidth_service
servicegroups WMI_NETWORK_Checks
check_command check_xi_service_mrtgtraf!server2_3.rrd!7,7!8,8!G
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
define service {
host_name server2
service_description eth1 Status
use xiwizard_switch_port_status_service
servicegroups WMI_NETWORK_Checks
check_command check_xi_service_ifoperstatus!nagios!3!-v 2
max_check_attempts 2
check_interval 15
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contact_groups admins,Generic Group,Linux Admins,Unix Admins
_xiwizard switch
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################