1
19.1 Legacy Series / zabbix agent - cannot add custom user parameters
« on: March 02, 2019, 04:03:37 pm »
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.
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.