This file is indexed.

/usr/share/munin/plugins/psu_ is in munin-node 1.4.6-3ubuntu3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
# -*- sh -*-

: <<EOF

=head1 NAME

psu_ - Wildcard plugin to graph the number of processes by a given
user.

=head1 CONFIGURATION

This is a wildcard plugin.  The link name extension is the user name
we wish to graph.

Example:

 ln -s /usr/share/munin/plugins/psu_ /etc/munin/plugins/psu_foo

...will monitor the user "foo"

=head1 AUTHORS

Unknown author

=head1 LICENSE

Unknown license

=head1 BUGS

Plugin is "autoconf suggest", but "suggest" will always return no
suggestions.

=head1 MAGIC MARKERS

 #%# family=manual
 #%# capabilities=autoconf suggest

=cut

EOF

name=`basename $0 | sed 's/^psu_//g'`

if [ "$1" = "autoconf" ]; then
	echo yes
	exit 0
fi

if [ "$1" = "suggest" ]; then
	exit 0
fi

if [ "$1" = "config" ]; then

	echo graph_title Number of processes owned by $name
	echo 'graph_args --base 1000 --vertical-label processes -l 0'
	echo 'graph_category processes'
	echo "count.label $name"
	echo 'processes.draw LINE2'
	exit 0
fi

printf "count.value "
(pgrep -u "$name"; pgrep -U "$name") | sort -u | wc -l