Hi Folks
I have installed Zabbix agent2 active on a windows 10 system. I also installed smartmon tools on the PC and included that in the PATH so that i can run smartctl from path
However after starting the agent i see the following errors in the log
Any ideas how to fix this ?
EDIT 1: There was one more weird issue after i installed the agent2 version 5.6.3. It refused to start saying cannot find configuration file zabbix_agent2.win.conf. When i checked the folder i did not find the file only the zabbix_agent2.conf file was there so i copied the same file and renamed it as zabbix_agent2.win.conf and it started working. I getting most of the data on the Zabbix server, just the smart.disk is not working
EDIT 2: I did some more test and figured out what is causing the problem, i cant figure out a solution for the same.
The issue is that the agent is not able to execute with admin privileges. When i test the agent in a command window using the command
I get the same error "Failed to execute smartctl: Command execution failed: exit status 1."
If i run the same command from a Admin command window it works fine.
To resolve this i tried running the zabbix_agent2 service using a local admin id, but still get the same error. No idea what more i can do to fix this
Any ideas, troubleshooting steps are welcome
EDIT 3: Ok some more testing
- I know zabbix_agent2 is running with admin privileges because the logfile created is done with owner as administrator group and within program files which would require admin privileges
- smartctl works fine and gets disk data irrespective of whether i run the command in admin command window or regular command window
I have installed Zabbix agent2 active on a windows 10 system. I also installed smartmon tools on the PC and included that in the PATH so that i can run smartctl from path
However after starting the agent i see the following errors in the log
Code:
2021/04/13 10:54:06.071806 check 'smart.disk.get' is not supported: Failed to execute smartctl: Command execution failed: exit status 1. 2021/04/13 10:55:06.062569 check 'smart.disk.get' is not supported: Failed to scan for devices: Cannot unmarshal JSON: invalid character '\'' looking for beginning of value.. 2021/04/13 10:56:06.085848 check 'smart.disk.get' is not supported: Failed to scan for devices: Cannot unmarshal JSON: invalid character '\'' looking for beginning of value.. 2021/04/13 10:57:06.096647 check 'smart.disk.get' is not supported: Failed to scan for devices: Cannot unmarshal JSON: invalid character '\'' looking for beginning of value..
EDIT 1: There was one more weird issue after i installed the agent2 version 5.6.3. It refused to start saying cannot find configuration file zabbix_agent2.win.conf. When i checked the folder i did not find the file only the zabbix_agent2.conf file was there so i copied the same file and renamed it as zabbix_agent2.win.conf and it started working. I getting most of the data on the Zabbix server, just the smart.disk is not working
EDIT 2: I did some more test and figured out what is causing the problem, i cant figure out a solution for the same.
The issue is that the agent is not able to execute with admin privileges. When i test the agent in a command window using the command
Code:
zabbix_agentd -t smart.drive.get
If i run the same command from a Admin command window it works fine.
To resolve this i tried running the zabbix_agent2 service using a local admin id, but still get the same error. No idea what more i can do to fix this
Any ideas, troubleshooting steps are welcome
EDIT 3: Ok some more testing
- I know zabbix_agent2 is running with admin privileges because the logfile created is done with owner as administrator group and within program files which would require admin privileges
- smartctl works fine and gets disk data irrespective of whether i run the command in admin command window or regular command window
Comment