Hi everyone,
I am trying to run a custom active check, but for some reason it always returns an error. Here are the details :
In the zabbix agent log I get :
For key [smart[status]] received value [ZBX_NOTSUPPORTED]
In the zabbix_agentd.conf file it is defined as :
UserParameter=smart.status,/usr/bin/sudo /usr/sbin/smartctl -d ata -a /dev/sda | grep "SMART overall-health" | awk '{print $6}'
I tested the sudo part and it can run without any problem from the command line and as the zabbix user. So that should not be an issue.
The definition in the Zabbix server is :
smart[status]
Zabbix Agent (active)
Any help appreciated. If nothing works for now I will simply schedule a cron job as root, and just read the output in a text file to see if I can make it work...
Any help appreciated... I assume that the agent supports custom active checks, let me know if it is not the case...
Cyb.
Update :
I just changed the definition in the server for smart.status and now it works.
I am trying to run a custom active check, but for some reason it always returns an error. Here are the details :
In the zabbix agent log I get :
For key [smart[status]] received value [ZBX_NOTSUPPORTED]
In the zabbix_agentd.conf file it is defined as :
UserParameter=smart.status,/usr/bin/sudo /usr/sbin/smartctl -d ata -a /dev/sda | grep "SMART overall-health" | awk '{print $6}'
I tested the sudo part and it can run without any problem from the command line and as the zabbix user. So that should not be an issue.
The definition in the Zabbix server is :
smart[status]
Zabbix Agent (active)
Any help appreciated. If nothing works for now I will simply schedule a cron job as root, and just read the output in a text file to see if I can make it work...
Any help appreciated... I assume that the agent supports custom active checks, let me know if it is not the case...
Cyb.
Update :
I just changed the definition in the server for smart.status and now it works.