Hi,
I use os-zabbix-agent 1.4 on OPNsense 19.1.2-amd64 and would like to add custom user parameters (Services => Zabbix Agent => Advanced => User Parameters). My problem is that my inputs are checked by the ui before submit and are rejected. Even though my inputs are totally valid for the zabbix agent the ui's form validation won't accept the input.
This is what I want to add:
Key = opnsense.cpuTemperature
===> Error Message: Should be a string between 1 and 255 characters.
Command = sysctl -n dev.cpu.0.temperature | grep -o '[0-9]\?[0-9][0-9]\.[0-9]'
===> Error Message: Should be a string between 1 and 4096 characters.
My suggestion would be to turn off the form validation for special characters like dots, pipes and so on because we need to be able to input any os commands there. The special characters seem to be the problem because when I don't have a dot in the key name it is ok for the ui.
raise a ticket, reach a developer: https://github.com/opnsense/plugins/issues
Thank you,
Franco
Hi,
i have the same problem, but for intel CPU ('coretemp')
is there a fix at the moment?
See above. If you want plugin features ask for plugins features in the plugins issue tracker please.