Nagios – monitor interSeptor Temperature and Humidity

Jakarta interSeptor is a server room grade temperature and humidity monitoring device that offers SNMP access:
https://www.jacarta.com/interseptor/

To manually check your temp and humidity run:
temperature:
/usr/local/nagios/libexec/check_snmp -H _interSeptor_IP_ -C _Community_String_ -o .1.3.6.1.4.1.19011.1.3.1.1.3.2.1.3.1
humidity
/usr/local/nagios/libexec//check_snmp -H _interSeptor_IP_ -C _Community_String_ -o .1.3.6.1.4.1.19011.1.3.1.1.3.2.1.5.1

the output will look like this:
SNMP OK – 207 | iso.3.6.1.4.1.19011.1.3.1.1.3.2.1.3.1=207

Please note that all temperature and humidity values are multiplied by ten when retrieved.
Therefore the returned values should be divided by ten once retrieved to attain the actual
reading.

To deal with that problem in the: /usr/local/nagios/libexec/ folder create check_interSeptor.sh file then paste this:

#!/bin/bash
# $1 - hostname
# $2 - SNMP community string
# $3 - oid
# $4 - Header
# temp oid =.1.3.6.1.4.1.19011.1.3.1.1.3.2.1.3.1
# humidity oid = .1.3.6.1.4.1.19011.1.3.1.1.3.2.1.5.1
# oid details: https://www.jacarta.com/wp-content/uploads/interSeptor-Alarm-OIDs.pdf

snmp=$(/usr/local/nagios/libexec/check_snmp -H $1 -C $2 -o $3|cut -b 11-14)
var=$(echo "scale=2; $snmp/10" | bc )
output=$(echo "$4 - $var | $4=$var" )
echo $output

save the file and make it executable then test it:
/usr/local/nagios/libexec/check_interSeptopr.sh _interSeptor_IP_ _Community_String_ .1.3.6.1.4.1.19011.1.3.1.1.3.2.1.5.1 Humidity

Humidity – 42.20 | Humidity=42.20

Now back to Nagios:
in the commands.cfg define command:

define command {
    command_name    check_interSeptor
    command_line    $USER1$/check_interSeptopr.sh $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}

then define services:

define service{
        use                     generic-service
        host_name               interseptor
        service_description     Temperature
        check_command           check_interSeptor!BVFB2unUAX!.1.3.6.1.4.1.19011.1.3.1.1.3.2.1.3.1!Temperature
        }

define service{
        use                     generic-service
        host_name               interseptor
        service_description     Humidity
        check_command           check_interSeptor!BVFB2unUAX!.1.3.6.1.4.1.19011.1.3.1.1.3.2.1.5.1!Humidity
        }

Leave a Reply

Your email address will not be published. Required fields are marked *

three × 1 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.