Hello,
I am looking into monitoring XenServer disk health. I am using concepts from zbx-smartctl Zabbix Share.
I modified the script (attached below in txt output) and have the following JSON output on the "uHDD.discovery" discovery rule:
My userparameter_smart.conf file has the following:
and following Item prototype from the discovery list:
Name: {#DISKNAME}: Test result
Type: Zabbix agent
Key: uHDD.health["{#DISKNAME}","{#ARGS}"]
Type of information: Character
Show value: As is
I want to achieve the following:
When I try to test this with zabbix_get I get the following error response which results in no output.
What is missing in the syntax to get the output to display correctly?
I am looking into monitoring XenServer disk health. I am using concepts from zbx-smartctl Zabbix Share.
I modified the script (attached below in txt output) and have the following JSON output on the "uHDD.discovery" discovery rule:
Code:
{
"data":[
{
"{#DISKNAME}":"bus/0",
"{#ARGS}":"-d megaraid,0",
"{#SMART_ENABLED}":"1"
}
]
}
Code:
UserParameter=uHDD.discovery,sudo /etc/zabbix/smartctl-disks-discovery.pl UserParameter=uHDD.health[*],sudo smartctl -H /dev/$1 $2
Name: {#DISKNAME}: Test result
Type: Zabbix agent
Key: uHDD.health["{#DISKNAME}","{#ARGS}"]
Type of information: Character
Show value: As is
I want to achieve the following:
Code:
sudo smartctl -H /dev/bus/0 -d megaraid,0
Code:
zabbix_get -s 127.0.0.1 -k uHDD.health["bus/0","-d megaraid,6"] smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.4.0+10] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org /dev/bus/0 -d megaraid: Unable to detect device type Please specify device type with the -d option. Use smartctl -h to get a usage summary
Comment