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?
Start service event handler only on specific nodes
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Start service event handler only on specific nodes
There is no way to do what you want with just one service, you'll need separate services.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Start service event handler only on specific nodes
Thank you,
I appreciate your quick reply.
Regards,
Randy.
I appreciate your quick reply.
Regards,
Randy.
Re: Start service event handler only on specific nodes
Is there anything else we can do to help you with this one?
Former Nagios Employee.
me.
me.