Ad Widget

Collapse

Close alerts about not running Windows services after disabled them on windows?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andres.lisaso
    Junior Member
    • Oct 2022
    • 4

    #1

    Close alerts about not running Windows services after disabled them on windows?

    Hello,

    I have a problem with alerts referring to "Windows service not running" after being disabled on Windows.
    When i started the virtual machine the two services where on automatic delayed but i dont need them for the moment so i disabled them on windows. But Zabbix is still sending me alerts about them.

    Code:
    "FIELDEASBPM" (FIELDEAS BPM) is not running (startup type automatic delayed)
    Code:
    min(/DESP - FIELD0102/service.info["FIELDEASBPM",state],#3)<>0
    Click image for larger version

Name:	zabbix_alets_windows services.png
Views:	897
Size:	19.4 KB
ID:	452356
    Click image for larger version

Name:	services_windows_zabbix.png
Views:	899
Size:	24.3 KB
ID:	452357

    Is there any way to change the value of #SERVICE.STARTUPNAME without restarting the virtual machine?

    Thanks in advance.​
    Attached Files
  • JKoon
    Junior Member
    • Oct 2022
    • 1

    #2
    You may need to delete the triggers on the host, you can also exclude services from discovery by navigating to Administration/General/Regular Expressions. Under Windows Service Names For Discovery Add a new expression.
    Type="Result is FALSE"
    Expression = "^(<servicename>|<additional services>)$

    You can add as many services to this expression by separating them with a pipe "|". In my environment I had to set the Regular Expressions up, then manually delete the triggers on each host for the services I excluded, afterwards I no longer see those alerts.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Originally posted by JKoon
      you can also exclude services from discovery by navigating to Administration/General/Regular Expressions. Under Windows Service Names For Discovery Add a new expression.
      Type="Result is FALSE"
      Expression = "^(<servicename>|<additional services>)$

      You can add as many services to this expression by separating them with a pipe "|". In my environment I had to set the Regular Expressions up, then manually delete the triggers on each host for the services I excluded, afterwards I no longer see those alerts.
      WRONG! Global regexes are not used in recent templates. Only in very old instances or in templates that have gone through a lot of upgrades. In most cases you need to edit corresponding macros in template.

      Comment

      Working...