Ad Widget

Collapse

Send notification to Zabbix when a process is closed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sharafy
    Junior Member
    • May 2012
    • 15

    #1

    Send notification to Zabbix when a process is closed

    Hi All,

    How would I go about notifying Zabbix when a process is shut down in Windows?

    I can set Zabbix to monitor the application every few seconds but I got too many servers so it is not a good idea to do that, instead, I would like to notify Zabbix when specific application/process is closed in Windows.

    Thanks for your help.

    Currently running Zabbix 2.0.4
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    Originally posted by sharafy
    How would I go about notifying Zabbix when a process is shut down in Windows?
    To start, you need to configure the monitoring of service (the best option in this situation, is using of a script that returns 1 or 0 in zabbix). Then create a trigger and action to notify administrators if the service is not available (detailed description of configuration process you can find in documentation).
    I can set Zabbix to monitor the application every few seconds but I got too many servers so it is not a good idea to do that, instead, I would like to notify Zabbix when specific application/process is closed in Windows.
    Also, please read about zabbix templates. It will help you to speed up the configuration process and reduce the labor expenses.

    Comment

    • Heilig
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2013
      • 366

      #3
      Perhaps these two topics will also be of interest to you:

      Comment

      • sharafy
        Junior Member
        • May 2012
        • 15

        #4
        Thanks for the info.

        I want Windows to send a message to Zabbix when a process is closed/ended instead of zabbix monitoring the process every X seconds.

        I tried to put a small batch file together to monitor an app and then uses zabbix_sneder to notify zabbix when the app is closed.

        Code:
        @echo off
        :loop
        pslist notepad >nul 2>nul || start "" C:\progra~1\zabbix~1\zabbix_sender.exe -c C:\progra~1\zabbix~1\zabbix_agentd.conf -s hostname -k notepad.trap -o 1
        ping -n 2 127.0.0.1 >nul
        goto loop
        This seems to work ok but if would like to know if there is a better way to do this.

        Thanks.

        Comment

        Working...