rbicelli / pfsense-zabbix-template

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

Does it work on zabbix 5.4.4? #86

Closed thierrybla closed 3 years ago

thierrybla commented 3 years ago

I have tried every agent, many different settings but the Zabbix agent just doesn't seem to become green with this template. image image image image image

Any ideas? Thanks in advance.

GuillaumeHullin commented 3 years ago

Do you see errors in Zabbix "Latest Data" if you check "Show details"?

fbirlik commented 3 years ago

I believe I'm also affected with my both pfsense instances. Still, latest data and all graphs are populated, no visible errors reported. Honestly I don't know what side effect this gray box causes.

Screen Shot 2021-09-15 at 10 33 33 AM

thierrybla commented 3 years ago

For me no data is coming in at all @fbirlik how did you manage to get any data? What agent do you use? Is your zabbix also 5.4.4?

GuillaumeHullin commented 3 years ago

@fbirlik Concerning the green label do not worry, this is totally normal. This is because none of the items are Zabbix passive agent . I think you only get the green ZBX when there are passive (when the server/proxy is the one requesting the data). Here is an article that shows the difference. https://blog.zabbix.com/zabbix-agent-active-vs-passive/9207/ IMO, I prefer to have as much Active Agent as possible.

@thierrybla go to your pfsense host configuration (in zabbix interface). Go to the Items and see if there are errors marked on the right of the items.

GuillaumeHullin commented 3 years ago

Note: zabbix_server (Zabbix) 5.0.15

thierrybla commented 3 years ago

image This is what I see.

GuillaumeHullin commented 3 years ago

Ok and when you go in the main menu "Latest Data" and that you select your pfSense, what do you get?

thierrybla commented 3 years ago

image This, thanks for you help so far by the way :).

GuillaumeHullin commented 3 years ago

Ok so I see that there is 1 data... it's a start. Go to your pfSense, go to the Zabbix agent settings and then you press save. This will restart Zabbix Agent and also refresh the template data in the zabbix agent (meaning that your agent ask the server what data he should send). You're welcome.

thierrybla commented 3 years ago

I am currently using Zabbix 5.4.4 and the 4.0 agent, should I change back to the 5.4 agent?

GuillaumeHullin commented 3 years ago

You mean you have 2 agents on your pfSense? If yes, remove the 4.0. You should only have zabbix-agent54 (from the Package Manager list)

thierrybla commented 3 years ago

I have changed agent, saved one more time but still not other data is coming in.

GuillaumeHullin commented 3 years ago

I just realized, in the config in pfSense Zabbix Agent... whats the value of Server Active?

thierrybla commented 3 years ago

As seen above I send a screenshot of my whole config.

GuillaumeHullin commented 3 years ago

ok then put your server IP address in Server Active.

GuillaumeHullin commented 3 years ago

https://www.zabbix.com/documentation/current/manual/appendix/config/zabbix_agentd check ServerActive to readmore :)

thierrybla commented 3 years ago

Omg yes that fixed it, thanks @GuillaumeHullin I thought that the first server IP should have been enough..