No perfdata on a copied service
Posted: Wed Jan 13, 2016 7:03 pm
I needed to change the thresholds on a service, so I copied it in CCM, changed the name slightly, updated the thresholds and added hosts. The original running on all windows hosts except 2, gather performance data. The 2 on this service don't. The one that doesn't gather the data is the 2nd one below.
The above config looked a bit old fashioned so I updated to make it work w/ the newer syntax. Same result. No perfata in the DB and no graphs.
Since the same template is used for all 3 it seems like it isn't the template. I doubt its the fault of the servers. That seems to leave my service definitions.
I restarted the monitoring engine and performance grapher just for grins.
I assume the first question will be post the template. Here they are.
The templates along w/ hostgroups sort of show how I try to separate hosts/services from monitoring variables and services from hosts. Both of which seem abnormal.
So where have I screwed this up?
Thanks
Code: Select all
# grep -v ^# /usr/local/nagios/etc/services/FS_Win_Usage.cfg
define service {
service_description FS_Win_Usage
use default_service
hostgroup_name Windows_Physical_Most,1VZW_Windows_Virtual_Most
check_command check_nrpe!CheckDriveSize!-a ShowAll=long MinWarnFree=20% MinCritFree=10% FilterType=fixed!!!!!!
register 1
}
Code: Select all
# grep -v ^# /usr/local/nagios/etc/services/FS_Win_Usage_SQL.cfg
define service {
service_description FS_Win_Usage_SQL
use default_service
hostgroup_name Windows_SQL
check_command check_nrpe!CheckDriveSize!-a ShowAll=long MinWarnFree=10% MinCritFree=5% FilterType=fixed!!!!!!
register 1
}
Code: Select all
# grep -v ^# /usr/local/nagios/etc/services/FS_Win_Usage_SQL_test.cfg
define service {
service_description FS_Win_Usage_SQL_test
use default_service
hostgroup_name Windows_SQL
check_command check_nrpe!check_drivesize!-a --show-all "warn=free<10%" "crit=free<5%" "perf-config=*(unit:g)"!-a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'" "warn=free<10%" "crit=free<5%"!!!!!
notifications_enabled 0
register 1
}
I restarted the monitoring engine and performance grapher just for grins.
I assume the first question will be post the template. Here they are.
Code: Select all
define service {
name base_service
service_description Base service sourced by others
display_name Base template for most templates
is_volatile 0
max_check_attempts 1
check_interval 5
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
parallelize_check 1
obsess_over_service 0
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 60
first_notification_delay 15
notification_period 24x7
notification_options w,c,u,
register 0
}
Code: Select all
define service {
name default_service
service_description default_service
display_name Template for most services
use base_service
active_checks_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_options w,c,u,f,
notifications_enabled 1
register 0
}
So where have I screwed this up?
Thanks