Windows Service Monitoring: Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Trigger if the service has 3 times a "wrong" status == '''Exmaple:''' You monitor a Zabbix Item, in this examaple the FailoverCluster-Service (service.info[…“) |
Admin (Diskussion | Beiträge) |
||
Zeile 3: | Zeile 3: | ||
You want to trigger if the last 3 values are not "0" but if the service does not exists then trigger should not alert (for Nodes that are not in a cluster).<br> | You want to trigger if the last 3 values are not "0" but if the service does not exists then trigger should not alert (for Nodes that are not in a cluster).<br> | ||
''The Zabbix Template "Compute_Hyper-V" are linked to the Hyper-V Nodes.'' | ''The Zabbix Template "Compute_Hyper-V" are linked to the Hyper-V Nodes.'' | ||
+ | |||
Value '''0''' means the Windows Service '''is running'''.<br> | Value '''0''' means the Windows Service '''is running'''.<br> | ||
Value '''255''' means Zabbix find '''no Windows Service''' with this name (No such service).<br> | Value '''255''' means Zabbix find '''no Windows Service''' with this name (No such service).<br> | ||
+ | |||
'''Mostly incorrectly configured (misconceived)''' | '''Mostly incorrectly configured (misconceived)''' |
Version vom 24. März 2020, 10:55 Uhr
Trigger if the service has 3 times a "wrong" status
Exmaple: You monitor a Zabbix Item, in this examaple the FailoverCluster-Service (service.info[ClusSvc]) with an interval of 30secs.
You want to trigger if the last 3 values are not "0" but if the service does not exists then trigger should not alert (for Nodes that are not in a cluster).
The Zabbix Template "Compute_Hyper-V" are linked to the Hyper-V Nodes.
Value 0 means the Windows Service is running.
Value 255 means Zabbix find no Windows Service with this name (No such service).
Mostly incorrectly configured (misconceived)
Zabbix Trigger expression:
({Compute_Hyper-V:service.info[ClusSvc].last(3)}<>0) and ({Compute_Hyper-V:service.info[ClusSvc].last(3)}<>255)
-> This is not working correctly.
Correct configuration would be
({Compute_Hyper-V:service.info[ClusSvc].count(#3,0)}=0) and ({Compute_Hyper-V:service.info[ClusSvc].count(#3,255)}=0)