SpeedFan Script & Templates - [v2.0 - 2009-04-04]

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

Moderators: Developers, Moderators

Post Reply
josephdyland
Posts: 1
Joined: Wed Feb 10, 2010 3:48 pm

Post by josephdyland »

What Version of SpeedFan is confirmed working with sfsnmp?

I a brand new user of Cacti and have spent quite some time trying to get SpeedFan and SFSNMP to work. I am having troubles geting past the testing step.. "SNMPWALK .1.3.6.1.4.1.16 to verify proper configuration of Speedfan and sfsnmp."

I just get "End Of MIB" or "snmpwalk: Timeout" so I am not sure if it SNMP configured incorrectly. Can any one help me with getting started with SNMP

I first tried this on a Windows Home Server box (which is really want i want to monitor the temps on), then a Windows7 x64, and now am trying it on my XP SP3 Laptop. no luck on any of the boxes so far!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

sfsnmp sadly seems like a dead project and is buggy/finicky to get working. I've only gotten speedfan (even the latest of 4.40) to work with sfsnmp when it's logged on with a real user account (not impersonating via srvany) too. I did the development on XP SP3 x86 and it still works.

I've contemplating writing a xAP script/template as a replacement for sfsnmp.... but thats a lot of work for my spare time ;)
markit
Posts: 4
Joined: Wed Feb 24, 2010 4:34 am

Post by markit »

Hello,
Thanks for this great addon. It is awesome. Could you help me with one problem though ?
When I run the query via Cacti it says "No SNMP data returned", while when I do it manualy using snmpwalk I get temperatures without a problem.

I am using XP SP3 machine with SNMP service installed + sfsnmp-0.1.0.msi. I've tried both Speedfan 4.30 and 4.40.

Data Query Debug Information
+ Running data query [22].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/speedfan_temp.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.16.0.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/resource/snmp_queries/speedfan_temp.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/speedfan_temp.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/speedfan_temp.xml'

[root@linux templates]# snmpwalk -c Pass -v 2c 10.150.0.13 .1.3.6.1.4.1.16.0.1
SNMPv2-SMI::enterprises.16.0.1.0 = INTEGER: 4000
SNMPv2-SMI::enterprises.16.0.1.1 = INTEGER: 2400
SNMPv2-SMI::enterprises.16.0.1.2 = INTEGER: 2300
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What cacti version?

Try increasing the snmp timeout to that device. since your snmpwalk returns data, speedfan + sfsnmp appear to be set up correctly.
markit
Posts: 4
Joined: Wed Feb 24, 2010 4:34 am

Post by markit »

It didn't help. My cacti version is 0.8.7e. I've increased SNMP Timeout value from 500ms up to 3000 and nothing happened. I don't use Spine - just standard poller, would that be a problem here ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Not sure, appears everything should be working out. Maybe try switching to snmp v1 instead.
markit
Posts: 4
Joined: Wed Feb 24, 2010 4:34 am

Post by markit »

WOW, it actually helped.. I didn't think of that. Thanks a lot !
If I may ask one more question - I also have 4 Windows 2003 Servers with SP1. Not even snmpwalk can read speedfan temps from them:
[root@linux init.d]# snmpwalk -c Pass -v 1 10.150.0.17 .1.3.6.1.4.1.16.0.1
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.16.0.1

Does your script support Win2k3 ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The script works against any OS. The problem is with speedfan and sfsnmp working properly together. there really isn't much troubleshooting one can do for sfsnmp. Make sure that device responds to other snmp queries so its not a firewall issue. then make sure speedfan is running and cofigured. try reinstalling sfsnmp and then reboot. hopefully it'll work... otherwise it's up to the sfsnmp author to fix the bugs.
markit
Posts: 4
Joined: Wed Feb 24, 2010 4:34 am

Post by markit »

Other SNMP queries work ok, as for Speedfan configuration - what do you mean by that ? It detects all hw by itself. Shall I set some additional things there ?? On my XP pc I didn't have to configure anything.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

markit wrote:Other SNMP queries work ok, as for Speedfan configuration - what do you mean by that ?
The proper installation of sfsnmp. I know of no way to troubleshoot it. Either it works or it doesn't. Sadly it looks like sfsnmp is a dead project.
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

Post by Ago »

Hi,

Everyone that has issues with SFSNMP, please try if this test application reports correct values:

http://static.loping.net/temp/SFSHMTest.exe

You can also check if this is an installer issue. The installer should create these registry keys:

"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SNMP\Parameters\ExtensionAgents\23483"
or
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents\23483"

which should contain "SOFTWARE\Bastart\SFSNMP\CurrentVersion". It should also create this registry key:

"HKEY_LOCAL_MACHINE\SOFTWARE\Bastart\SFSNMP\CurrentVersion\Pathname"

Which should contain the path to the sfsnmp.dll file. Check that the file exists, too.

Also check for the DLL using Process Explorer. Choose "Find | Find Handle or DLL...", enter sfsnmp and hit Search. There should be a SNMP.EXE in the list.

I will probably also add an OID that can be used to check if the SpeedFan SHM can be opened or not so that problems with the SHM are easier to diagnose.

I am currently preparing a new version which will have a more robust installer.
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

Post by Ago »

OK, I strongly suspect that the issue is that SpeedFan is not registering its SHM section globally. I already added a bugtracker comment about this here:

http://www.bugtrack.almico.com/bug_view ... ug_id=1275

If there is demand, I will release a patcher or api hook that fixes the problem, but this is something that should be fixed in SpeedFan and is actually a very trivial fix.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Thanks for looking into it. Now to just get Speedfan to release a fix...
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

Post by Ago »

I really don't know why this isn't fixed yet as it is a trivial fix.

I will also release a new version soon that has the fix built in as well as an OID to determine if the SHM could be opened successfully.
hid3
Cacti User
Posts: 63
Joined: Sat Jun 14, 2008 1:59 am

Post by hid3 »

Hello everyone!

I can't get the sfsnmp.dll working with the latest SpeedFan 4.4.1. Is there any actual fix for that?


Some background information: I have installed and started SpeedFan, Then Installed the sfsnmp.dll, turned on the debug option via the registry. Restarted the SNMP service. This is what I got in the debug.log:

INFO: DLL: Process attaching to the agent, reference count 1...
INFO: DLL: Process detaching from the agent, reference count 0...
INFO: DLL: Reference count is 0, destroying SHM vector...


Any ideas?

It would be really nice to have ths thing working...

Thanks! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests