I was curious if there is a way to append to a user macro. I am trying to see if we have 3 consecutive ping failures to trigger an alert. So I modified the built in expression. I want to be able to change it for certain devices as we have some equipment that is across a satellite link and its quite lossy.
Problem Expression
{Template Module ICMP Ping:icmpping[,{$ICMP_PACKET_COUNT},,,{$ICMP_TIMEOUT}].min(#{$ICMP_ATTEMPTS})}=1
Recovery Expression
{Template Module ICMP Ping:icmpping[,{$ICMP_PACKET_COUNT},,,{$ICMP_TIMEOUT}].max(#{$ICMP_ATTEMPTS_RECOVERY})}=0
With the above expressions its throwing the following error.

I would like to use the user macro so users do not have to add the # inside the user macro. Makes it a little more friendly to configure without having to remind the next admins to add #.
Is this possible?
Thank you,
South Pole Helpdesk
Problem Expression
{Template Module ICMP Ping:icmpping[,{$ICMP_PACKET_COUNT},,,{$ICMP_TIMEOUT}].min(#{$ICMP_ATTEMPTS})}=1
Recovery Expression
{Template Module ICMP Ping:icmpping[,{$ICMP_PACKET_COUNT},,,{$ICMP_TIMEOUT}].max(#{$ICMP_ATTEMPTS_RECOVERY})}=0
With the above expressions its throwing the following error.
I would like to use the user macro so users do not have to add the # inside the user macro. Makes it a little more friendly to configure without having to remind the next admins to add #.
Is this possible?
Thank you,
South Pole Helpdesk
Comment