Hi there,
I wrote a custom plugin under linux / py and it works pretty well. Metrics were collected by site24x7, perfect.
However, if I want to configure the threshold and want to get notified by email as soon as the limit has been reachhed. The pitty is, I can set the threshold lets say to the value 3 and this will be actually discovered by Site24x7, but the status turns just to in trouble, and... no notification will be send.
So, what do I need to do that a reached plugin threshold will trigger alarm notifications by email?
Here the code of my plugin.
#!/usr/bin/python
import json
METRICS_UNITS={'mailqueue':'Emails'}
def metricCollector():
data = {}
data['plugin_version'] = 1
data['heartbeat_required'] = 'true'
data['mailqueue']=8
data['units']=METRICS_UNITS
return data
if __name__ == '__main__':
result = metricCollector()
print(json.dumps(result, indent=4, sort_keys=True))
Thank in advance
Markus