Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r92 - trunk/sites/psi/scripts/admin

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r92 - trunk/sites/psi/scripts/admin


Chronological Thread 
  • From: "Apache" <apache AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r92 - trunk/sites/psi/scripts/admin
  • Date: Wed, 7 May 2008 11:39:25 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: huebner AT PSI.CH
Date: Wed May 7 11:39:25 2008
New Revision: 92

Log:
Added the dmsd nagios check and a config file

Added:
trunk/sites/psi/scripts/admin/logging.conf
trunk/sites/psi/scripts/admin/nagios_check_dmsd_status

Added: trunk/sites/psi/scripts/admin/logging.conf
==============================================================================
--- (empty file)
+++ trunk/sites/psi/scripts/admin/logging.conf Wed May 7 11:39:25 2008
@@ -0,0 +1,75 @@
+# The properties for loggers and Handlers will have names starting with the
+# dot-separated name for the handler or logger.
+#
+# The global logging properties may include:
+#
+# * A property "handlers". This defines a whitespace separated list of
class
+# names for handler classes to load and register as handlers on the
root Logger
+# (the Logger named ""). Each class name must be for a Handler class
which has a
+# default constructor. Note that these Handlers may be created lazily,
when they
+# are first used.
+# * A property "config". This property is intended to allow arbitrary
+# configuration code to be run. The property defines a whitespace
separated list
+# of class names. A new instance will be created for each named class.
The default
+# constructor of each class may execute arbitrary code to update the
logging
+# configuration, such as setting logger levels, adding handlers, adding
filters,
+# etc.
+#
+# Note that all classes loaded during LogManager configuration must be on the
+# system class path. That includes the LogManager class, any config classes,
and
+# any handler classes.
+#
+# Loggers are organized into a naming hierarchy based on their dot separated
+# names. Thus "a.b.c" is a child of "a.b", but "a.b1" and a.b2" are peers.
+#
+# All properties whose names end with ".level" are assumed to define log
levels
+# for Loggers. Thus "foo.level" defines a log level for the logger called
"foo"
+# and (recursively) for any of its children in the naming hierarchy. Log
Levels
+# are applied in the order they are defined in the properties file. Thus
level
+# settings for child nodes in the tree should come after settings for their
+# parents. The property name ".level" can be used to set the level for the
root of
+# the tree.
+
+# Specify the handlers to create in the root logger
+# (all loggers are children of the root logger)
+#handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler,
+smtphandler.SMTPHandler
+handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler
+
+# java.util.logging.ConsoleHandler.level = ALL
+# java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter
+
+# java.util.logging.FileHandler.level = ALL
+# java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
+# java.util.logging.FileHandler.pattern = /var/log/dmssd.%g.%u.xml
+# java.util.logging.FileHandler.limit = 0
+# java.util.logging.FileHandler.count = 50
+# java.util.logging.FileHandler.append = false
+
+java.util.logging.FileHandler.level = ALL
+java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
+java.util.logging.FileHandler.pattern = /var/log/dmssd.%g.%u.log
+java.util.logging.FileHandler.limit = 1000000
+java.util.logging.FileHandler.count = 10
+java.util.logging.FileHandler.append = true
+
+java.util.logging.MemoryHandler.level = ALL
+java.util.logging.MemoryHandler.size = 1000
+java.util.logging.MemoryHandler.push = WARNING
+java.util.logging.MemoryHandler.target = java.util.logging.FileHandler
+
+smtphandler.SMTPHandler.level=WARNING
+smtphandler.SMTPHandler.formatter=java.util.logging.SimpleFormatter
+smtphandler.SMTPHandler.smtpHost=mail.psi.ch
+# Multiple comma-separated Email addresses are allowed in
smtphandler.SMTPHandler.to
+#smtphandler.SMTPHandler.to=roman.geus AT psi.ch, roman.geus AT gmail.com
+smtphandler.SMTPHandler.to=roman.geus AT psi.ch
+smtphandler.SMTPHandler.from=dmssd AT psi.ch
+smtphandler.SMTPHandler.subject=[dms02.psi.ch] Message from dmssd
+smtphandler.SMTPHandler.bufferSize=512
+
+# Set the default logging level for the root logger
+.level = ALL
+
+# Set logging level for dms.* loggers
+dms.level = ALL

Added: trunk/sites/psi/scripts/admin/nagios_check_dmsd_status
==============================================================================
--- (empty file)
+++ trunk/sites/psi/scripts/admin/nagios_check_dmsd_status Wed May 7
11:39:25 2008
@@ -0,0 +1,18 @@
+#! /bin/sh
+#
+# Checks status of indexer (dmsd).
+#
+# This scripts is called by NAGIOS using snmpd.
+#
+# @author Roman Geus
+#
+
+OUTPUT=$(/etc/init.d/dmsd status)
+if [ "$?" = 0 ]; then
+ echo "OK"
+ exit 0
+else
+ echo "WARNING: $OUTPUT"
+ exit 1
+fi
+



  • [idok-commit] idok commit r92 - trunk/sites/psi/scripts/admin, Apache, 05/07/2008

Archive powered by MHonArc 2.6.19.

Top of Page