rbicelli / pfsense-zabbix-template

Zabbix Template for pfSense
Apache License 2.0
242 stars 107 forks source link

Escape @ at openvpn_server_uservalue #58

Closed dragoangel closed 3 years ago

dragoangel commented 3 years ago

In zabbix agent logs: 18062:20201221:132549.756 active check "pfsense.value[openvpn_server_uservalue,3+user@domain,virtual_addr]" is not supported: Special characters "\, ', ", `, *, ?, [, ], {, }, ~, $, !, &, ;, (, ), <, >, |, #, @, 0x0a" are not allowed in the parameters.

rbicelli commented 3 years ago

Need special char replacement back and forth.

rbicelli commented 3 years ago

Closed with latest commit

dragoangel commented 3 years ago

Thank you, fix is working 😃

dragoangel commented 3 years ago

Also can I ask you about Gateway INTERFACE Status? I always have it as Down (5), think after some update. In pfSense I have all GWs as Up and running, how to debug why I have incorrect value?

rbicelli commented 3 years ago

What is "Gateway Status Raw" item saying?

dragoangel commented 3 years ago

On one instance: WAN01GW.online,WAN01HE_TUNNELV6.online,WAN02GW.online,WAN02HE_TUNNELV6.online

And on another one: WANGW.none,WANHE_TUNNELV6.none

Both instances has Down (5) for each GW

rbicelli commented 3 years ago

Are you using a development/upcoming version of pfsense? I'm asking this because when I work on template I use the pfsense sources on github as reference, and I noticed when developing a dhcp failover check source on my pfsense box are different than sources on repo. In this case the fix is simple, will update asap.

Il Lun 18 Gen 2021, 20:33 Dmitriy Alekseev notifications@github.com ha scritto:

WAN01GW.online,WAN01HE_TUNNELV6.online,WAN02GW.online,WAN02HE_TUNNELV6.online

When it was working it was: WAN01GW.none,WAN01HE_TUNNELV6.none,WAN02GW.none,WAN02HE_TUNNELV6.none

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/rbicelli/pfsense-zabbix-template/issues/58#issuecomment-762436121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5YCLXZHXTEHEJW22WB5KLS2SEJXANCNFSM4VECZYQQ .

dragoangel commented 3 years ago

Sorry, edited my reply, on one gw - yes it is 2.5 devel and on second is 2.4.5_p1

dragoangel commented 2 years ago

Don't know what was changed (maybe pfsense update or whatever) - now users that have @ at username appear in zabbix with stripped @domain.com part and without any metrics.

dragoangel commented 2 years ago

Sorry, my fault, all works