Hi
We are trying to generate email alerts from our opscenter . After editing email.conf in opscenter we found that for type ->rolling-avg we have a field metric in the trap.
ex: for alert os-disk-usage (/dev/dm_3)
we have type field in the trap as rolling avg, and metric as os-disk-usage
for some other issues like node-down we have the type field -> nodedown and the field metric is missing
we tried to include both metric and type in the trap we needed in the email. But it shows the error i have attached
and it our email.conf file is
So we are planning to write an if -else condition in email.conf
if type = rolling-avg:
type = metric
else
type = type
but we are unable to code against it as we are not sure what language is used over there.
Can you please let us know what is the language used for coding email.conf or
Is there any other way to solve this ?