Forum Discussion

Raz_Karmi's avatar
10 years ago

Alert subject line

Would like to receive the alerts subject line with the state of "Up" or "Down" instead of "0" or "1"

  • Hi Raz - what context is this in? Off the top of my head, I cant think of any alert subjects that have just numerical status....

  • Hi

    the subject of the alert is:

    active | warn | A10-Red | 172.16.30.179 | ServerStatus | 2

    The body contains the following:

    Host: A10-Red

    Datasource: VirtualServers-172.16.30.179

    Datapoint: ServerStatus

    Level: warn

    Start: 2015-06-10 22:51:04 PDT

    Duration: 0h 0m

    Value: 2

    Status: active

    Reason: ServerStatus != 1

  • Ah - you've got a customized Alert Subject line that is used for all alerts.

    You could override that for this specific alert, and in the datapoint ServerStatus in A10AX_VirtualServers datasource, set the Alert Subject Template to be:

    ##LEVEL## : ##GROUP## | ##HOSTNAME## | ##INSTANCE## | DOWN

    Given that this alert will trigger only when the virtual server is not up, hard coding in the Down value will work. (Although it was also say that on the alert clears.)

    There is not a way to generally lookup a datapoint value and convert to a text string at the moment, unfortunately...