I would like to implement this structure to the way my triggers occur. I have tried many options but it never seems to work.
Trigger name:
FMS Master is Down
Expression:
last(/LINUX FMS/system.run[pgrep -x fmshelper | wc -l])=0
and
last(/LINUX FMS/system.uptime)>60m
Trigger name:
Scripting Engine is Down
Expression:
last(/LINUX FMS/system.run[pgrep -x fmsased | wc -l])=0
and
last(/LINUX FMS/system.uptime)>60m
and
last(/LINUX FMS/system.run[pgrep -x fmshelper | wc -l])=1
I tried to make it that it gives it an hour before it says something but it still sends all the messages to the users when the server is restarted. We don't want it to send us these triggers unless the system hasn't been restarted, because its already implied these processes are down. If FMS Helper Service goes down, all FMS sub-processes go down with it. Nginx does not, but we do not want Nginx to only alert us if it down, not if the system restarted, causing it to be down with it. If anyone could please help, that would be very lovely!
Here is my current infrastructure.
Trigger name:
FMS Master is Down
Expression:
last(/LINUX FMS/system.run[pgrep -x fmshelper | wc -l])=0
and
last(/LINUX FMS/system.uptime)>60m
Trigger name:
Scripting Engine is Down
Expression:
last(/LINUX FMS/system.run[pgrep -x fmsased | wc -l])=0
and
last(/LINUX FMS/system.uptime)>60m
and
last(/LINUX FMS/system.run[pgrep -x fmshelper | wc -l])=1
I tried to make it that it gives it an hour before it says something but it still sends all the messages to the users when the server is restarted. We don't want it to send us these triggers unless the system hasn't been restarted, because its already implied these processes are down. If FMS Helper Service goes down, all FMS sub-processes go down with it. Nginx does not, but we do not want Nginx to only alert us if it down, not if the system restarted, causing it to be down with it. If anyone could please help, that would be very lovely!
Here is my current infrastructure.
Comment