~ubuntu-branches/ubuntu/gutsy/munin/gutsy

« back to all changes in this revision

Viewing changes to node/node.d.freebsd/processes.in

  • Committer: Bazaar Package Importer
  • Author(s): Tore Anderson
  • Date: 2004-05-21 20:51:19 UTC
  • Revision ID: james.westby@ubuntu.com-20040521205119-oz8bllbjp9hs80ig
Tags: upstream-0+1.0.0pre5
ImportĀ upstreamĀ versionĀ 0+1.0.0pre5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Plugin to monitor the number of processes on the machine. Much linke
 
4
# doing a "ps | wc -l".
 
5
#
 
6
# Parameters:
 
7
#
 
8
#       config   (required)
 
9
#       autoconf (optional - used by munin-config)
 
10
#
 
11
# $Log: processes.in,v $
 
12
# Revision 1.1  2004/01/02 18:50:00  jimmyo
 
13
# Renamed occurrances of lrrd -> munin
 
14
#
 
15
# Revision 1.1.1.1  2004/01/02 15:18:07  jimmyo
 
16
# Import of LRRD CVS tree after renaming to Munin
 
17
#
 
18
# Revision 1.2  2003/11/07 17:43:16  jimmyo
 
19
# Cleanups and log entries
 
20
#
 
21
#
 
22
#
 
23
# Magick markers (optional - used by munin-config and som installation
 
24
# scripts):
 
25
#%# family=auto
 
26
#%# capabilities=autoconf
 
27
 
 
28
 
 
29
 
 
30
if [ "$1" = "autoconf" ]; then
 
31
        echo yes 
 
32
        exit 0
 
33
fi
 
34
 
 
35
if [ "$1" = "config" ]; then
 
36
 
 
37
        echo 'graph_title Number of Processes'
 
38
        echo 'graph_args --base 1000 -l 0 '
 
39
        echo 'graph_vlabel number of processes'
 
40
        echo 'processes.label processes'
 
41
        echo 'processes.draw LINE2'
 
42
        exit 0
 
43
fi
 
44
 
 
45
echo -n "processes.value "
 
46
ps ax | wc -l