HVAC Sensor em01B
Moderators: Developers, Moderators
HVAC Sensor em01B
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?
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
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]";
Beta plugin available
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.
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.
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
- Attachments
-
- cacti_graph_template_em01_temperature_graph.xml
- (9.02 KiB) Downloaded 189 times
-
- cacti_graph_template_em01_illumination_graph.xml
- (9.02 KiB) Downloaded 152 times
-
- cacti_graph_template_em01_humidity_graph.xml
- (9.01 KiB) Downloaded 191 times
Who is online
Users browsing this forum: No registered users and 1 guest