WxGoose Climate Monitor

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

WxGoose Climate Monitor

Post by DevilSun »

WxGoose (also named WeatherGoose) by the guys at I.T. Watchdogs is a server room climate monitor.

I've written a perl script to return it's data. I return the temperature in fahrenheit, everything else is raw data from the device. I've only returned the default sensors for the device which are: Temperature, Relative Humidity, Air Flow, Light Level, Sound Level.

Perl script takes two parameters, <hostname> and <snmp_community>
Attachments
cacti_host_template_wxgoose.xml
Host template
(22.06 KiB) Downloaded 1859 times
Graph screenshot
Graph screenshot
wxgoose.gif (13.05 KiB) Viewed 34534 times
wxgoose.pl.txt
Perl script
(1.29 KiB) Downloaded 1769 times
JDP

Post by JDP »

I seem to be having problems with this (Then again, I am a rookie at cacti!). Anyway, I set it up and if it doesn't pull back any info. If I go into verbose debugging I get:

Notice: Undefined index: script_path in E:\www\lib\data_query.php on line 72

Notice: Undefined index: arg_index in E:\www\lib\data_query.php on line 82

Notice: Undefined index: arg_index in E:\www\lib\data_query.php on line 84

Warning: Variable passed to each() is not an array or object in E:\www\lib\data_query.php on line 88


Any ideas?
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Run the script in perl to see if you get any data back or if your parameters are wrong.
HoK
Posts: 3
Joined: Tue Apr 12, 2005 11:28 am

Receive XML Parse Error:

Post by HoK »

DevilSun....love your scripts. I want to get Cacti graphing my Weathergoose but am having problems getting the XLM file to import into Cacti. I receive the following error after I choose Import:

Error: XML parse error.

Any ideas? I've tried importing text only as well. I'm running Cacti 0.8.6b. Any assistance would be greatly appreciated. Thanks!
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Hmmm, dunno what to tell ya there, plus I'm now running 0.8.6c so I don't think this will help, but here's an export I Just did.
Attachments
cacti_graph_template_wxgoose.xml
(13.83 KiB) Downloaded 1428 times
slade
Posts: 1
Joined: Thu Dec 22, 2005 10:48 am

Post by slade »

How are you getting decimal values returned from the snmp-get? When I try to obtain the temperature, it only returns an integer.

Also, we have more than one temperature monitor on our floor. Do I need to create a seperate Host in cacti for each monitor, even though their stats are all returned by the snmp-get that I do against the wxgoos?
techguy
Posts: 8
Joined: Tue Nov 07, 2006 3:22 pm

Post by techguy »

Any ideas as to what is causing the characters showing up after the temperature? I thought it might be the "%" sign since it does not show up, but it does on the others. Not sure where to check that though.

Great script and any help would be greatly appreciated.
Attachments
btr_wxgoose.png
btr_wxgoose.png (27.58 KiB) Viewed 31868 times
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

That's the "degree" symbol, probably your character set/codepage, i.e. possibly an older computer or OS?

You can remove it by editing the GPRINT called "Degrees" and removing that character.
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Post by jrichardson »

Are there also Data Templates that need to be imported with this? When importing the host template I get the following:


Code: Select all

Graph Template
[success] WxGoose [new]
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (GPRINT Preset) Normal
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (GPRINT Preset) Degrees
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (GPRINT Preset) Percentage
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Found Dependency: (GPRINT Preset) Exact Numbers
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item)
   + Unmet Dependency: (Data Template Item) 
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

Does anyone have any updated script for the latest version of cacti (J) ?

I am running this and it seems to be working ok, however it only works with CMD.PHP for some reason.
The moment I switch on CACTID, I get no results.

Code: Select all

SCRIPT: perl.exe E:/wwwroot/cacti/scripts/wxgoose.pl <ipaddr> <Comm>, output: U  
WARNING: Result from SCRIPT not valid. Partial Result: ...  
ERROR: Empty result [<ipaddr>]: 'perl.exe E:/wwwroot/cacti/scripts/wxgoose.pl <ipaddr> <Comm>'  
Where ipaddr and comm is the ip and community of my Wxgoose device.

Running the script from CLI produces the output correctly:

Code: Select all

int-Temp:80.6 int-Hum:32 int-Flow:44 int-Light:44 int-Sound:34
Any ideas?

Thanks
jacauc
tl1997
Posts: 19
Joined: Sat Feb 03, 2007 1:07 am
Location: Coral Gables, FL

Post by tl1997 »

I'm running j and cactid, but I took DevilSun's original work and modified it to remove the perl script and do via direct snmp query instead, since I poll about a hundred of these units. I still do C to F conversion, but its done in a CDEF instead. I also modified the colors to match the ones on the web page that the unit displays.

Mine is also modified to work with RacSense instead of WxGoose. Both are made by Geist and are identical in hardware, (you can run RacSense firmware on a WxGoose), however the OIDs are different between RacSense and WxGoose, but otherwise they are the same unit. You'll need to either change the OIDs in my template or change the firmware, but since it doesn't need perl, it may help you.

Good luck!

-Tom
Attachments
racsense.xml
Place in cacti/resource/snmp_queries
(1.44 KiB) Downloaded 1148 times
cacti_graph_template_racsense_internal_sensors.xml
Import via Cacti
(32.82 KiB) Downloaded 1301 times
Sample Graph
Sample Graph
graph_image.php.png (59.89 KiB) Viewed 30049 times
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

Thanks, this works well.
Looks good so far.

However, your "Exact Numbers +2 space pad" GPRINT, does not really work... The spaces are not saved.
I'm gonna try to replace the spaces with an "alt+255" now and see if that works.

Thanks again
cheers
jacauc
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

"alt 255" works like a charm!
tl1997
Posts: 19
Joined: Sat Feb 03, 2007 1:07 am
Location: Coral Gables, FL

Post by tl1997 »

The spaces worked fine for me. Maybe a FreeBSD vs. Windows thing. Btw, did my version help your polling time at all? I never really used it the other way, so I wasn't sure how much benefit I received by redoing it.
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

Well, I don't really know if it improved it as it's obviously much faster now that I'm using CACTID again.

I had to switch off CACTID due to the problems, so when I installed this, I re-enabled CACTID.

I am polling quite a few hosts (and a lot of them over slow WAN links) and the process completes in 30s. Not too bad I think.

Code: Select all

SYSTEM STATS: Time:29.1374 Method:cactid Processes:2 Threads:10 Hosts:171 HostsPerProcess:86 DataSources:1062 RRDsProcessed:0 
[/code]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests