Ad Widget

Collapse

How can I remotly inform Zabbix to stop monitor an host?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeanblu
    Junior Member
    • May 2019
    • 2

    #1

    How can I remotly inform Zabbix to stop monitor an host?

    My goal: I would like to perform a reboot on some Windows server to maintenance and would like to Zabbix ignore all checks and alerts during this reboot. I don't want to log to Zabbix console and set mannually the maintenance period for this host. I would like to run some script on windows shutdown event, or something similiar to thist to inform Zabbix.
    Is there any way?
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    It's possible, yes.

    Create a script in PowerShell or some other language that you like that can use the Zabbix API to create a maintenance period. If you do some web searching, you should be able to find examples of using the Zabbix API from PowerShell. If you've ever done JSON RPC before, it's very straightforward.

    If you try that route and get stuck, follow-up in this forum thread. I've done maintenance periods via the API before, so I can probably help if you have something that's close to working.

    Comment

    Working...