Changeset 682

Show
Ignore:
Timestamp:
01/28/05 15:47:31 (7 years ago)
Author:
lupe
Message:

Add graph_info and some filed.info

Files:

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  
    1111# 
    1212# $Log$ 
     13# Revision 1.10  2005/01/28 14:47:31  lupe 
     14# Add graph_info and some filed.info 
     15# 
    1316# Revision 1.9  2005/01/25 08:48:28  lupe 
    1417# Correct multi-CPU bugs 
     
    9699        echo 'graph_vlabel %' 
    97100        echo 'graph_scale no' 
     101        echo 'graph_info This graph shows how CPU time is spent.' 
    98102        echo 'graph_category system' 
    99103        echo 'graph_period second' 
     
    105109#       echo "system.warning $SYSWARNING"  
    106110#       echo "system.critical $SYSCRITICAL"  
     111        echo 'system.info CPU time spent by the kernel in system activities' 
    107112        echo "system.cdef system,$CDEF" 
    108113        echo 'interrupt.label interrupt' 
     
    118123#       echo "user.warning $USRWARNING" 
    119124        echo 'user.type DERIVE' 
     125        echo 'user.info CPU time spent by normal programs and daemons' 
    120126        echo 'user.min 0' 
    121127        echo "user.cdef user,$CDEF" 
     
    124130        echo 'nice.max 5000' 
    125131        echo 'nice.type DERIVE' 
     132        echo 'nice.info CPU time spent by nice(1)d programs' 
    126133        echo 'nice.min 0' 
    127134        echo "nice.cdef nice,$CDEF" 
     
    130137        echo 'idle.max 5000' 
    131138        echo 'idle.type DERIVE' 
     139        echo 'idle.info Idle CPU time' 
    132140        echo 'idle.min 0' 
    133141        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  
    99# 
    1010# $Log$ 
     11# Revision 1.6  2005/01/28 14:47:31  lupe 
     12# Add graph_info and some filed.info 
     13# 
    1114# Revision 1.5  2005/01/28 13:25:34  lupe 
    1215# Add support for FreeBSD 4.x ramdisks 
     
    5457        echo 'graph_args --upper-limit 100 -l 0' 
    5558        echo 'graph_vlabel %' 
     59        echo 'graph_category disk' 
     60        echo 'graph_info This graph shows disk usage on the machine.' 
    5661        mfs=0 
    5762        /bin/df -P -t noprocfs,devfs,fdescfs,linprocfs,nfs | tail +2 | grep -v "//" | while read i; do 
     
    6166                esac 
    6267                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                        }" 
    6476                echo "$name.warning 92" 
    6577                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  
    99# 
    1010# $Log$ 
     11# Revision 1.6  2005/01/28 14:47:31  lupe 
     12# Add graph_info and some filed.info 
     13# 
    1114# Revision 1.5  2005/01/28 13:25:34  lupe 
    1215# Add support for FreeBSD 4.x ramdisks 
     
    6871        echo 'graph_args --upper-limit 100 -l 0' 
    6972        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                }" 
    8196        exit 0 
    8297fi 
  • trunk/node/node.d.freebsd/if_.in

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r553 r682  
    1111# 
    1212# $Log$ 
     13# Revision 1.5  2005/01/28 14:47:31  lupe 
     14# Add graph_info and some filed.info 
     15# 
    1316# Revision 1.4  2004/12/10 10:47:49  jimmyo 
    1417# Change name from ${scale} to ${graph_period}, to be more consistent. 
     
    6972        echo 'graph_vlabel bits per ${graph_period} in (-) / out (+)' 
    7073        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." 
    7175        echo 'rbytes.label received' 
    7276        echo 'rbytes.type COUNTER' 
     
    7781        echo 'obytes.negative rbytes' 
    7882        echo 'obytes.cdef obytes,8,*' 
     83        echo 'obytes.info Traffic sent (+) and received (-) on the $INTERFACE network interface." 
    7984        exit 0 
    8085fi; 
  • trunk/node/node.d.freebsd/if_errcoll_.in

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r553 r682  
    1111# 
    1212# $Log$ 
     13# Revision 1.5  2005/01/28 14:47:31  lupe 
     14# Add graph_info and some filed.info 
     15# 
    1316# Revision 1.4  2004/12/10 10:47:49  jimmyo 
    1417# Change name from ${scale} to ${graph_period}, to be more consistent. 
     
    6568        echo 'graph_vlabel events / ${graph_period}' 
    6669        echo 'graph_category network' 
     70        echo "graph_info This graph shows the amount of errors and collisions on the $INTERFACE network interface." 
    6771        echo 'ierrors.label Input Errors' 
    6872        echo 'ierrors.type COUNTER' 
  • trunk/node/node.d.freebsd/load.in

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r201 r682  
    99# 
    1010# $Log$ 
     11# Revision 1.4  2005/01/28 14:47:31  lupe 
     12# Add graph_info and some filed.info 
     13# 
    1114# Revision 1.3  2004/05/20 19:02:36  jimmyo 
    1215# Set categories on a bunch of plugins 
     
    7982        echo 'load.warning 10' 
    8083        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.' 
    8189 
    8290        # 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  
    99# 
    1010# $Log$ 
     11# Revision 1.3  2005/01/28 14:47:31  lupe 
     12# Add graph_info and some filed.info 
     13# 
    1114# Revision 1.2  2004/05/20 19:02:36  jimmyo 
    1215# Set categories on a bunch of plugins 
     
    5356        echo 'graph_title Memory usage' 
    5457        echo 'graph_category system' 
     58        echo 'graph_info This graph shows what the machine uses its memory for.'; 
    5559        echo 'graph_order active inactive wired buffers cached free' 
    5660        echo 'active.label active' 
     61        echo 'active.info pages recently statistically used' 
    5762        echo 'active.draw AREA' 
    5863        echo 'inactive.label inactive' 
     64        echo 'inactive.info pages recently statistically unused' 
    5965        echo 'inactive.draw STACK' 
    6066        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' 
    6168        echo 'wired.draw STACK' 
    6269        echo 'buffers.label buffers' 
     70        echo 'buffers.info pages used for filesystem buffers' 
    6371        echo 'buffers.draw STACK' 
    6472        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' 
    6574        echo 'cached.draw STACK' 
    6675        echo 'free.label free' 
     76        echo 'free.info pages without data content' 
    6777        echo 'free.draw STACK' 
    6878        exit 0 
  • trunk/node/node.d.freebsd/netstat.in

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r553 r682  
    99# 
    1010# $Log$ 
     11# Revision 1.6  2005/01/28 14:47:31  lupe 
     12# Add graph_info and some filed.info 
     13# 
    1114# Revision 1.5  2004/12/10 10:47:49  jimmyo 
    1215# Change name from ${scale} to ${graph_period}, to be more consistent. 
     
    6164        echo 'graph_vlabel active connections per ${graph_period}' 
    6265        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.' 
    6368        echo 'active.label active' 
    6469        echo 'active.type DERIVE' 
    6570        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.' 
    6778        echo 'failed.label failed' 
    6879        echo 'failed.type DERIVE' 
    6980        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.' 
    7183        echo 'resets.label resets' 
    7284        echo 'resets.type DERIVE' 
    7385        echo 'resets.min 0' 
    74         echo 'resets.max 50000''' 
     86        echo 'resets.max 50000' 
     87        echo 'resets.info The number of TCP connection resets.' 
    7588        echo 'established.label established' 
    7689        echo 'established.type DERIVE' 
    7790        echo 'established.min 0' 
    78         echo 'established.max 50000''' 
     91        echo 'established.max 50000' 
     92        echo 'established.info The number of currently open connections.' 
    7993        exit 0 
    8094fi 
    8195 
    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 }' 
     96netstat -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 }' 
    8397 
  • trunk/node/node.d.freebsd/open_files.in

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r201 r682  
    99# 
    1010# $Log$ 
     11# Revision 1.3  2005/01/28 14:47:31  lupe 
     12# Add graph_info and some filed.info 
     13# 
    1114# Revision 1.2  2004/05/20 19:02:36  jimmyo 
    1215# Set categories on a bunch of plugins 
     
    5356        echo 'graph_vlabel number of open files' 
    5457        echo 'graph_category system' 
     58        echo 'graph_info This graph monitors the Linux open files table.' 
    5559        echo 'used.label open files' 
     60        echo 'used.info The number of currently open files.' 
    5661        echo 'max.label max open files' 
     62        echo 'max.info The maximum supported number of open files.' 
    5763        /sbin/sysctl -n kern.maxfiles | awk  '{printf "used.warning %d\nused.critical %d\n",$1*0.92,$1*0.98}' 
    5864        exit 0 
  • trunk/node/node.d.freebsd/processes.in

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r201 r682  
    1010# 
    1111# $Log$ 
     12# Revision 1.3  2005/01/28 14:47:31  lupe 
     13# Add graph_info and some filed.info 
     14# 
    1215# Revision 1.2  2004/05/20 19:02:36  jimmyo 
    1316# Set categories on a bunch of plugins 
     
    4245        echo 'graph_vlabel number of processes' 
    4346        echo 'graph_category processes' 
     47        echo 'graph_info This graph shows the number of processes in the system.' 
    4448        echo 'processes.label processes' 
     49        echo 'processes.info The current number of processes.' 
    4550        echo 'processes.draw LINE2' 
    4651        exit 0 
  • trunk/node/node.d.freebsd/swap.in

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r553 r682  
    99# 
    1010# $Log$ 
     11# Revision 1.6  2005/01/28 14:47:31  lupe 
     12# Add graph_info and some filed.info 
     13# 
    1114# Revision 1.5  2004/12/10 10:47:49  jimmyo 
    1215# Change name from ${scale} to ${graph_period}, to be more consistent. 
     
    6467        echo 'graph_vlabel pages per ${graph_period} in (-) / out (+)' 
    6568        echo 'graph_category system' 
     69        echo 'graph_info This graph shows the swap activity of the system." 
    6670        echo 'swap_in.label swap' 
    6771        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  
    1010# 
    1111# $Log$ 
     12# Revision 1.5  2005/01/28 14:47:31  lupe 
     13# Add graph_info and some filed.info 
     14# 
    1215# Revision 1.4  2004/11/28 09:43:54  lupe 
    1316# 6-CURRENT support 
     
    6770        echo 'graph_vlabel process states' 
    6871        echo 'graph_category processes' 
     72        echo 'graph_info This graph shows number of processes in each state.' 
    6973        if [ "$OSV" -ge "5" ]; then 
    7074                echo 'running.label running' 
     75                echo 'running.info processes on CPU or waiting for CPU' 
    7176                echo 'running.type GAUGE' 
    7277                echo 'diskwait.label diskwait' 
     78                echo 'diskwait.info processes waiting for disk activity' 
    7379                echo 'diskwait.type GAUGE' 
    7480                echo 'pagewait.label pagewait' 
     81                echo 'pagewait.info processes waiting for page-in' 
    7582                echo 'pagewait.type GAUGE' 
    7683                echo 'sleep.label sleep' 
     84                echo 'sleep.info processes waiting for some event' 
    7785                echo 'sleep.type GAUGE' 
    7886        else