Ad Widget

Collapse

Append to User Macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spo-helpdesk
    Junior Member
    • Jun 2020
    • 4

    #1

    Append to User Macro

    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.

    Click image for larger version

Name:	Screenshot_2020-06-19 South Pole Station Configuration of triggers.png
Views:	173
Size:	5.8 KB
ID:	403627

    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
  • spo-helpdesk
    Junior Member
    • Jun 2020
    • 4

    #2
    Just a quick bump.

    Comment

    Working...