Support Questions
Find answers, ask questions, and share your expertise

Host specific trigger in cloudera

Host specific trigger in cloudera

New Contributor

I have to create a trigger such that when a particular service is down on the node. Mark that host as bad.


IF (SELECT health_bad_rate WHERE hostId=$HOSTID AND last(health_bad_rate) = 1 AND serviceName = "ServiceABC") DO health:bad


But its not firing even when service is stopped there. I'm not sure the metric which I am using here is appropriate even.
Do you have any suggestions on this? How do i create the correct trigger.