- add missing changes from previous commit
- update README
This commit is contained in:
		| @ -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` | ||||
|  | ||||
							
								
								
									
										12
									
								
								intr_
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user