HVAC Sensor em01B

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
crazyfrog
Posts: 10
Joined: Fri Mar 28, 2008 1:49 am

HVAC Sensor em01B

Post by crazyfrog »

Hi all,
i wan't to graph temperature and humidity with the websensor em01b. I successfully connected them with Nagios with the script from the website above, but i don't know how to use them witch cacti. Google isn't my friend in that case and a forum search doesn't help.

Does some one have an i Idea how i can do that?

Thanks

PS: The attached file is the Nagios Script which may can be used for cacti?
Attachments
check_em01.pl
Nagios Script
(5.17 KiB) Downloaded 258 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see first link of my sig to find, among others, some tuto for creating own scripts
Reinhard
crazyfrog
Posts: 10
Joined: Fri Mar 28, 2008 1:49 am

Post by crazyfrog »

Hi Reinhard,
yes, thanks - i spend some time to modify the nagios script to work with cacti. Tomorrow i'll export the templates and share them with the community.

Danke erneut. ;)
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

Try to start with this script. It needs the nagios plugin, but I think the output is ok. The IP address is hardcoded, but I guess you'll find a way to get it as a cacti variable.

Code: Select all

#!/usr/bin/perl

open (em01, "\/usr\/lib\/nagios\/plugins\/check_em01 192.168.0.10|");

my $lLineBuffer = <em01>;
chomp $lLineBuffer;

### TC: 18.9HU:33.4%IL    .1        Fri Oct 28 00:03:46 2005

my @lOutput = $lLineBuffer =~ /TC:\s*([0-9.-]+)\s*HU:\s*([0-9.]+)\s*%\s*IL\s*([0-9.]+).*/;

print "Temperature:@lOutput[0]Humidity: @lOutput[1]Illumination:@lOutput[2]";
esensors
Posts: 2
Joined: Tue Jan 27, 2009 1:05 pm

Beta plugin available

Post by esensors »

Hi,

We (Esensors) have updated our plugin, released under GPL, to support Cacti.
This is a beta version.

It is available at http://www.eesensors.com/download.html

Any feedback is greatly appreciated. Please post improvements to this thread or contact us by email.
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

Thanks!
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

I tried it and it works fine. However, I did add a few things:
  • Added a vertical label for all 3 graphs, (% for humidity, lux for illumination and celsius for temperature)
  • Added current, average, min, max values at the bottom of the graph
I'm attaching the templates, I hope it will work for the others
Attachments
cacti_graph_template_em01_temperature_graph.xml
(9.02 KiB) Downloaded 188 times
cacti_graph_template_em01_illumination_graph.xml
(9.02 KiB) Downloaded 151 times
cacti_graph_template_em01_humidity_graph.xml
(9.01 KiB) Downloaded 190 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post the template to the Scripts and Templates Forum. Users will search there
Reinhard
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

gandalf wrote:Please post the template to the Scripts and Templates Forum. Users will search there
Reinhard
esensors, will you do so when the plugin is final?
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests