Hey. I am trying to create a new Zabbix script that will trigger the Gitlab job to put the host in maintenance
The problem is that I want to let the NOC team input duration time.
I thought to use JS 'window.prompt' or bash 'read' options, but it didn't work...
Example:
// JS
var name = window.prompt("Enter your name: ");
alert("Your name is " + name);
//BASH
read name
echo $name
----------------------
Besides, if somebody can provide info about zabbix (zabbix_js) javascript library.
it would be nice as well. Maybe I can call Zabbix server directly from JS instead of using external CI/CD tools.
Thanks
The problem is that I want to let the NOC team input duration time.
I thought to use JS 'window.prompt' or bash 'read' options, but it didn't work...
Example:
// JS
var name = window.prompt("Enter your name: ");
alert("Your name is " + name);
//BASH
read name
echo $name
----------------------
Besides, if somebody can provide info about zabbix (zabbix_js) javascript library.
it would be nice as well. Maybe I can call Zabbix server directly from JS instead of using external CI/CD tools.
Thanks
Comment