But problem with this macro is, we can use this macro with notification handler but not with event handler. When I use this macro in my event handler it give me blank.
Now, I'm looking for a macro that, I can send to my event handler, so that it can tell me whether host/service flapping has been started or not.
I tried using $HOSTPERCENTCHANGE$ but not happy/understand with the result. If no macro is available, how can I get this info whether flapping has been started.
What, I'm trying to achieve is stop processing SNMP traps being sent, if host/service start flapping. Nagios write the code don't send SNMP traps during downtime, but how can I stop sending SNMP traps while host/service is flapping.
Well I edited my code
Code: Select all
/usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php at line number 457 by trying to get the macro by $meta
Please help me to sort this out.