Comments (5)
Hi!
I think is easy to implement with pfctl command:
pfctl -sm
states hard limit 809000
src-nodes hard limit 809000
frags hard limit 5000
table-entries hard limit 1200000
Check https://www.openbsdhandbook.com/pf/cheat_sheet/
from pfsense-zabbix-template.
For example, for table usage, the syntax could be:
pfctl -s info | grep "current entries" | tr -s ' ' | cut -d " " -f4
from pfsense-zabbix-template.
For example, for table usage, the syntax could be:
pfctl -s info | grep "current entries" | tr -s ' ' | cut -d " " -f4
Correct me if I'm wrong but this is the state table.
I went through the link you sent (btw, now I know what "pf" means in the name pfSense)
Is this command make a logical result for you?
pfctl -vvsTables | grep 'Addresses: ' | awk '{sum += $2} END {print sum}'
from pfsense-zabbix-template.
Looks like that
pfctl -s info | grep "current entries" | tr -s ' ' | cut -d " " -f4
Outputs a value closer to this:
pfctl -vvsTables | grep 'Addresses: ' | awk '{sum += $2} END {print sum}'
outputs a value way higher than what is displayed in GUI (in my case 17281).
from pfsense-zabbix-template.
Sorry, I read with more attention what you wrote.
You want to monitor not only the state table but the whole table usage, so your one-liner return more meaningful value.
from pfsense-zabbix-template.
Related Issues (20)
- 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
- pfsense_zbx.php script version not being updated HOT 10
- 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
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.