Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
zabbix agent - cannot add custom user parameters
« previous
next »
Print
Pages: [
1
]
Author
Topic: zabbix agent - cannot add custom user parameters (Read 2985 times)
geco
Newbie
Posts: 1
Karma: 0
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.
Logged
franco
Administrator
Hero Member
Posts: 17570
Karma: 1596
Re: zabbix agent - cannot add custom user parameters
«
Reply #1 on:
March 05, 2019, 07:28:13 pm »
raise a ticket, reach a developer:
https://github.com/opnsense/plugins/issues
Thank you,
Franco
Logged
lfirewall1243
Hero Member
Posts: 1383
Karma: 45
Re: zabbix agent - cannot add custom user parameters
«
Reply #2 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?
Logged
(Unoffial Community) OPNsense Telegram Group:
https://t.me/joinchat/0o9JuLUXRFpiNmJk
PM for paid support
franco
Administrator
Hero Member
Posts: 17570
Karma: 1596
Re: zabbix agent - cannot add custom user parameters
«
Reply #3 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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
zabbix agent - cannot add custom user parameters