hey all, how can i monitor my Ubutnu iptables rule count and if reaches some limit it will restart the service. Here is what i did:
zabbix.agent:
UserParameter=iptables.rule.count[*],sudo iptables --list --line-numbers | grep DROP | wc -l
item;
Key: iptables.rule.count[*]
Type: Numeric (unassigned)
Trigger:
{vgw1-stag:iptables.rule.count[*].count(30)}>1
No error. Enabled but doesn't do anything.
Thank you
zabbix.agent:
UserParameter=iptables.rule.count[*],sudo iptables --list --line-numbers | grep DROP | wc -l
item;
Key: iptables.rule.count[*]
Type: Numeric (unassigned)
Trigger:
{vgw1-stag:iptables.rule.count[*].count(30)}>1
No error. Enabled but doesn't do anything.
Thank you
Comment