Git Product home page Git Product logo

zabbix-scheduledtask's People

Contributors

romainsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zabbix-scheduledtask's Issues

Template does not work in Zabbix 3.2.7

In Zabbix 3.2.7 template does not work. In "Configuration" -> "Hosts" -> "Discovery rules" status "Not supported" and error "Value should be a JSON object".

script sends not all tasks to zabbix server

Windows 2016 Server standard with zabbix agent 4.4
Scheduler includes over 10 tasks:

  • 4 custom created; author: admin; running: another admin
  • 3 system created; author: user; running: the same user; (it's User_Feed_Synchronization}
  • 2 third party created; running: admin
  • 1 system; author: CreateExplorerShellUnelevated; running: admin

if run powershell, and execute: Get-ScheduledTask -TaskPath \ | where {$_.state -like "Ready" -or "Running"}
I see only 1 task: system; author: CreateExplorerShellUnelevated;
if run powershell as Administrator:
I see all tasks

when works your script, zabbix server receive only 2 task: third party; running: admin
third party created task, means that author not user, system or other build-in accounts and services.

Could you help ?

p.s. Based on the foregoing, your script can send to server only third party created tasks, сonsidering the above conditions,
regardless of the parameters in zabbix_agentd.conf

EnableRemoteCommands=1
UnsafeUserParameters=1
UserParameter=TaskSchedulerMonitoring[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\scripts\DiscoverScheduledTasks.ps1" "$1" "$2"

in DiscoverScheduledTasks.ps1 changed path with: path = " \ "

script can't get tasks, created by users, admins, system or services

Script returns nothing

Hi,
I just tested your script on a windows 2016 and it gives me only a newline, when I zabbix_get.
Do you have an idea why ?
It's the first time i'm using your script ^^

In 3.4.5 agent and Win 10 WinServer 2012 R2 not working

In Zabbix 3.4.5 template does not work.With Windows 10 In "Configuration" -> "Hosts" -> "Discovery rules" status "Not supported" and error "Value should be a JSON object" and with Win Server 2012 R2
In "Configuration" -> "Hosts" -> "Discovery rules" status "Enabled" and error "Value should be a JSON object"

Value should be a Json Object

When i attach this template to the agent i get an error stating the "value should be json object " but the status of the template is enabled and it gives no output .

Please help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.