Hello,
I am trying to create a trigger where the key is a "system.run" command.
For example, I would like to send a trigger if the Processor load on my RedHat box is greater than 2.
The key I use to gather processor load values is:
system.run[sar -q 1 1|tail -1|awk '{print $ 4}',wait]
Here is the trigger expression i have:
{myServer:system.run[sar -q 1 1|tail -1|awk '{print $ 4}',wait].last(0)}<=2
This however give me errors. Can someone please tell me how to configure triggers with system.run commands as keys.
I am trying to create a trigger where the key is a "system.run" command.
For example, I would like to send a trigger if the Processor load on my RedHat box is greater than 2.
The key I use to gather processor load values is:
system.run[sar -q 1 1|tail -1|awk '{print $ 4}',wait]
Here is the trigger expression i have:
{myServer:system.run[sar -q 1 1|tail -1|awk '{print $ 4}',wait].last(0)}<=2
This however give me errors. Can someone please tell me how to configure triggers with system.run commands as keys.
Comment