Comments (26)
Please check issue #26.
from pfsense-zabbix-template.
I did check that issue before opening this one. Why did you close this?
from pfsense-zabbix-template.
Why did you close this?
Sorry, pushed close and comment instead of Comment.
Please double-check the configuration and post details (screenshots, log, cli results) if you're seeking help.
from pfsense-zabbix-template.
No worries. I have doubled check everything and it follows the instructions. I will get you the screenshots and captures
from pfsense-zabbix-template.
from pfsense-zabbix-template.
Have you tried to run the php script via pfsense cli?
Does it execute without errors?
from pfsense-zabbix-template.
I get permission denied. Any ideas? I am logged in as admin
from pfsense-zabbix-template.
I had to change the permissions of the file and now I get:
./pfsense_zbx.php: cannot open ?php: No such file or directory
./pfsense_zbx.php: /COPYRIGHT: Permission denied
./pfsense_zbx.php: pfsense_zbx.php: not found
./pfsense_zbx.php: Version: not found
./pfsense_zbx.php: 6: Syntax error: newline unexpected (expecting word)
from pfsense-zabbix-template.
You need to login as root via ssh or in console.
from pfsense-zabbix-template.
I am logged in as root, same issue.
./pfsense_zbx.php: cannot open ?php: No such file or directory
./pfsense_zbx.php: /COPYRIGHT: Permission denied
./pfsense_zbx.php: pfsense_zbx.php: not found
./pfsense_zbx.php: Version: not found
./pfsense_zbx.php: 6: Syntax error: newline unexpected (expecting word)
from pfsense-zabbix-template.
try:
/usr/local/bin/php ./pfsense_zbx.php
from pfsense-zabbix-template.
I would ask that once we figure this out if we can delete the posts with my info in it that would be great
from pfsense-zabbix-template.
It seems is quite ok.
Did you put the script in /root/scripts directory?
If the script is in another directory you have to adjust the settings in zabbix agent configuration.
Check the zabbix agent logs also.
from pfsense-zabbix-template.
it is there:
[2.4.5-RELEASE][[email protected]]/root/scripts: ls
pfsense_zbx.php
[2.4.5-RELEASE][[email protected]]/root/scripts: pwd
/root/scripts
how do I check the agent logs?
from pfsense-zabbix-template.
They are usually located in /var/log/zabbix_agentd.log
Maybe in pfsense they are located in a different path
from pfsense-zabbix-template.
Here are the logs.
25500:20200911:094154.244 Starting Zabbix Agent [firewall.kreitler.us]. Zabbix 5.0.1 (revision c2a0b03480).
25500:20200911:094154.244 **** Enabled features ****
25500:20200911:094154.244 IPv6 support: YES
25500:20200911:094154.244 TLS support: YES
25500:20200911:094154.244 **************************
25500:20200911:094154.244 using configuration file: /usr/local/etc/zabbix44/zabbix_agentd.conf
25500:20200911:094154.244 agent #0 started [main process]
25879:20200911:094154.244 agent #1 started [collector]
26105:20200911:094154.245 agent #2 started [listener #1]
26172:20200911:094154.245 agent #3 started [listener #2]
26242:20200911:094154.245 agent #4 started [listener #3]
25500:20200911:163813.339 Got signal [signal:15(SIGTERM),sender_pid:46040,sender_uid:0,reason:65537]. Exiting ...
25500:20200911:163813.341 Zabbix Agent stopped. Zabbix 5.0.1 (revision c2a0b03480).
47123:20200911:163818.414 Starting Zabbix Agent [firewall.kreitler.us]. Zabbix 5.0.1 (revision c2a0b03480).
47123:20200911:163818.415 **** Enabled features ****
47123:20200911:163818.415 IPv6 support: YES
47123:20200911:163818.415 TLS support: YES
47123:20200911:163818.415 **************************
47123:20200911:163818.415 using configuration file: /usr/local/etc/zabbix44/zabbix_agentd.conf
47123:20200911:163818.415 agent #0 started [main process]
47388:20200911:163818.415 agent #1 started [collector]
47698:20200911:163818.415 agent #2 started [listener #1]
47729:20200911:163818.416 agent #3 started [listener #2]
48038:20200911:163818.416 agent #4 started [listener #3]
47123:20200911:163959.844 Got signal [signal:15(SIGTERM),sender_pid:3838,sender_uid:0,reason:65537]. Exiting ...
48038:20200911:163959.844 failed to accept an incoming connection: select() failed: [4] Interrupted system call
47123:20200911:163959.845 Zabbix Agent stopped. Zabbix 5.0.1 (revision c2a0b03480).
from pfsense-zabbix-template.
Looks like when I update the config for the agent it stops and restarts so this log isn't very useful
from pfsense-zabbix-template.
I changed the template to FreeBSD and it went green and that log didn't show anything
from pfsense-zabbix-template.
One thing I did notice is that the FreeBSD template reference Template Module Zabbix agent. So I have added that template too and will let you know if anything changes
from pfsense-zabbix-template.
In my setups I've never linked other templates besides this.
Please note this is an active template and some requirements must be met in order to perform active checks.
I suggest you to try to reconfigure everything from scratch
from pfsense-zabbix-template.
so I tried that to no avail. I looked at the agent config and it doesnt have any of the user parameters. Shouldnt this file have them?
from pfsense-zabbix-template.
I uninstalled 5 and installed 4.4 and it shows in the config file now. I will let you know if it starts working.
from pfsense-zabbix-template.
Nope it shows red for ZBX. Any other ideas? Don’t know if this makes a difference but this is a VM on ESXi
from pfsense-zabbix-template.
You can close this. Disappointing I cant use it but oh well.
from pfsense-zabbix-template.
You can close this. Disappointing I cant use it but oh well.
I'm sorry but looking to your configuration page in pfsense seems you didn't filled the "Server Active" field, which has to match the zabbix server name defined in zabbix configuration.
See https://www.zabbix.com/documentation/current/manual/appendix/items/activepassive
from pfsense-zabbix-template.
That worked. I wasnt aware that I had to do that. I am not very well versed in Zabbix but I really appreciate your help.
from pfsense-zabbix-template.
Related Issues (20)
- Gateways Discovery: Gateway $2 Packet Loss (MISS)
- After updating to the latest version of the template, data collection from network interfaces stopped HOT 1
- PHP Parse error: syntax error, unexpected '©' (T_STRING) in /root/scripts/pfsense_zbx.php on line 1384 HOT 1
- pfsense 2.7 error after upgrade HOT 2
- Pfsense 23.05.01 No Data from Interfaces HOT 4
- pfsense Active: Mounted filesystem discovery --> items already exist
- 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
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.