I am using smartmontools.
I have everything working but windows. When I run the command below from the Windows machine I get what is expected.
But when I execute this command, It returns '0' where it should show '1'.
I have Cygwin installed and using smartctl from the installation. It *does* work when run on the Windows machine, but not remotely using zabbix_get. When I run the 'zabbix_get' command on the windows machine, I also get zeros.
Anyone have an idea on what to look at or how to further test?
Thank you,
Durwin
I have everything working but windows. When I run the command below from the Windows machine I get what is expected.
Code:
powershell -NoProfile -ExecutionPolicy Bypass -File "D:\home\Administrator\zbx-smartctl\discovery-scripts\windows\smartctl-disks-discovery.ps1"
{
"data":[
{
"{#DISKNAME}":"/dev/hda",
"{#SMART_ENABLED}":"1"
},
{
"{#DISKNAME}":"/dev/hdb",
"{#SMART_ENABLED}":"1"
},
{
"{#DISKNAME}":"/dev/hdc",
"{#SMART_ENABLED}":"1"
},
{
"{#DISKNAME}":"/dev/hdd",
"{#SMART_ENABLED}":"1"
}
]
}
Code:
zabbix_get -s 172.23.93.4 -k uHDD.discovery
{
"data":[
{
"{#DISKNAME}":"/dev/hda",
"{#SMART_ENABLED}":"0"
},
{
"{#DISKNAME}":"/dev/hdb",
"{#SMART_ENABLED}":"0"
},
{
"{#DISKNAME}":"/dev/hdc",
"{#SMART_ENABLED}":"0"
},
{
"{#DISKNAME}":"/dev/hdd",
"{#SMART_ENABLED}":"0"
}
]
}
Anyone have an idea on what to look at or how to further test?
Thank you,
Durwin
Comment