Lotus Notes Plugin >> CHECK_VIA_SNMP

Thomas Jens Lauritsen tjl at topdanmark.dk
Tue Jun 14 17:30:15 CEST 2005


Dear List,


There is no Domino/Notes plugin to Nagios - BUT there is a hole lot off
SNMP values you can ask for.

1. First enable SNMP for your OS (win2000) and then for the DOMINO server
(LNSNMP).

2.  Run these check_snmp in your /usr/local/nagios/libexec/ or where ever
it installed.

3. Remember that I have my Nagios system install on a Redhat 7.2 so the I
use an old NET-SNMP version Not SNMP v.3 or 5...


Checkcommand Example1.

## Dead mails in the mail.box (works also if you have mail1.box +
mail2.box) ##
./check_snmp -H YOUR_DOM_SERVER -C public -o .1.3.6.1.4.1.334.72.1.1.4.1.0
-w 25:1 -c 1000:26 -l DeadMails


Checkcommand Example2.

## Waiting mails in the mail.box (works also if you have mail1.box +
mail2.box) ##
./check_snmp -H YOUR_DOM_SERVER -C public -o .1.3.6.1.4.1.334.72.1.1.4.6.0
-w 30:15 -c 1000:31 -l WaitingMails



## In the service.cfg you must enter a service definition:##

# Service definition
define service{
        use                                     generic-service         ;
Name of service template to use
        host_name                         YOUR_SERVER_NAME
        service_description               MAILDEAD
        is_volatile                       0
        check_period                      24x7
        max_check_attempts              3
        normal_check_interval           10
        retry_check_interval              1
        contact_groups                    notes-admins
        notification_interval             120
        notification_period               24x7
        notification_options              w,u,c,r
        check_command                     check_snmp_maildead
        }


# Service definition
define service{
        use                                     generic-service         ;
Name of service template to use
        host_name                         YOUR_SERVER_NAME
        service_description               MAILWAITING
        is_volatile                        0
        check_period                      24x7
        max_check_attempts              3
        normal_check_interval           10
        retry_check_interval              1
        contact_groups                    notes-admins
        notification_interval             120
        notification_period               24x7
        notification_options              w,u,c,r
        check_command                     check_snmp_mailwaiting
        }



## In the checkcommands.cfg you must enter a command definition:##

# 'check_snmp_maildead' command definition
define command{
        command_name    check_snmp_maildead
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ -C
public -o .1.3.6.1.4.1.334.72.1.1.4.1.0 -w 25:1 -c 1000:26 -l DeadMails
        }



# 'check_snmp_mailwaiting' command definition
define command{
        command_name    check_snmp_mailwaiting
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ -C
public -o .1.3.6.1.4.1.334.72.1.1.4.6.0 -w 30:15 -c 1000:31 -l WaitingMails
        }



### REAL LIFE TESTING ###

You can test your command check on the command shell/terminal in
/usr/local/nagios/libexec/

Run ./check_snmp first to see what happens - then enter:

./check_snmp -H YOUR_DOM_SERVER -C public -o .1.3.6.1.4.1.334.72.1.1.4.1.0
-w 25:1 -c 1000:26 -l DeadMails

then

./check_snmp -H YOUR_DOM_SERVER -C public -o .1.3.6.1.4.1.334.72.1.1.4.6.0
-w 30:15 -c 1000:31 -l WaitingMails


Best regards

Thomas Jens Lauritsen









-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list