Rozwiązanie:
visudo
zabbix ALL=(root) NOPASSWD: /usr/bin/nmap
https://ixnfo.com/en/solution-of-error-with-detect-operating-system-in-zabbix.html