14 lines
336 B
Plaintext
14 lines
336 B
Plaintext
{
|
|
$OUT = '';
|
|
qx(zabbix_agentd -t vfs.dev.discovery -c /dev/null | grep -q ZBX_NOTSUPPORTED);
|
|
if ($? != 0){
|
|
$OUT .= '# vfs.dev.discovery is natively supported, not UserParameter needed';
|
|
} else{
|
|
$OUT .=<<'_EOF';
|
|
# Discover block devices
|
|
UserParameter=vfs.dev.discovery,/var/lib/zabbix/bin/disco_block_devices
|
|
_EOF
|
|
}
|
|
}
|
|
|