Hello, everyone.
So...
1. I created a UserParameter that restarts a Windows Service, like this:
UserParameter=restartService[*], powershell -NoProfile -ExecutionPolicy Bypass Restart-Service -Name "$1" -Force
2. I created that script so I could restart...
Search Result
Collapse
30 results in 0.0023 seconds.
Keywords
Members
Tags
-
RaulChiarella started a topic Unsupported Item Key when using UserParameter on Scripts as Action Operationin Zabbix HelpUnsupported Item Key when using UserParameter on Scripts as Action Operation
-
Problems executing scripts on Windows machines in Zabbix 7.0
I have problems running manual and automatic scripts on my Windows machines after upgrading my zabbix server to version 7.0
The problem I'm running into now is the following when I run a script on one of my machines:
However if I run the same command in my server... -
No Telnet output or SSH shell
Hi all,
I'm setting up a demonstration server to manage and monitor customer routers. I've given up on SSH since after a week of trying, I still just get "cannot request shell". I wonder if its maybe the host device (draytek vigor 2866) with the problem.
Anyway, Telnet scripts... -
Media Type Webhook Script - Error with find function
Hi All,
I've written a Webhook script to grab a list of company names from an array & then match the start of the hostname to the company abbreviation in the array. When a match is found, split the array value and return the Company Name part after the delimiter.
The rest of the script... -
Executing Script when zabbix-server,service is down
Hello everyone,
I would like to know if it's possible to somehow start a shell/python script on a server when its zabbix-server.service is currently down or disabled.
If itry to launch a script i receive following message, which is obviously because of the down zabbix-server.service... -
"Action operation" Scope scripts failed with error msg, although they were executed.
If I create a script with the scope "Action operation" (no MediaType Webhook), the script will be executed correctly when the action is triggered, but will be shown as incorrectly executed in the event view.
Error message:
What has to be entered in the Webhook Javascript...Last edited by rrr; 05-11-2021, 10:19. -
External script error
I'm trying to start a Curl script from Administration - Scripts but it keeps giving me an error.
For now the script calls a simple Curl that reads a JSON file and receives a JSON response.
...Code:IN_JSON="rde_post.json" OUT_JSON="rde_return.json" curl
Last edited by markfree; 24-08-2021, 21:55. -
Local scripts executed remotely
Hi everybody,
I am looking to monitor multiple servers (containers precisely) and I would like to be able to execute scripts, stored on the zabbix-server container, on a remote container.
I have already made sure that all the zabbix-server / zabbix-agents are working properly... -
ricotrevisan started a topic Possible to shutdown or activate specific interfaces on a network switch?in Zabbix HelpPossible to shutdown or activate specific interfaces on a network switch?
Hi,
Long time reader, first time poster.
I've got a Zabbix instance that monitors a bunch of managed network switches (TP-Link, etc.). I would like to be able to - for instance - shutdown port 4 on switch X. Is that possible? How could I achieve that?
My ultimate... -
Get hostname and drive lettre from tiggers
Hello
I am using zabbix to monitor disk space in Windows and Linux. My VMs are all in AWS. I wrote couple of scripts to increase/extend volumes when disk space is low by 20%.
I am able to get triggers and actions running.
What is missing ? I need to get the host-name... -
Remote command Script schedule
Hi guys.
I'm looking to execute some commands on a few servers using Zabbix and tried creating a script to do so.
Under Administration - Scripts, I created a simple script to restart a service:
...Code:net stop "service name" net start "service name"
-
Scripts commands macro
The scripts are a very useful feature, but I need execute scripts (on demand) with Trigger/events macro, but just only HOST macro is supported in commands.
The actions have suport for trigger/events and host macro but I need to run just on demand (some times I need to run and other not... -
Audit trail for script execution?
In talking with another Zabbix Admin in our company, we noticed that, while you can control who has access to and which host groups scripts can be manually executed on, there is no audit trail. Is this an oversight or am I missing a setting someplace that needs to be enabled? For security purposes,... -
Zabbix Telnet Script
Hello Guys
I would like to ask for your guidance on creating custom script on zabbix
I have already tried to do a custom script for telnet command on my zabbix server as shown in attached file.
But when I tested it on my Maps, it show "cannot execute...Last edited by PingPong93; 25-01-2018, 05:16. -
Enviar email com status de Ping de hosts
Pessoal bom dia!
Preciso de uma ajuda dos mestres!
Necessito que todo dia pela manha o zabbix de um fping em um grupo de hosts e se estiver todos live (pingando) ele me mande uma mensagem por Telegram ou Email, que já tenho configurado) informando e do contrario uma outra mensagem de...