Hi,
I have a few userparameters that return values fine via zabbix_get and are being monitored without issues.
However when trying to return a value to do with smartctl I get blank when returning zabbix_get on my server. The zabbix_agentd -t on the client works perfectly.
Is there any reason why a userparameter would work on the client but not my server when I have other userparameters that work fine.
Script
smartctl -a /dev/sda | egrep -i "Reallocated_Sector_Ct" | awk '{ print $10 }'
Zabbix_agentd.conf
UserParameter=dev.sda, /usr/bin/sda.sh
Works on client
zabbix_agentd -t dev.sda
Returns blank on server
zabbix_get -s [IP ADDRESS] -p 10050 -k dev.sda
Any pointers appreciated.
I have a few userparameters that return values fine via zabbix_get and are being monitored without issues.
However when trying to return a value to do with smartctl I get blank when returning zabbix_get on my server. The zabbix_agentd -t on the client works perfectly.
Is there any reason why a userparameter would work on the client but not my server when I have other userparameters that work fine.
Script
smartctl -a /dev/sda | egrep -i "Reallocated_Sector_Ct" | awk '{ print $10 }'
Zabbix_agentd.conf
UserParameter=dev.sda, /usr/bin/sda.sh
Works on client
zabbix_agentd -t dev.sda
Returns blank on server
zabbix_get -s [IP ADDRESS] -p 10050 -k dev.sda
Any pointers appreciated.
Comment