From 50fd54ae8bed86f8d3787f2e2e2f0a2f26ba29e1 Mon Sep 17 00:00:00 2001 From: Babak Farrokhi Date: Thu, 13 Aug 2015 09:24:17 +0430 Subject: [PATCH] - add missing changes from previous commit - update README --- README.md | 3 ++- intr_ | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d509f0a..ad9f302 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,8 @@ A set of FreeBSD specific plugins for Munin ## Plugins -- **intr_** graphs IRQ and CPU timers, taken from `vmstat -i` output +- **intr_** graphs CPU timers, taken from `vmstat -i` output +- **netirq_** graphs per interface and per queue (in case of multi-queue) interrupt rates, taken from `vmstat -i` output - **netisr_** graphs per-thread/per-protocol [`netisr(9)`](https://www.freebsd.org/cgi/man.cgi?format=html&query=netisr%289%29) statistics, taken from `netstat -Q` - **netmem_** graphs [`mbuf(9)`](https://www.freebsd.org/cgi/man.cgi?format=html&query=mbuf%289%29) statistics, taken from `netstat -m` - **pf_** graphs [`pf(4)`](https://www.freebsd.org/cgi/man.cgi?query=pf&sektion=4&apropos=0) firewall statistics, taken from `pfctl -vsi` diff --git a/intr_ b/intr_ index d78469f..cc55be8 100755 --- a/intr_ +++ b/intr_ @@ -52,15 +52,11 @@ if [ $# -lt 1 ]; then cpu) cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^cpu/{split($1,name,":"); print name[1]".value "$2}' ;; - irq) - cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^irq/{split($1,name,":"); print name[1]".value "$2}' - ;; esac elif [ "$1" == "suggest" ]; then echo "cpu" - echo "irq" elif [ "$1" == "autoconf" ]; then ${VMSTAT} -i >/dev/null 2>&1 && echo yes || echo no @@ -77,14 +73,6 @@ elif [ "$1" == "config" ]; then cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^cpu/{split($1,name,":"); print name[1]".label "$1"\n"name[1]".type DERIVE\n"name[1]".min 0"}' ;; - irq) - echo "graph_title IRQ Statistics" - echo "graph_args --lower-limit 0 --base 1000" - echo "graph_vlabel interrupts / second" - echo "graph_category system" - - cat ${STATFILE} | ${AWK} '{ FS = "[ ]{2,}" } /^irq/{split($1,name,":"); print name[1]".label "$1"\n"name[1]".type DERIVE\n"name[1]".min 0"}' - ;; esac fi