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.
dupliate host and service checks
Re: dupliate host and service checks
Can we see your host groups and service groups for the affected checks? I am thinking since there's a correlation between the number of services you have and the number of times a check is being repeated, you might have some duplication going on regarding the groups.
Former Nagios employee
Re: duplicate host and service checks
Good afternoon,
It might be related ?
I am trying to reopen bug report because I have it closed by mistake "0000388: multiple checks on a same service after reception of an external command PROCESS_SERVICE_CHECK_RESULT." (happens if service checks are rescheduled because hosts was flapping)
=> http://tracker.nagios.org/view.php?id=388#bugnotes
If a check is duplicated at runtime and send a notification each time, it could explain your problem
It might be related ?
I am trying to reopen bug report because I have it closed by mistake "0000388: multiple checks on a same service after reception of an external command PROCESS_SERVICE_CHECK_RESULT." (happens if service checks are rescheduled because hosts was flapping)
=> http://tracker.nagios.org/view.php?id=388#bugnotes
If a check is duplicated at runtime and send a notification each time, it could explain your problem
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: dupliate host and service checks
Schweet,
Are you able to reproduce this reliably through lftsy's thread's directions?:
http://support.nagios.com/forum/viewtop ... 956#p79956
Are you able to reproduce this reliably through lftsy's thread's directions?:
http://support.nagios.com/forum/viewtop ... 956#p79956