Commit 2ccaf687 authored by Michel Blockelet's avatar Michel Blockelet

[munin/innd_connects] Correction pour la nouvelle version de innd

Ignore-this: fe46bf1d276965420622810e3d2de6dc

darcs-hash:20110322000522-ddb99-c0da93b62c13fe83d04cf6ef97a02c8a71341430.gz
parent 5928ea9c
......@@ -49,13 +49,13 @@ TMPFILE=/tmp/munin_innd_connects_grep
## Sortie
# Bon, ça fera une valeur négative (ramenée à 0 par le --lower-limit)
# à chaque rotation des logs, mais bon ...
egrep "connect$" /var/log/news/news.notice > $TMPFILE
egrep "connect( - port 119)?$" /var/log/news/news.notice > $TMPFILE
echo -n "connects.value "
cat $TMPFILE | wc -l
echo -n "crans.value "
cat $TMPFILE | egrep '\.crans\.org \(138\.231.*\) connect$' | wc -l
cat $TMPFILE | egrep '\.crans\.org \(138\.231.*\) connect( - port 119)?$' | wc -l
echo -n "ext.value "
cat $TMPFILE | egrep -v '\.crans\.org \(138\.231.*\) connect$' | wc -l
cat $TMPFILE | egrep -v '\.crans\.org \(138\.231.*\) connect( - port 119)?$' | wc -l
rm -f $TMPFILE &> /dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment