Its currently failing on a few servers, due to the version of a python module installed on the remote host.
However, these servers are due to be upgraded in a couple of weeks, so for now I'd just like to prevent the unknown alerts for this service from being sent. Below are the service and service escalation definitions.
I tried to just exclude a couple of the affected hosts in the service definition.
However, when I do that, I get back the following error...
Error: Could not find a service matching host name 'hosta' and description 'Service: Rabbitmq Queue Count' (config file '/usr/local/nagios/etc/objects/service_escalations.cfg'
Code: Select all
define service {
use generic-service
hostgroup_name web_servers_vpc
host_name !hosta, !hostb
service_description Service: Rabbitmq Queue Count
check_command check_nrpe_1arg!check_rabbitmq_queue_count
}
define serviceescalation {
hostgroup_name web_servers_vpc
service_description Service: Rabbitmq Queue Count
contact_groups Admins
first_notification 1
last_notification 0
notification_interval 60
}