~ubuntu-branches/ubuntu/saucy/munin/saucy

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 12:54:28 UTC
  • mfrom: (8.1.30 sid)
  • Revision ID: package-import@ubuntu.com-20120611125428-k8z25s77rp755vxe
Tags: 2.0.0-1ubuntu1
* Resync with Debian unstable.
* d/munin-node.upstart,munin.upstart: Add upstart configurations.

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
 
# Magick markers (optional - used by munin-config and som installation
12
 
# scripts):
13
 
#%# family=auto
14
 
#%# capabilities=autoconf
15
 
 
16
 
 
17
 
 
18
 
if [ "$1" = "autoconf" ]; then
19
 
        echo yes 
20
 
        exit 0
21
 
fi
22
 
 
23
 
if [ "$1" = "config" ]; then
24
 
 
25
 
        echo 'graph_title Number of Processes'
26
 
        echo 'graph_args --base 1000 -l 0 '
27
 
        echo 'graph_vlabel number of processes'
28
 
        echo 'graph_category processes'
29
 
        echo 'graph_info This graph shows the number of processes in the system.'
30
 
        echo 'processes.label processes'
31
 
        echo 'processes.info The current number of processes.'
32
 
        echo 'processes.draw LINE2'
33
 
        exit 0
34
 
fi
35
 
 
36
 
echo -n "processes.value "
37
 
/bin/ps ax | /usr/bin/wc -l