{ $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 } }