Comments (11)
I use this setup also. When you use Proxy please note that you have to configure the host in zabbix with IP address relative to the proxy and not the zabbix server.
So, keeping proxy and agent on the same pfsense machine, you have to set host address of your pfsense monitored by proxy to 127.0.0.1.
Please also check connection between Zabbix Server and Proxy.
from pfsense-zabbix-template.
thanks for the reply, so olympuspetlight is my zabbix agent which is the pfSense i then point to my zabbix proxy which has an IP of 192.168.10.250 and that data is coming in to the zabbix server but the only data that is not coming is the services which is odd
from pfsense-zabbix-template.
so i ran the php manually and got this
-------------------
Services:
Array
(
[0] => Array
(
[name] => squid
[rcfile] => squid.sh
[executable] => squid
[description] => Squid Proxy Server Service
)
[1] => Array
(
[name] => clamd
[rcfile] => clamd.sh
[executable] => clamd
[description] => ClamAV Antivirus
)
[2] => Array
(
[name] => c-icap
[rcfile] => c-icap.sh
[executable] => c-icap
[description] => ICAP Inteface for Squid and ClamAV integration
)
[3] => Array
(
[name] => squidGuard
[description] => Proxy server filter Service
[executable] => squidGuard
)
[4] => Array
(
[name] => pfb_dnsbl
[rcfile] => pfb_dnsbl.sh
[executable] => lighttpd_pfb
[description] => pfBlockerNG DNSBL service
)
[5] => Array
(
[name] => pfb_filter
[rcfile] => pfb_filter.sh
[executable] => php_pfb
[description] => pfBlockerNG firewall filter service
)
[6] => Array
(
[name] => zabbix_proxy
[rcfile] => zabbix_proxy.sh
[executable] => zabbix_proxy
[description] => Zabbix Proxy Collection Daemon
)
[7] => Array
(
[name] => zabbix_agentd
[rcfile] => zabbix_agentd.sh
[executable] => zabbix_agentd
[description] => Zabbix Agent Host Monitor Daemon
)
[8] => Array
(
[name] => unbound
[description] => DNS Resolver
)
[9] => Array
(
[name] => ntpd
[description] => NTP clock sync
)
[10] => Array
(
[name] => syslogd
[description] => System Logger Daemon
)
[11] => Array
(
[name] => dpinger
[description] => Gateway Monitoring Daemon
)
[12] => Array
(
[name] => sshd
[description] => Secure Shell Daemon
)
[13] => Array
(
[name] => openvpn
[mode] => server
[id] => 0
[vpnid] => 1
[description] => OpenVPN server: Remote Access
)
)
-------------------
Check the logs on pfSense didnt find anything odd
Thank you
from pfsense-zabbix-template.
I can't reproduce the issue.
from pfsense-zabbix-template.
thanks for the reply, just want to make im doing it correctly,
on pfSense agent i point to my zabbix proxy which is the 192.168.1.10
then on my zabbix proxy which is the 192.168.1.10 points to the zabbix server which is monitor.mydomain.com
whats odd is that everything goes though besides the services
from pfsense-zabbix-template.
increase debug level on proxy and agent servers, look into logs
from pfsense-zabbix-template.
so i put the debug on the proxy level 5 and found this which seems that the proxy is sending correctly which i think
4655:20201022:230143.242 In substitute_key_macros_impl() data:'pfsense.value[service_value,pfb_dnsbl,status]'
4655:20201022:230143.242 End of substitute_key_macros_impl():SUCCEED data:'pfsense.value[service_value,pfb_dnsbl,status]'
4655:20201022:230143.242 In substitute_simple_macros_impl() data:'10050'
4655:20201022:230143.242 In get_value() key:'pfsense.value[service_value,pfb_dnsbl,status]'
4655:20201022:230143.242 In get_value_agent() host:'olympusanquimico' addr:'127.0.0.1' key:'pfsense.value[service_value,pfb_dnsbl,status]' conn:'unencrypted'
4653:20201022:230143.242 zbx_setproctitle() title:'poller #2 [got 0 values in 0.001106 sec, getting values]'
also found this
4636:20201022:230141.481 send_list_of_active_checks_json() sending [{"response":"success","data":[{"key":"kernel.maxfiles","delay":3600,"lastlogsize":0,"mtime":0},{"key":"kernel.maxproc","delay":3600,"lastlogsize":0,"mtime":0},{"key":"pfsense.discovery[gw]","delay":600,"lastlogsize":0,"mtime":0},{"key":"pfsense.discovery[interfaces]","delay":3600,"lastlogsize":0,"mtime":0},{"key":"pfsense.discovery[openvpn_client]","delay":30,"lastlogsize":0,"mtime":0},{"key":"pfsense.discovery[openvpn_server]","delay":30,"lastlogsize":0,"mtime":0},{"key":"pfsense.discovery[openvpn_server_user]","delay":30,"lastlogsize":0,"mtime":0},{"key":"pfsense.discovery[services]","delay":30,"lastlogsize":0,"mtime":0},{"key":"pfsense.mbuf.cache","delay":60,"lastlogsize":0,"mtime":0},{"key":"pfsense.mbuf.current","delay":60,"lastlogsize":0,"mtime":0},{"key":"pfsense.mbuf.max","delay":600,"lastlogsize":0,"mtime":0},{"key":
only odd thing i found was this
4655:20201022:230143.244 Sending [pfsense.value[service_value,pfb_dnsbl,status]]
4655:20201022:230143.245 get value from agent result: 'sh: 1: /usr/local/bin/php: not found'
from pfsense-zabbix-template.
Your agent can't find PHP. Try to find them ( find / -iname php)
from pfsense-zabbix-template.
From Diagnostic -> Command Prompt
which php
And it would report
/usr/local/bin/php
Do you have Zabbix Proxy on pfSense or on another machine?
from pfsense-zabbix-template.
thanks for the reply on the zabbix proxy server this is what i get
root@cloud:~# find / -iname php
/usr/local/bin/php
/usr/bin/php
/usr/include/php
/usr/share/php
/usr/lib/php
/var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/PHP
/var/www/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Crypt_Blowfish/Horde/Crypt/Blowfish/Php
/var/lib/dpkg/alternatives/php
/var/lib/php
/etc/cron.d/php
/etc/php
/etc/apparmor.d/abstractions/php
/etc/alternatives/php
/run/php
as for pfSense i ran the command
Shell Output - which php
/usr/local/bin/php
correct i have the zabbix proxy on another VM which pfSense sends the info to that VM which then that VM sends the info to the zabbix server
from pfsense-zabbix-template.
i had to put the IP instead of 127.0.0.1
from pfsense-zabbix-template.
Related Issues (20)
- PFSense Active - Wrong PFsense State table on pfsense agent, Solved! HOT 1
- pfsense ver 23.05.1 doesn't work with speedtest cli HOT 1
- speedtest with option --source doesn`t work HOT 1
- High packet Loss on WAN_DHCP6? HOT 1
- Duplicate Triggers in Gateway Discovery Template HOT 6
- OpenSSLAsymmetricKey error HOT 2
- Monitoring Table Usage Count HOT 5
- pfsense_zbx.php script version not being updated HOT 9
- Typo in Readme HOT 4
- PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /root/scripts/pfsense_zbx.php:817 HOT 1
- PHP Fatal error: Uncaught TypeError: openssl_pkey_get_details(): Argument #1 ($key) must be of type OpenSSLAsymmetricKey, bool given in /root/scripts/pfsense_zbx.php:1237 HOT 14
- Disconnected status OpenVPN client HOT 1
- Crash report begins. Anonymous machine information: HOT 1
- Packages Update Available HOT 2
- Zabbix cannot obtain memory data HOT 2
- Unclosed error HOT 1
- Installation advice HOT 1
- Multiple Gateways HOT 2
- Error when trying to apply template to Pfsense in Zabbix HOT 1
- Latest data not populating HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pfsense-zabbix-template.