Hi!
I am trying to set up the SMART monitoring using https://share.zabbix.com/storage-dev...rtmontools-lld, but discovery rule is not functioning, saying that JSON object is expected. Locally, testing it with su -c "/etc/zabbix/scripts/smartctl-disks-discovery.pl" -s /bin/sh zabbix, discovery script returns:
{
"data":[
{
"{#DISKMODEL}":"",
"{#DISKSN}":"WD-WMAYUE605097",
"{#DISKNAME}":"/dev/sda",
"{#DISKCMD}":"/dev/sda -d scsi",
"{#SMART_ENABLED}":"0",
"{#DISKTYPE}":"2"
}
]
}
which looks like the expected result.
How can I test discovery rule from Zabbix server side to see what it actually receives?
Janis
I am trying to set up the SMART monitoring using https://share.zabbix.com/storage-dev...rtmontools-lld, but discovery rule is not functioning, saying that JSON object is expected. Locally, testing it with su -c "/etc/zabbix/scripts/smartctl-disks-discovery.pl" -s /bin/sh zabbix, discovery script returns:
{
"data":[
{
"{#DISKMODEL}":"",
"{#DISKSN}":"WD-WMAYUE605097",
"{#DISKNAME}":"/dev/sda",
"{#DISKCMD}":"/dev/sda -d scsi",
"{#SMART_ENABLED}":"0",
"{#DISKTYPE}":"2"
}
]
}
which looks like the expected result.
How can I test discovery rule from Zabbix server side to see what it actually receives?
Janis
Comment