1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

- have some dirs

This commit is contained in:
Steve Schnepp 2012-02-13 18:24:46 +01:00
parent 0b089ea777
commit 08346aac58
687 changed files with 0 additions and 0 deletions

35
plugins/scalix/scalix_clients Executable file
View file

@ -0,0 +1,35 @@
#!/bin/sh
#
# Plugin to monitor the Scalix email system: Client statistics
#
# (C) 2008 P.Holzleitner
#
#%# family=contrib
OMSTAT="/opt/scalix/bin/omstat"
if [ "$1" = "config" ]; then
echo 'graph_title Scalix client connections'
echo 'graph_args --lower-limit 0'
echo 'graph_vlabel number'
echo 'graph_category Scalix'
echo 'swa.label Webmail connections'
echo 'swa.draw AREA'
echo 'imap.label IMAP connections'
echo 'imap.draw STACK'
echo 'outlook.label Outlook/Scalix10 connections'
echo 'outlook.draw STACK'
echo 'outlook11.label Outlook/Scalix11 connections'
echo 'outlook11.draw STACK'
exit 0
fi
IMAP=`nice -10 $OMSTAT -u rci -c | grep 'IMAP client' | wc -l`
SWEB=`nice -10 $OMSTAT -u rci -c | grep 'SWA client' | wc -l`
OLOK10=`pgrep -f "Connect for Microsoft Outlook 10" | wc -l`
OLOK11=`pgrep -f "Connect for Microsoft Outlook 11" | wc -l`
echo "swa.value $SWEB"
echo "imap.value $IMAP"
echo "outlook.value $OLOK10"
echo "outlook11.value $OLOK11"

50
plugins/scalix/scalix_indexwork Executable file
View file

@ -0,0 +1,50 @@
#!/usr/bin/perl
#
# Plugin to monitor the Scalix email system.
#
# $Log$
#
#
# Parameters:
#
# config (required)
# autoconf (optional - used by munin-config)
#
# Magic markers (Used by munin-config and some installation scripts.
# Optional):
#
#%# family=contrib
my $OMRP="/opt/scalix/bin/omrealpath";
my $mode = shift;
if($mode eq "config") {
print "graph_title Scalix Index Work Queue\n";
print "graph_args -l 0\n";
print "graph_vlabel number\n";
print "graph_category Scalix\n";
print "graph_title Scalix Index Work Queue\n";
print "graph_vlabel Items\n";
print "items.label Items to be indexed\n";
print "items.min 0\n";
exit 0;
}
my $iwdir = `$OMRP "~/indexwork"`; chomp $iwdir;
#print "$iwdir\n";
my ($f, $fsize, $i);
opendir(DIR, $iwdir);
while ($f = readdir(DIR)) {
next unless $f =~ /\d+\.\d/;
$fsize = -s $iwdir . '/' . $f;
# print "$f $fsize\n";
$i += ($fsize / 112);
}
closedir(DIR);
$i = int $i;
print "items.value $i\n";

42
plugins/scalix/scalix_processes Executable file
View file

@ -0,0 +1,42 @@
#!/bin/sh
#
# Plugin to monitor the Scalix email system: Process statistics
#
# (C) 2008 P.Holzleitner
#
#%# family=contrib
if [ "$1" = "config" ]; then
echo 'graph_title Scalix processes'
echo 'graph_args --lower-limit 0'
echo 'graph_vlabel number'
echo 'graph_category Scalix'
echo 'mimeb.label MIME Browser processes'
echo 'indexb.label Index Browser processes'
echo 'imap.label IMAP Server processes'
echo 'pop3.label POP3 Server processes'
echo 'postgres.label Postgres threads'
echo 'ualr.label UAL Remote (RCI) processes'
echo 'xport.label xport.out processes'
echo 'jthread.label Java threads'
exit 0
fi
MIMEB=`pgrep mime.browse | wc -l`
INDEXB=`pgrep index.browse | wc -l`
IMAP=`pgrep in.imap41d | wc -l`
POP3=`pgrep pop3.server | wc -l`
POSTGRES=`pgrep -f postgres | wc -l`
UALR=`pgrep ual.remote | wc -l`
XPORT=`pgrep xport.out | wc -l`
JPID=`pgrep java`
JTHREAD=`ls -1 /proc/$JPID/task | wc -l`
echo "mimeb.value $MIMEB"
echo "indexb.value $INDEXB"
echo "imap.value $IMAP"
echo "pop3.value $POP3"
echo "postgres.value $POSTGRES"
echo "ualr.value $UALR"
echo "xport.value $XPORT"
echo "jthread.value $JTHREAD"

