OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: geco on March 02, 2019, 04:03:37 pm

Title: zabbix agent - cannot add custom user parameters
Post by: geco 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.
Title: Re: zabbix agent - cannot add custom user parameters
Post by: franco on March 05, 2019, 07:28:13 pm
raise a ticket, reach a developer: https://github.com/opnsense/plugins/issues


Thank you,
Franco
Title: Re: zabbix agent - cannot add custom user parameters
Post by: lfirewall1243 on March 27, 2019, 11:40:31 am
Hi,

i have the same problem, but for intel CPU ('coretemp')

is there a fix at the moment?
Title: Re: zabbix agent - cannot add custom user parameters
Post by: franco on March 28, 2019, 10:40:12 pm
See above. If you want plugin features ask for plugins features in the plugins issue tracker please.