Start service event handler only on specific nodes
Posted: Tue Sep 22, 2015 10:49 am
Hello,
Subject: Start event handler only on specific nodes
I am using Nagios Core 4.0.8. I have a service that monitors drive C usage on Windows Systems. The service have an event handler attached:
define service{
use generic-service
host_name hostname
service_description Drive C: Auto Clean
check_command check_nt!USEDDISKSPACE!-l c -w 92 -c 95
event_handler CustPurgeFiles
}
I would like that event handler to run only on certain systems. Is there a way to specifiy this, or do I need a separate service for C drive monitoring that doesn’t use the even_handler directive?
Subject: Start event handler only on specific nodes
I am using Nagios Core 4.0.8. I have a service that monitors drive C usage on Windows Systems. The service have an event handler attached:
define service{
use generic-service
host_name hostname
service_description Drive C: Auto Clean
check_command check_nt!USEDDISKSPACE!-l c -w 92 -c 95
event_handler CustPurgeFiles
}
I would like that event handler to run only on certain systems. Is there a way to specifiy this, or do I need a separate service for C drive monitoring that doesn’t use the even_handler directive?