85
plugins/scalix/scalix_queues Executable file
View file

@ -0,0 +1,85 @@
#!/bin/sh
#
# Plugin to monitor the Scalix email system: Queue statistics
#
# (C) 2008 P.Holzleitner
#
#
#%# family=contrib
OMSTAT="/opt/scalix/bin/omstat"
if [ "$1" = "config" ]; then
echo 'graph_title Scalix queues'
echo 'graph_args --lower-limit 0'
echo 'graph_vlabel number'
echo 'graph_category Scalix'
echo 'archive.label Archive'
echo 'bb.label Bulletin Board'
echo 'dirsync.label Dir-Sync'
echo 'error.label Error'
echo "error.warning 1"
echo "error.critical 10"
echo 'local.label Local'
echo "local.warning 50"
echo "local.critical 100"
echo 'router.label Router'
echo "router.warning 50"
echo "router.critical 100"
echo 'smerr.label SM-Error'
echo 'smintfc.label SM-Interface'
echo 'unix.label Unix'
echo 'poison.label Poison'
echo "poison.warning 1"
echo "poison.critical 10"
exit 0
fi
#ARCHERR=`$OMSTAT -q archerr 2>/dev/null | wc -l`
ARCHIVE=`$OMSTAT -q archive 2>/dev/null | wc -l`
BB=`$OMSTAT -q bb 2>/dev/null | wc -l`
DIRSYNC=`$OMSTAT -q dirsync 2>/dev/null | wc -l`
#DMM=`$OMSTAT -q dmm 2>/dev/null | wc -l`
#DUMP=`$OMSTAT -q dump 2>/dev/null | wc -l`
#ERRMGR=`$OMSTAT -q errmgr 2>/dev/null | wc -l`
ERROR=`$OMSTAT -q error 2>/dev/null | wc -l`
#LICENSE=`$OMSTAT -q license 2>/dev/null | wc -l`
LOCAL=`$OMSTAT -q local 2>/dev/null | wc -l`
#PRINT=`$OMSTAT -q print 2>/dev/null | wc -l`
#REQ=`$OMSTAT -q req 2>/dev/null | wc -l`
#RESOLVE=`$OMSTAT -q resolve 2>/dev/null | wc -l`
ROUTER=`$OMSTAT -q router 2>/dev/null | wc -l`
SMERR=`$OMSTAT -q smerr 2>/dev/null | wc -l`
SMINTFC=`$OMSTAT -q smintfc 2>/dev/null | wc -l`
#TEST=`$OMSTAT -q test 2>/dev/null | wc -l`
UNIX=`$OMSTAT -q unix 2>/dev/null | wc -l`
#IDEL=`$OMSTAT -q idel 2>/dev/null | wc -l`
POISON=`$OMSTAT -q poison 2>/dev/null | wc -l`
#echo "archerr.value $ARCHERR"
echo "archive.value $ARCHIVE"
echo "bb.value $BB"
echo "dirsync.value $DIRSYNC"
#echo "dmm.value $DMM"
#echo "dump.value $DUMP"
#echo "errmgr.value $ERRMGR"
echo "error.value $ERROR"
#echo "license.value $LICENSE"
echo "local.value $LOCAL"
#echo "print.value $PRINT"
#echo "req.value $REQ"
#echo "resolve.value $RESOLVE"
echo "router.value $ROUTER"
echo "smerr.value $SMERR"
echo "smintfc.value $SMINTFC"
#echo "test.value $TEST"
echo "unix.value $UNIX"
#echo "idel.value $IDEL"
echo "poison.value $POISON"