Nagios plugin for Documentum

This post is bit outdated, please check Q & A. VIII for complete description

Installation:

 ~]# easy_install argparse nagiosplugin dctmpy
Searching for argparse
Reading http://pypi.python.org/simple/argparse/
Best match: argparse 1.2.1
Downloading http://argparse.googlecode.com/files/....
Processing argparse-1.2.1.tar.gz
Running argparse-1.2.1/setup.py -q bdist_egg ...
Adding argparse 1.2.1 to easy-install.pth file

Installed /usr/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg
Processing dependencies for argparse
Finished processing dependencies for argparse
Searching for nagiosplugin
Reading http://pypi.python.org/simple/nagiosplugin/
Best match: nagiosplugin 1.2
Downloading https://pypi.python.org/packages/....
Processing nagiosplugin-1.2.zip
Running nagiosplugin-1.2/setup.py -q bdist_egg ...
Adding nagiosplugin 1.2 to easy-install.pth file

Installed /usr/lib/python2.6/site-packages/nagiosplugin-1.2-py2.6.egg
Processing dependencies for nagiosplugin
Finished processing dependencies for nagiosplugin
Searching for dctmpy
Reading http://pypi.python.org/simple/dctmpy/
Best match: dctmpy 0.1.2
Downloading https://pypi.python.org/packages/....
Processing dctmpy-0.1.2.tar.gz
Running dctmpy-0.1.2/setup.py -q bdist_egg ...
Adding dctmpy 0.1.2 to easy-install.pth file
Installing nagios_check_docbase script to /usr/bin
Installing nagios_check_docbroker script to /usr/bin

Installed /usr/lib/python2.6/site-packages/dctmpy-0.1.2-py2.6.egg
Processing dependencies for dctmpy
Finished processing dependencies for dctmpy

Check session creation:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
        -m login
LOGIN OK

Check session count:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
       -m sessioncount -w 70 -c 80
SESSIONCOUNT OK - sessioncount is 8
| sessioncount=8;70;80;0;100

Check projection targets:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
       -m targets
TARGETS OK - ssc_dev.ssc_dev has status Open on 192.168.2.56:1489

Check JMS status:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
       -m jmsstatus
JMSSTATUS OK - JMS docu70dev01.sinera.remote:9080 for ssc_dev.ssc_dev - OK

Check failed auto-activities:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
       -m failedtasks
FAILEDTASKS CRITICAL - 1 task(s): 'Last Performer' (tp002-000_user1)

Check job scheduling:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
     -m jobs -j "dm_DMFilescan,dm_LogPurge" -n system_clenup_jobs
SYSTEM_CLENUP_JOBS CRITICAL - dm_DMFilescan is inactive, dm_LogPurge is inactive

Check indexagent status:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
     -m indexagents
INDEXAGENTS WARNING - Indexagent ssc_dev_ftindex_01/docu70dev01_9200_IndexAgent is stopped

Check fulltext indexing queue:

 ~]$ nagios_check_docbase -H 192.168.2.56:12000/131031 -l dmadmin -a dmadmin \
     -m indexqueue -w 1000 -c 2000
INDEXQUEUE CRITICAL - _fulltext_index_user is 4.978e+04 (outside range 0:2000)
| _fulltext_index_user=49781;1000;2000;0