Hi ,
From time to time, the connection from Agent (x64) is lost.
Get value from agent failed. Error: ZBX_TCP_READ() failed [Connection reset by peer]
I would like to restart automatically the agent service
I can check the server is not listening anymore by verifying the tcp port:
zabbix_agentd.exe -t net.tcp.port[HOSTNAME,10050]
if 0 -> agent is down
or by using simple check tcp,HOSTNAME,10050
I can add a trigger to alert
I can restart the service on the windows command line or script
net stop "ZABBIX Agent"
net start "ZABBIX Agent"
As the agent in this state is disabled, i think to use external checks.
But Does anybody know how can I Run the script to restart the service from the linux server Or is there another solution to restart automatically agentd ?
From time to time, the connection from Agent (x64) is lost.
Get value from agent failed. Error: ZBX_TCP_READ() failed [Connection reset by peer]
I would like to restart automatically the agent service
I can check the server is not listening anymore by verifying the tcp port:
zabbix_agentd.exe -t net.tcp.port[HOSTNAME,10050]
if 0 -> agent is down
or by using simple check tcp,HOSTNAME,10050
I can add a trigger to alert
I can restart the service on the windows command line or script
net stop "ZABBIX Agent"
net start "ZABBIX Agent"
As the agent in this state is disabled, i think to use external checks.
But Does anybody know how can I Run the script to restart the service from the linux server Or is there another solution to restart automatically agentd ?
Comment