Hello,
I set up a batch script to restart services on Windows using Zabbix. Zabbix starts a batch file and the batch file restarts the service (It's just "net stop service && net start service" followed by "echo successful").
When I run the script via Zabbix, it does what its supposed to do, but it always gives me an error message saying "ERROR: Cannot connect to the trapper port of zabbix server daemon, but it should be available to run the script." and "Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer". Monitoring of that host works well and as I mentioned before, the restart of the service also works. But how do I get rid of those error messages? They might confuse the user of the system.
I added both the Zabbix server and the Zabbix proxy inside my zabbix_agentd.conf and restarted the service.
Thank you for your hints.
I set up a batch script to restart services on Windows using Zabbix. Zabbix starts a batch file and the batch file restarts the service (It's just "net stop service && net start service" followed by "echo successful").
When I run the script via Zabbix, it does what its supposed to do, but it always gives me an error message saying "ERROR: Cannot connect to the trapper port of zabbix server daemon, but it should be available to run the script." and "Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer". Monitoring of that host works well and as I mentioned before, the restart of the service also works. But how do I get rid of those error messages? They might confuse the user of the system.
I added both the Zabbix server and the Zabbix proxy inside my zabbix_agentd.conf and restarted the service.
Thank you for your hints.