Ad Widget

Collapse

Zabbix_Windows_TaskScheduler_Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vnoc
    Senior Member
    • Sep 2017
    • 115

    #1

    Zabbix_Windows_TaskScheduler_Monitoring

    Hi,

    In one windows server my internal team is running 10 different tasks from taskscheduler

    5 tasks will be running every 5min
    3 tasks will be running every 30min
    1 task will be running every 12hours
    1 task will be running daily once

    So here I need to monitor these task means if any task doesn't run in its particular time interval a mail should be sent

    Can any one guide me on this plz........
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    At the end of each scheduled task you can push to the task scheduler metric data with status of the task using zabbix_sender. On top of the each zabbix trapper item you need to add trigger which will raise alarm if it will be no data with new status longer than exact period of time.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • vnoc
      Senior Member
      • Sep 2017
      • 115

      #3
      I am new to zabbix.

      Can you help me with a link which helps on this and the version i am using is 3.4.2

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4

        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • subratkumar
          Junior Member
          • Nov 2017
          • 1

          #5
          Not able to Monitor Windows TaskScheduler

          Hi There,

          I have created few task scheduler and I want to monitor them with Zabbix. I have referred multiple blogs but not getting the results.

          can any body assist me to configure the Zabbix setup to monitor windows task scheduler.

          Thank you
          Subrat

          Comment

          • vnoc
            Senior Member
            • Sep 2017
            • 115

            #6
            I am also facing the same issue. Can anybody help

            Comment

            • kaspars.mednis
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2017
              • 349

              #7
              Hello,

              have you looked at https://share.zabbix.com/operating-s...hes-planifiees ?

              Comment

              • Renate
                Member
                • Apr 2008
                • 34

                #8
                Is there also a possibility to do this without a script? Just want to know if the scheduled task has run or not?

                Comment

                • Bungystar
                  Junior Member
                  • Nov 2023
                  • 2

                  #9
                  Digging a bit of the old stuff but I'm interested in that very same use case. Like Renate, I just want to know if the scheduled task has run or not. What is the most simple way to do it ?

                  Comment

                  • Brambo
                    Senior Member
                    • Jul 2023
                    • 245

                    #10
                    If system.run is allowed by the agent, then use powershell command:
                    Code:
                    Get-ScheduledTask -TaskName '<insert task name here , you can use * as wildcard>' | select-object State
                    In your item it would like:
                    Code:
                    system.run[powershell.exe -c "write-output Get-ScheduledTask -TaskName 'GoogleUpdateTaskMachineCore' | select-object -expandproperty State"]
                    Example above is a task google chrome uses.
                    Small additional note: you dont get output of the task, which have useraccount "SYSTEM" , group Users or logged in user works fine.
                    Last edited by Brambo; 22-11-2023, 09:33.

                    Comment

                    • Bungystar
                      Junior Member
                      • Nov 2023
                      • 2

                      #11
                      Nice, I will give this a try, thank you.

                      Comment

                      • Semiadmin
                        Senior Member
                        • Oct 2014
                        • 1625

                        #12
                        wmi.getall and select from Win32_ScheduledJob

                        Comment

                        Working...