Changeset 682
- Timestamp:
- 01/28/05 15:47:31 (7 years ago)
- Files:
-
- trunk/node/node.d.freebsd/cpu.in (modified) (6 diffs, 1 prop)
- trunk/node/node.d.freebsd/df.in (modified) (3 diffs, 1 prop)
- trunk/node/node.d.freebsd/df_inode.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/if_.in (modified) (3 diffs, 1 prop)
- trunk/node/node.d.freebsd/if_errcoll_.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/load.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/memory.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/netstat.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/open_files.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/processes.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/swap.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d.freebsd/vmstat.in (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/node/node.d.freebsd/cpu.in
- Property cvs2svn:cvs-rev changed from 1.9 to 1.10
r660 r682 11 11 # 12 12 # $Log$ 13 # Revision 1.10 2005/01/28 14:47:31 lupe 14 # Add graph_info and some filed.info 15 # 13 16 # Revision 1.9 2005/01/25 08:48:28 lupe 14 17 # Correct multi-CPU bugs … … 96 99 echo 'graph_vlabel %' 97 100 echo 'graph_scale no' 101 echo 'graph_info This graph shows how CPU time is spent.' 98 102 echo 'graph_category system' 99 103 echo 'graph_period second' … … 105 109 # echo "system.warning $SYSWARNING" 106 110 # echo "system.critical $SYSCRITICAL" 111 echo 'system.info CPU time spent by the kernel in system activities' 107 112 echo "system.cdef system,$CDEF" 108 113 echo 'interrupt.label interrupt' … … 118 123 # echo "user.warning $USRWARNING" 119 124 echo 'user.type DERIVE' 125 echo 'user.info CPU time spent by normal programs and daemons' 120 126 echo 'user.min 0' 121 127 echo "user.cdef user,$CDEF" … … 124 130 echo 'nice.max 5000' 125 131 echo 'nice.type DERIVE' 132 echo 'nice.info CPU time spent by nice(1)d programs' 126 133 echo 'nice.min 0' 127 134 echo "nice.cdef nice,$CDEF" … … 130 137 echo 'idle.max 5000' 131 138 echo 'idle.type DERIVE' 139 echo 'idle.info Idle CPU time' 132 140 echo 'idle.min 0' 133 141 echo "idle.cdef idle,$CDEF" trunk/node/node.d.freebsd/df.in
- Property cvs2svn:cvs-rev changed from 1.5 to 1.6
r680 r682 9 9 # 10 10 # $Log$ 11 # Revision 1.6 2005/01/28 14:47:31 lupe 12 # Add graph_info and some filed.info 13 # 11 14 # Revision 1.5 2005/01/28 13:25:34 lupe 12 15 # Add support for FreeBSD 4.x ramdisks … … 54 57 echo 'graph_args --upper-limit 100 -l 0' 55 58 echo 'graph_vlabel %' 59 echo 'graph_category disk' 60 echo 'graph_info This graph shows disk usage on the machine.' 56 61 mfs=0 57 62 /bin/df -P -t noprocfs,devfs,fdescfs,linprocfs,nfs | tail +2 | grep -v "//" | while read i; do … … 61 66 esac 62 67 echo -n "$name.label " 63 echo $i | awk '{ print $6 }' 68 echo $i | awk "{ 69 dir=\$6 70 if (length(dir) <= $MAXLABEL) 71 print dir 72 else 73 printf (\"...%s\n\", substr (dir, length(dir)-$MAXLABEL+4, $MAXLABEL-3)) 74 print \"$name.info \" \$6 \" -> \" \$1; 75 }" 64 76 echo "$name.warning 92" 65 77 echo "$name.critical 98" trunk/node/node.d.freebsd/df_inode.in
- Property cvs2svn:cvs-rev changed from 1.5 to 1.6
r680 r682 9 9 # 10 10 # $Log$ 11 # Revision 1.6 2005/01/28 14:47:31 lupe 12 # Add graph_info and some filed.info 13 # 11 14 # Revision 1.5 2005/01/28 13:25:34 lupe 12 15 # Add support for FreeBSD 4.x ramdisks … … 68 71 echo 'graph_args --upper-limit 100 -l 0' 69 72 echo 'graph_vlabel %' 70 mfs=0 71 /bin/df -P -i -t noprocfs,devfs,fdescfs,linprocfs,nfs | tail +2 | grep -v "//" | while read i; do 72 case $i in 73 mfs:*) name=mfs$mfs; mfs=`expr $mfs + 1`;; 74 *) name=`echo $i | awk '{ gsub("[^a-zA-Z0-9_]", "_", $1); print $1 }'` ;; 75 esac 76 echo -n "$name.label " 77 echo $i | awk '{ print $9 }' 78 echo "$name.warning 92" 79 echo "$name.critical 98" 80 done 73 echo 'graph_category disk' 74 echo 'graph_info This graph shows the inode usage for the partitions of types that use inodes.' 75 /bin/df -P -i -t noprocfs,devfs,fdescfs,linprocfs,nfs | tail +2 | grep -v "//" | awk " 76 BEGIN { 77 mfs = 0 78 } 79 { 80 name = \$1 81 dir = \$9 82 if (\$1 ~ /^mfs:/) { 83 name = \"mfs\" mfs 84 mfs = mfs + 1 85 } else { 86 gsub(/[^a-zA-Z0-9_]/, \"_\", name) 87 } 88 if (length(dir) <= $MAXLABEL) 89 print name \".label \" dir 90 else 91 printf (\"%s.label ...%s\n\", name, substr (dir, length(dir)-$MAXLABEL+4, $MAXLABEL-3)) 92 print name \".info \" dir \" -> \" name 93 print name \".warning 92\" 94 print name \".critical 98\" 95 }" 81 96 exit 0 82 97 fi trunk/node/node.d.freebsd/if_.in
- Property cvs2svn:cvs-rev changed from 1.4 to 1.5
r553 r682 11 11 # 12 12 # $Log$ 13 # Revision 1.5 2005/01/28 14:47:31 lupe 14 # Add graph_info and some filed.info 15 # 13 16 # Revision 1.4 2004/12/10 10:47:49 jimmyo 14 17 # Change name from ${scale} to ${graph_period}, to be more consistent. … … 69 72 echo 'graph_vlabel bits per ${graph_period} in (-) / out (+)' 70 73 echo 'graph_category network' 74 echo "graph_info This graph shows the traffic of the $INTERFACE network interface. Please note that the traffic is showed in bits per second, not bytes." 71 75 echo 'rbytes.label received' 72 76 echo 'rbytes.type COUNTER' … … 77 81 echo 'obytes.negative rbytes' 78 82 echo 'obytes.cdef obytes,8,*' 83 echo 'obytes.info Traffic sent (+) and received (-) on the $INTERFACE network interface." 79 84 exit 0 80 85 fi; trunk/node/node.d.freebsd/if_errcoll_.in
- Property cvs2svn:cvs-rev changed from 1.4 to 1.5
r553 r682 11 11 # 12 12 # $Log$ 13 # Revision 1.5 2005/01/28 14:47:31 lupe 14 # Add graph_info and some filed.info 15 # 13 16 # Revision 1.4 2004/12/10 10:47:49 jimmyo 14 17 # Change name from ${scale} to ${graph_period}, to be more consistent. … … 65 68 echo 'graph_vlabel events / ${graph_period}' 66 69 echo 'graph_category network' 70 echo "graph_info This graph shows the amount of errors and collisions on the $INTERFACE network interface." 67 71 echo 'ierrors.label Input Errors' 68 72 echo 'ierrors.type COUNTER' trunk/node/node.d.freebsd/load.in
- Property cvs2svn:cvs-rev changed from 1.3 to 1.4
r201 r682 9 9 # 10 10 # $Log$ 11 # Revision 1.4 2005/01/28 14:47:31 lupe 12 # Add graph_info and some filed.info 13 # 11 14 # Revision 1.3 2004/05/20 19:02:36 jimmyo 12 15 # Set categories on a bunch of plugins … … 79 82 echo 'load.warning 10' 80 83 echo 'load.critical 120' 84 # This one is purely to add an explanation to the web page. The first 85 # one is for the graph itself, while the second one is for the field 86 # "load". 87 echo 'graph_info The load average of the machine describes how many processes are in the run-queue (scheduled to run "immediately").' 88 echo 'load.info Average load for the five minutes.' 81 89 82 90 # Last, if run with the "config"-parameter, quit here (don't trunk/node/node.d.freebsd/memory.in
- Property cvs2svn:cvs-rev changed from 1.2 to 1.3
r201 r682 9 9 # 10 10 # $Log$ 11 # Revision 1.3 2005/01/28 14:47:31 lupe 12 # Add graph_info and some filed.info 13 # 11 14 # Revision 1.2 2004/05/20 19:02:36 jimmyo 12 15 # Set categories on a bunch of plugins … … 53 56 echo 'graph_title Memory usage' 54 57 echo 'graph_category system' 58 echo 'graph_info This graph shows what the machine uses its memory for.'; 55 59 echo 'graph_order active inactive wired buffers cached free' 56 60 echo 'active.label active' 61 echo 'active.info pages recently statistically used' 57 62 echo 'active.draw AREA' 58 63 echo 'inactive.label inactive' 64 echo 'inactive.info pages recently statistically unused' 59 65 echo 'inactive.draw STACK' 60 66 echo 'wired.label wired' 67 echo 'wired.info pages that are fixed into memory, usually for kernel purposes, but also sometimes for special use in processes' 61 68 echo 'wired.draw STACK' 62 69 echo 'buffers.label buffers' 70 echo 'buffers.info pages used for filesystem buffers' 63 71 echo 'buffers.draw STACK' 64 72 echo 'cached.label cache' 73 echo 'cached.info pages that have percolated from inactive to a status where they maintain their data, but can often be immediately reused' 65 74 echo 'cached.draw STACK' 66 75 echo 'free.label free' 76 echo 'free.info pages without data content' 67 77 echo 'free.draw STACK' 68 78 exit 0 trunk/node/node.d.freebsd/netstat.in
- Property cvs2svn:cvs-rev changed from 1.5 to 1.6
r553 r682 9 9 # 10 10 # $Log$ 11 # Revision 1.6 2005/01/28 14:47:31 lupe 12 # Add graph_info and some filed.info 13 # 11 14 # Revision 1.5 2004/12/10 10:47:49 jimmyo 12 15 # Change name from ${scale} to ${graph_period}, to be more consistent. … … 61 64 echo 'graph_vlabel active connections per ${graph_period}' 62 65 echo 'graph_category network' 66 echo 'graph_period second' 67 echo 'graph_info This graph shows the TCP activity of all the network interfaces combined.' 63 68 echo 'active.label active' 64 69 echo 'active.type DERIVE' 65 70 echo 'active.min 0' 66 echo 'active.max 50000''' 71 echo 'active.max 50000' 72 echo 'active.info The number of active TCP openings per second.' 73 echo 'passive.label passive' 74 echo 'passive.type DERIVE' 75 echo 'passive.min 0' 76 echo 'passive.max 50000' 77 echo 'passive.info The number of passive TCP openings per second.' 67 78 echo 'failed.label failed' 68 79 echo 'failed.type DERIVE' 69 80 echo 'failed.min 0' 70 echo 'failed.max 50000''' 81 echo 'failed.max 50000' 82 echo 'failed.info The number of failed TCP connection attempts per second.' 71 83 echo 'resets.label resets' 72 84 echo 'resets.type DERIVE' 73 85 echo 'resets.min 0' 74 echo 'resets.max 50000''' 86 echo 'resets.max 50000' 87 echo 'resets.info The number of TCP connection resets.' 75 88 echo 'established.label established' 76 89 echo 'established.type DERIVE' 77 90 echo 'established.min 0' 78 echo 'established.max 50000''' 91 echo 'established.max 50000' 92 echo 'established.info The number of currently open connections.' 79 93 exit 0 80 94 fi 81 95 82 netstat -s | awk '/connection accepts/ { print "active.value " $1 } /bad connection/ { print "failed.value " $1 } /reset/ { print "resets.value " $1 } /connections established/ { print "established.value " $1 }'96 netstat -s | awk '/connection requests/ { print "active.value " $1 } /connection accepts/ { print "passive.value " $1 } /bad connection/ { print "failed.value " $1 } /reset/ { print "resets.value " $1 } /connections established/ { print "established.value " $1 }' 83 97 trunk/node/node.d.freebsd/open_files.in
- Property cvs2svn:cvs-rev changed from 1.2 to 1.3
r201 r682 9 9 # 10 10 # $Log$ 11 # Revision 1.3 2005/01/28 14:47:31 lupe 12 # Add graph_info and some filed.info 13 # 11 14 # Revision 1.2 2004/05/20 19:02:36 jimmyo 12 15 # Set categories on a bunch of plugins … … 53 56 echo 'graph_vlabel number of open files' 54 57 echo 'graph_category system' 58 echo 'graph_info This graph monitors the Linux open files table.' 55 59 echo 'used.label open files' 60 echo 'used.info The number of currently open files.' 56 61 echo 'max.label max open files' 62 echo 'max.info The maximum supported number of open files.' 57 63 /sbin/sysctl -n kern.maxfiles | awk '{printf "used.warning %d\nused.critical %d\n",$1*0.92,$1*0.98}' 58 64 exit 0 trunk/node/node.d.freebsd/processes.in
- Property cvs2svn:cvs-rev changed from 1.2 to 1.3
r201 r682 10 10 # 11 11 # $Log$ 12 # Revision 1.3 2005/01/28 14:47:31 lupe 13 # Add graph_info and some filed.info 14 # 12 15 # Revision 1.2 2004/05/20 19:02:36 jimmyo 13 16 # Set categories on a bunch of plugins … … 42 45 echo 'graph_vlabel number of processes' 43 46 echo 'graph_category processes' 47 echo 'graph_info This graph shows the number of processes in the system.' 44 48 echo 'processes.label processes' 49 echo 'processes.info The current number of processes.' 45 50 echo 'processes.draw LINE2' 46 51 exit 0 trunk/node/node.d.freebsd/swap.in
- Property cvs2svn:cvs-rev changed from 1.5 to 1.6
r553 r682 9 9 # 10 10 # $Log$ 11 # Revision 1.6 2005/01/28 14:47:31 lupe 12 # Add graph_info and some filed.info 13 # 11 14 # Revision 1.5 2004/12/10 10:47:49 jimmyo 12 15 # Change name from ${scale} to ${graph_period}, to be more consistent. … … 64 67 echo 'graph_vlabel pages per ${graph_period} in (-) / out (+)' 65 68 echo 'graph_category system' 69 echo 'graph_info This graph shows the swap activity of the system." 66 70 echo 'swap_in.label swap' 67 71 echo 'swap_in.type DERIVE' trunk/node/node.d.freebsd/vmstat.in
- Property cvs2svn:cvs-rev changed from 1.4 to 1.5
r519 r682 10 10 # 11 11 # $Log$ 12 # Revision 1.5 2005/01/28 14:47:31 lupe 13 # Add graph_info and some filed.info 14 # 12 15 # Revision 1.4 2004/11/28 09:43:54 lupe 13 16 # 6-CURRENT support … … 67 70 echo 'graph_vlabel process states' 68 71 echo 'graph_category processes' 72 echo 'graph_info This graph shows number of processes in each state.' 69 73 if [ "$OSV" -ge "5" ]; then 70 74 echo 'running.label running' 75 echo 'running.info processes on CPU or waiting for CPU' 71 76 echo 'running.type GAUGE' 72 77 echo 'diskwait.label diskwait' 78 echo 'diskwait.info processes waiting for disk activity' 73 79 echo 'diskwait.type GAUGE' 74 80 echo 'pagewait.label pagewait' 81 echo 'pagewait.info processes waiting for page-in' 75 82 echo 'pagewait.type GAUGE' 76 83 echo 'sleep.label sleep' 84 echo 'sleep.info processes waiting for some event' 77 85 echo 'sleep.type GAUGE' 78 86 else
