################################################################################

Esensors EM01 Plugin (PERL VERSION).
Last Updated: August 11th, 2005
Description: This plugin reports the temperature, humidity and illumination
		 from an eSensors EM01 HVAC Monitor.
		 This plugin is written mainly for Nagios, but can be
		 easily used for other software too.

File name: check_em01.pl

Language: Perl

OS: Unix/Linux

Contact Us:
4240 Ridge Lea Rd
Suite 37
Amherst, NY 14226

Tel: (716) 837-8719
Fax: (716) 837-8740
Email: TechHelp@eEsensors.com

##############################
########## USAGE #############

Syntax: check_em01.pl [options] {sensor}

  {sensor} is the address of sensor on network (name or IP)

  --debug
    print debug messages to stdout
  --timeout=x
    how long to wait before failing.  Default=$opt_timeout
  --type={all|temp|hum|illum}
    which sensor data you want to retrieve.
    If you did not specify this option, then this plugin will return all 
    sensor data.
  --{temp|hum|illum}=warnlow/warnhi,critlow/crithi
    four values are required.  'x' is used to specify no value.
   
Example:

 check_em01.pl --type=temp --temp=65/75,60/80 192.168.0.2
 check_em01.pl --type=all --temp=65/75,60/80 --hum=30/40,25/50 --illum=40/70,30/80 192.168.0.2

#####################################
########## NAGIOS INSTALLATION ######

First copy new em01 plugin into Nagios libexec directory 
(/usr/local/nagios/libexec), repleace old one. Do not forget to 
change this file to executable.

Next append the files in Nagios_Config directory into the respective
configuration file in Nagios etc directory. Add the websensor to hosts.cfg
and then edit services.cfg to include the new websensor host. Change the services
template to monitor desired sensor limits.
 
##############################
########## LICENSE ###########

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

################################################################################
