WxGoose Climate Monitor
Moderators: Developers, Moderators
WxGoose Climate Monitor
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>
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
- wxgoose.gif (13.05 KiB) Viewed 34535 times
-
- wxgoose.pl.txt
- Perl script
- (1.29 KiB) Downloaded 1769 times
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?
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?
Receive XML Parse Error:
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!
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!
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
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?
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?
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.
Great script and any help would be greatly appreciated.
- Attachments
-
- btr_wxgoose.png (27.58 KiB) Viewed 31869 times
-
- Cacti User
- Posts: 66
- Joined: Tue Mar 22, 2005 10:11 am
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)
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.
Where ipaddr and comm is the ip and community of my Wxgoose device.
Running the script from CLI produces the output correctly:
Any ideas?
Thanks
jacauc
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>'
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
Thanks
jacauc
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
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
- graph_image.php.png (59.89 KiB) Viewed 30050 times
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]
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
Who is online
Users browsing this forum: No registered users and 1 guest