Page 1 of 1

Start service event handler only on specific nodes

Posted: Tue Sep 22, 2015 10:49 am
by galliar
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?

Re: Start service event handler only on specific nodes

Posted: Tue Sep 22, 2015 3:36 pm
by Box293
There is no way to do what you want with just one service, you'll need separate services.

Re: Start service event handler only on specific nodes

Posted: Wed Sep 23, 2015 9:37 am
by galliar
Thank you,

I appreciate your quick reply.

Regards,

Randy.

Re: Start service event handler only on specific nodes

Posted: Wed Sep 23, 2015 9:55 am
by hsmith
Is there anything else we can do to help you with this one?