unable to remove service check from Nagios
Posted: Wed Jun 14, 2023 9:01 am
Hi,
We are using Nagios core 4.4.4
We need to remove a service check "SAN Device Backup" . Its hostname is dc2aldc08a.
Service definition is as follows :
define service{
service_description SAN Device Backup
use cisco-service
hostgroups CISCO SAN
check_command Backup-Cisco-SAN
max_check_attempts 3
retry_interval 10
check_interval 1440
}
I removed host dc2aldc08a from the hostgroup CISCO SAN and ran sanity check. But we are getting error.
Error: Could not find any host matching '#dc2aldc08a' (config file /usr/local/nagios/etc/objects/hostgroups.cfg starting on line 400
Error : Could not expand members specified in the hostgroup (config file '/usr/local/nagios/etc/objects/hostgroups.cfg' starting on line 400
What could be the reason.
We are using Nagios core 4.4.4
We need to remove a service check "SAN Device Backup" . Its hostname is dc2aldc08a.
Service definition is as follows :
define service{
service_description SAN Device Backup
use cisco-service
hostgroups CISCO SAN
check_command Backup-Cisco-SAN
max_check_attempts 3
retry_interval 10
check_interval 1440
}
I removed host dc2aldc08a from the hostgroup CISCO SAN and ran sanity check. But we are getting error.
Error: Could not find any host matching '#dc2aldc08a' (config file /usr/local/nagios/etc/objects/hostgroups.cfg starting on line 400
Error : Could not expand members specified in the hostgroup (config file '/usr/local/nagios/etc/objects/hostgroups.cfg' starting on line 400
What could be the reason.