3
# Plugin to monitor the number of open files in the system.
5
# $Log: open_inodes.in,v $
6
# Revision 1.1 2004/01/02 18:50:01 jimmyo
7
# Renamed occurrances of lrrd -> munin
9
# Revision 1.1.1.1 2004/01/02 15:18:07 jimmyo
10
# Import of LRRD CVS tree after renaming to Munin
12
# Revision 1.2 2003/11/12 11:49:41 jimmyo
13
# Removed warning/critical (floating max)
15
# Revision 1.1 2003/11/10 17:46:50 jimmyo
16
# Contribution by Finn-Arn Johansen (SF#839210)
22
# autoconf (optional - used by munin-config)
24
# Magic markers (Used by munin-config and some installation scripts.
28
#%# capabilities=autoconf
32
if [ "$1" = "autoconf" ]; then
33
if [ -r /proc/sys/fs/inode-nr ]; then
42
if [ "$1" = "config" ]; then
44
echo 'graph_title Inode table usage'
45
echo 'graph_args --base 1000 -l 0'
46
echo 'graph_vlabel number of open inodes'
47
echo 'used.label open inodes'
48
echo 'max.label peak open inodes'
52
awk '{print "used.value " $1-$2 "\nmax.value " $1}' < /proc/sys/fs/inode-nr