Page 1 of 1
Speedfan query
Posted: Wed Dec 16, 2009 5:40 pm
by michalikt
I am interested in getting a copy of the commandline program of yours that MRTG calls to query the speedfan shared memory.
Re: Speedfan query
Posted: Wed Dec 16, 2009 5:50 pm
by phil
I will package it up for you tonight if I can, if you don't have anything by tomorrow, PM me
Re: Speedfan query
Posted: Mon Oct 04, 2010 10:38 pm
by rastogig
Hello Phil,
Can you share the Windows command-line version of the utility that get the Speedfan shared memory data. I am interested in the 32-bit Vista & 64-bit Win7 version.
Thanks
Re: Speedfan query
Posted: Mon Oct 04, 2010 11:01 pm
by phil
This should work for all versions of windows (x86 and x64) to read the data from speedfan
It outputs it in a mrtg suitable format.
Thanks,
Phil
Re: Speedfan query
Posted: Wed Mar 28, 2012 4:11 am
by Irios
Hi there
ReadSpeedFan.exe outputs decimal values on my system, and mrtg is complaining with
evaluated to 'NaN' instead of a number in the log file.
Example output:
Code: Select all
38,0
84,5
Temperature sensor 1
Temperature sensor 2
Is SpeedFan to blame for using a comma, or is it just your program that's being very polite and sticking with the system's regional settings?
Got any tips for how to fix this?
Re: Speedfan query
Posted: Wed Mar 28, 2012 11:02 am
by phil
I guess my program is sticking with the regional settings - thats not surprising because it just does a string format/printf which would do that.
I hadn't even considered that being a problem but I guess it wont be difficult to fix (assuming I can find the original code
)
I'll try and take a look when I get home from work.
Thanks,
Phil
Re: Speedfan query
Posted: Wed Mar 28, 2012 5:42 pm
by phil
Have a go with this one...
I'm now forcing the format specifically rather than forcing a regional setting that can be modified in Windows!
ReadSpeedfan.zip
Thanks,
Phil
Re: Speedfan query
Posted: Wed Mar 28, 2012 6:03 pm
by Irios
o.O
Wow, fast response.
And now it works
Superthanks, mate.
I have a request for you, though...
With the newer versions of SpeedFan you have possibility to pull data from SpeedFan with xAP.
Maaaaybe, a small program to use xAP instead of snatching data from shared memory?
(In this way you can poll a SpeedFan installed on a remote computer.)
Re: Speedfan query
Posted: Wed Mar 28, 2012 8:05 pm
by phil
I'm not familiar with xAP I will have to read up on that
Maybe thats for someone else as I'm rather busy with my other projects right now, but I will try and have a look at some point!
Thanks, and glad it works now
Phil
Re: Speedfan query
Posted: Thu Apr 12, 2012 1:46 pm
by Irios
Hi again!
Just a small note - nothing important...
Your exe outputs 5 lines in total, but MRTG requires 4 lines.
The two first lines are of course ok, but the two last lines should be
- uptime in human readable form
- computer name
I didnt notice this until now as I only use the two first lines in my MRTG config.
(I'm generating the two last lines myself using windows commands)
I've been using readspeedfan.exe for a couple of weeks now, and it work's beautifully
http://demux.net/mrtg/tyrell/summary.html
Re: Speedfan query
Posted: Thu Apr 12, 2012 8:55 pm
by phil
interesting, I don't understand why that is not a problem on my graphing then. I will see what I can do about it
Re: Speedfan query
Posted: Thu Apr 12, 2012 9:38 pm
by Irios
Well, the three last lines in the current readspeedfan.exe output is like this
3) *blank line*
4) sensor name 1
5) sensor name 2
MRTG reads only line 3 and 4. So system uptime = blank, and computer name = sensor name 1. Thats why it doesnt really pose a problem. Like I said, it's not something to worry about. But if you're gonna make any changes to your code in the future, you might look into fixing it.
I'm writing a HOWTO/FAQ on cofiguring MRTG for Windows, and I'd like to link to your website if it's OK, as your readspeedfan.exe is quite interesting for people wanting to graphs their sensors
EDIT: typo
Re: Speedfan query
Posted: Thu Apr 12, 2012 10:25 pm
by phil
No problem with the links - my config examples are ancient now, and I'm using RRDTool more than just mrtg because it works with negative numbers eg. (outside temperature) where as mrtg alone does not.