################################################################# # # File - lotus-commands.cfg # Description - Command definitions file for nagios containing # definitions for lotus/domino server checks # Author - Ajitabh Pandey # COMMAND DEFINITIONS - # # SYNTAX: # # define command{ # template # name # command_name # command_line # } # # WHERE: # # = object name of another command definition that should be # used as a template for this definition (optional) # = object name of command definition, referenced by other # command definitions that use it as a template (optional) # = name of the command, as recognized/used by Nagios # = command line # # History - # ver 0.1 - Created on 09th Mar 2007 - AP ################################################################# define command{ command_name check_tcp_domino command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 1352 } define command{ command_name check_vhost command_line $USER1$/check_http -H $ARG1$ -I $HOSTADDRESS$ -u $ARG2$ } define command{ command_name check_lotus command_line $USER1$/check_lotus.pl -H $HOSTADDRESS$ -S $ARG1$ } define command{ command_name check_lotus_memory-usage command_line $USER1$/check_lotus_mem.pl -H $HOSTADDRESS$ -C $ARG1$ -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_server-state command_line $USER1$/check_lotus_state.pl -H $HOSTADDRESS$ -C $ARG1$ } # # SNMP Checks based on domino.mib # define command{ command_name check_lotus_dead-mail command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.1.0 -l "Number of dead (undeliverable) mail messages" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_routing-failures command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.3.0 -l "Total number of routing failures since the server started" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_pending-routing command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.6.0 -l "Number of mail messages waiting to be routed" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_pending-local command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.7.0 -l "Number of pending mail messages awaiting local delivery" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_avg-hops command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.10.0 -l "Average number of server hops for mail delivery" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_max-delivery-time command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.12.0 -l "Maximum time for mail delivery in seconds" -u "s" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_router-unable-to-transfer command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.19.0 -l "Number of mail messages the router was unable to transfer" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_mail-held-in-queue command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.21.0 -l "Number of mail messages in message queue on hold" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_mails-pending command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.31.0 -l "Number of mail messages pending" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_mailbox-dns-pending command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.4.34.0 -l "Number of mail messages in MAIL.BOX waiting for DNS" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_databases-in-cache command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.10.15.0 -l "Number of databases in cache" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_database-cache-hits command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.10.17.0 -l "Number of times an lnDBCacheInitialDbOpen is satisfied by finding a database in the cache" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_database-cache-overcrowding command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.10.21.0 -l "Number of times a database is not placed into the cache when it is closed because lnDBCacheCurrentEntries equals or exceeds lnDBCacheMaxEntries*1.5" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_replicator-status command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.6.1.3.0 -l "Status of Replicator task" } define command{ command_name check_lotus_router-status command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.6.1.4.0 -l "Status of the Router task" } define command{ command_name check_lotus_replication-failed command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.5.4.0 -l "Number of replications that generated an error" -w $ARG2$ -c $ARG3$ } define command{ command_name check_lotus_server-availability-index command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.334.72.1.1.6.3.19.0 -l "Current percentage index of server's availability. 0 indicates no available resources, 100 indicates completely available" }