Nagios – monitor interSeptor Temperature and Humidity

Jakarta interSeptor is a server room grade temperature and humidity monitoring device that offers SNMP access:

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

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

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

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

# $1 - hostname
# $2 - SNMP community string
# $3 - oid
# $4 - Header
# temp oid =.
# humidity oid = .
# oid details:

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/ _interSeptor_IP_ _Community_String_ . 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$/ $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$

then define services:

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

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

Leave a Reply

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

20 − three =

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