dupliate host and service checks
Posted: Fri Oct 25, 2013 4:55 am
Hi;
I have a really funny/weird situation with nagios 3 host and service checks. The service checks are being checked twice per host..details below
So, I searched through the hosts.cfg and services.cfg and nowhere can I see any duplicate entries. I'm using chef to make all configuration additions and changes. I have two attributes set which supply the db informations for the host and service checks:
## RDS Service checks##
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hippo App Config
check_command check_mysql!<%= node[:rds][:hippoappconfig] %><%= node[:rds][:dbparams] %>
use default-service
servicegroups rds
}
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hen App Config
check_command check_mysql!<%= node[:rds][:henappconfig] %><%= node[:rds][:dbparams] %>
use default-service
servicegroups rds
}
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hippo Counters
check_command check_mysql_counters!<%= node[:rds][:hippoappconfig] %><%= node[:rds][:dbparamsc] %>
use default-service
servicegroups rds
}
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hen Counters
check_command check_mysql_counters!<%= node[:rds][:henappconfig] %><%= node[:rds][:dbparamsc] %>
use default-service
servicegroups rds
}
## RDS Host checks ##
define host{
use config-database-hippo; Name of host template to use
address <%= node[:rds][:hippoappconfig] %>
host_name rds-hippo-app-config
alias rds-hippo-app-config
hostgroups db-swrve,db-app-config,rds
}
define host{
use config-database-hen ; Name of host template to use
address <%= node[:rds][:henappconfig] %>
host_name rds-hen-app-config
alias rds-hen-app-config
hostgroups db-swrve,db-app-config,rds
}
For the life of me I can't figure out why for each host 4 service checks are being made. for host rds-hippo-app-config its showing 1x check RDS hen app cofnig + 1x Check RDS hen counters + 1x Check RDS Hippo App config + 1x Check RDS hippo counters. This is being repeated for the other host as well. So I am getting 8 service checks for both hosts. Duplicated.
Can any of you gents help?
Cheers
Ali.
I have a really funny/weird situation with nagios 3 host and service checks. The service checks are being checked twice per host..details below
So, I searched through the hosts.cfg and services.cfg and nowhere can I see any duplicate entries. I'm using chef to make all configuration additions and changes. I have two attributes set which supply the db informations for the host and service checks:
## RDS Service checks##
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hippo App Config
check_command check_mysql!<%= node[:rds][:hippoappconfig] %><%= node[:rds][:dbparams] %>
use default-service
servicegroups rds
}
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hen App Config
check_command check_mysql!<%= node[:rds][:henappconfig] %><%= node[:rds][:dbparams] %>
use default-service
servicegroups rds
}
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hippo Counters
check_command check_mysql_counters!<%= node[:rds][:hippoappconfig] %><%= node[:rds][:dbparamsc] %>
use default-service
servicegroups rds
}
define service {
hostgroup_name db-swrve,db-app-config,rds
service_description Check RDS Hen Counters
check_command check_mysql_counters!<%= node[:rds][:henappconfig] %><%= node[:rds][:dbparamsc] %>
use default-service
servicegroups rds
}
## RDS Host checks ##
define host{
use config-database-hippo; Name of host template to use
address <%= node[:rds][:hippoappconfig] %>
host_name rds-hippo-app-config
alias rds-hippo-app-config
hostgroups db-swrve,db-app-config,rds
}
define host{
use config-database-hen ; Name of host template to use
address <%= node[:rds][:henappconfig] %>
host_name rds-hen-app-config
alias rds-hen-app-config
hostgroups db-swrve,db-app-config,rds
}
For the life of me I can't figure out why for each host 4 service checks are being made. for host rds-hippo-app-config its showing 1x check RDS hen app cofnig + 1x Check RDS hen counters + 1x Check RDS Hippo App config + 1x Check RDS hippo counters. This is being repeated for the other host as well. So I am getting 8 service checks for both hosts. Duplicated.
Can any of you gents help?
Cheers
Ali.