public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Robin Roevens <robin.roevens@disroot.org>
To: development@lists.ipfire.org
Subject: [PATCH 2/3] Bugfix: compatibility with grep 3.8+
Date: Sun, 02 Apr 2023 13:07:10 +0200	[thread overview]
Message-ID: <20230402110711.19593-3-robin.roevens@disroot.org> (raw)
In-Reply-To: <20230402110711.19593-1-robin.roevens@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 1938 bytes --]

Fix "grep: warning: stray \ before /" message on
Zabbix Agent ipfire.net.fw.hits item introduced by
grep 3.8 in
https://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=40b5df3942149738529c22c9cfcd067cd672b605

Signed-off-by: Robin Roevens <robin.roevens(a)disroot.org>
---
 config/zabbix_agentd/userparameter_ipfire.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/zabbix_agentd/userparameter_ipfire.conf b/config/zabbix_agentd/userparameter_ipfire.conf
index 10c09c25d..c5a636edf 100644
--- a/config/zabbix_agentd/userparameter_ipfire.conf
+++ b/config/zabbix_agentd/userparameter_ipfire.conf
@@ -5,7 +5,7 @@ UserParameter=ipfire.net.gateway.pingtime,sudo /usr/sbin/fping -c 3 gateway 2>&1
 # Internet Gateway availability, can be used to check Internet connection
 UserParameter=ipfire.net.gateway.ping,sudo /usr/sbin/fping -q -r 3 gateway; [ ! $? ]; echo $?
 # Firewall Filter Forward chain drops in bytes/chain (JSON), can be used for discovery of firewall chains and monitoring of firewall hits on each chain
-UserParameter=ipfire.net.fw.hits.raw,sudo /usr/local/bin/getipstat -xf | grep "\/\* DROP_.* \*\/$" | awk 'BEGIN { ORS = ""; print "["} { printf "%s{\"chain\": \"%s\", \"bytes\": \"%s\"}", separator, substr($11, 6), $2; separator = ", "; } END { print"]" }'
+UserParameter=ipfire.net.fw.hits.raw,sudo /usr/local/bin/getipstat -xf | grep "/\* DROP_.* \*/$" | awk 'BEGIN { ORS = ""; print "["} { printf "%s{\"chain\": \"%s\", \"bytes\": \"%s\"}", separator, substr($11, 6), $2; separator = ", "; } END { print"]" }'
 # Number of currently Active DHCP leases
 UserParameter=ipfire.dhcpd.clients,grep -s -E 'lease|bind' /var/state/dhcp/dhcpd.leases | sed ':a;/{$/{N;s/\n//;ba}' | grep "state active" | wc -l
 # Number of Captive Portal clients
-- 
2.40.0


-- 
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.


  parent reply	other threads:[~2023-04-02 11:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-02 11:07 [PATCH] zabbix_agentd: Update to 6.0.15 + WebGUI Log viewer Robin Roevens
2023-04-02 11:07 ` [PATCH 1/3] zabbix_agentd: Update to 6.0.15 (LTS) Robin Roevens
2023-04-03 16:32   ` Adolf Belka
2023-04-02 11:07 ` Robin Roevens [this message]
2023-04-03 16:35   ` [PATCH 2/3] Bugfix: compatibility with grep 3.8+ Adolf Belka
2023-04-02 11:07 ` [PATCH 3/3] Add Zabbix Agent Logs viewer in WebGUI Robin Roevens
2023-04-11 12:48   ` Michael Tremer
2023-04-11 20:33     ` Robin Roevens
2023-04-18 18:45     ` [PATCH v2 0/3] zabbix_agentd: Update to 6.0.16 + add log to logviewer Robin Roevens
2023-04-18 18:45       ` [PATCH v2 1/3] zabbix_agentd: Update to 6.0.16 (LTS) Robin Roevens
2023-04-18 18:45       ` [PATCH v2 2/3] Bugfix: compatibility with grep 3.8+ Robin Roevens
2023-04-18 18:45       ` [PATCH v2 3/3] Add Zabbix Agent to logviewer Robin Roevens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230402110711.19593-3-robin.roevens@disroot.org \
    --to=robin.roevens@disroot.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox