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

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

Moderators: Developers, Moderators

Post Reply
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Contact Ago, the author and/or try the SFSHMTest.exe he posted.
hid3
Cacti User
Posts: 63
Joined: Sat Jun 14, 2008 1:59 am

Post by hid3 »

Thanks. I have written him a Private Message.

Unfortunately the .exe mentioned cannot be downloaded anymore :(
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

Ok, I have created a fix for the problem with Vista+ which you can download here:

http://deve.loping.net/svn/sfsnmp/trunk ... taller.msi

Note that this is a preview installer, so it might have other problems, but I hope to release it tonight or tomorrow.

This installs a HookLib.dll and Injector.exe into the SpeedFan directory. Use this to start SpeedFan and the shared memory section will be registered globally.

- Axel
Bastart Code Repository - http://deve.loping.net
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

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

Post by BSOD2600 »

1) why is vista (or newer) required?
2) Any idea if there will be a native fix in speedfan itself?
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

BSOD2600 wrote:1) why is vista (or newer) required?
Vista is not required. I actually compiled and tested this on Windows XP, but the problem fixed is only present from Vista upwards. In Vista service processes got more isolated from the user sessions which meant that shared memory sections created by a user session had to be registered in the global namespace to be visible by services. SpeedFans SHM is read only and does not contain sensitive data, so there is no problem with sharing it globally.
BSOD2600 wrote:2) Any idea if there will be a native fix in speedfan itself?
This bug is open in SpeedFans bugtracker for quite some time, and I honestly don't know why this isn't patched yet, it's a very small fix that has no drawbacks as far as I can tell.
Bastart Code Repository - http://deve.loping.net
ivan-impuls
Posts: 23
Joined: Mon Jun 15, 2009 1:09 am

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

Post by ivan-impuls »

This template is not woking on my linux cacti machine.
I investigate and when i instal sfsnmp_installer on a windows machine, there is no OID = .1.3.6.1.4.1.16.0.2, .1.3.6.1.4.1.16.0.1, .1.3.6.1.4.1.16.0.3 :

This is from read me file sfsnmp_installer
3. EXPORTED OIDS
===================

OID Description
--------------------------------------------------------------------------------
iso.org.dod.internet.private.1.30503.1.1.1 Number of temperatures
iso.org.dod.internet.private.1.30503.1.1.2 Number of fan speeds
iso.org.dod.internet.private.1.30503.1.1.3 Number of voltages
iso.org.dod.internet.private.1.30503.1.2.x Temperatures (x is starting from 1)
iso.org.dod.internet.private.1.30503.1.3.x Fan Speeds (x is starting from 1)
iso.org.dod.internet.private.1.30503.1.4.x Voltages (x is starting from 1)

iso.org.dod.internet.private is equivalent to 1.3.6.1.4.1

I try to change your snmp_queries speedfan_fan.xml, speedfan_temp.xml, speedfan_volt.xml.
Instead of .1.3.6.1.4.1.16.0.2 OID i use iso.org.dod.internet.private.1.30503.1.1.2
Instead of .1.3.6.1.4.1.16.0.1 OID i use iso.org.dod.internet.private.1.30503.1.1.1
Instead of .1.3.6.1.4.1.16.0.3 OID i use iso.org.dod.internet.private.1.30503.1.1.3
but have no success.
Please help me with this template...
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

ivan-impuls wrote:Please help me with this template...
First, if you are using Vista or later, you have to use the fix from SVN (sorry, I didn't create the official installer yet):

http://deve.loping.net/svn/sfsnmp/trunk/installer/sfsnmp_installer.msi

With this installer, the correct OID is "1.3.6.1.4.1.30503". Please try to snmpwalk this before trying it in Cacti.

- Axel
Bastart Code Repository - http://deve.loping.net
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

I've just uploaded version 0.1.2 to the website:

http://deve.loping.net/projects/sfsnmp/

Also, I've linked to this topic from the site and updated the readme.

Enjoy!
Bastart Code Repository - http://deve.loping.net
ivan-impuls
Posts: 23
Joined: Mon Jun 15, 2009 1:09 am

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

Post by ivan-impuls »

Yes! I did it.

Instead of .1.3.6.1.4.1.16.0.2 OID i use .1.3.6.1.4.1.30503.1.6 in speedfan_fan.xml
Instead of .1.3.6.1.4.1.16.0.1 OID i use .1.3.6.1.4.1.30503.1.2 in speedfan_temp.xml
Instead of .1.3.6.1.4.1.16.0.3 OID i use .1.3.6.1.4.1.30503.1.4 in speedfan_volt.xml
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

ivan-impuls wrote:Yes! I did it.
If you use Vista or newer, did you start SpeedFan using the injector.exe ?
Bastart Code Repository - http://deve.loping.net
ivan-impuls
Posts: 23
Joined: Mon Jun 15, 2009 1:09 am

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

Post by ivan-impuls »

I use WinXP Sp3 and start speedfan using injector...
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

ivan-impuls wrote:I use WinXP Sp3 and start speedfan using injector...
Ok, could you please try this:

Replace .1.3.6.1.4.1.16.0.1 with .1.3.6.1.4.1.30503.1.2 in speedfan_temp.xml
Replace .1.3.6.1.4.1.16.0.2 with .1.3.6.1.4.1.30503.1.3 in speedfan_fan.xml
Replace .1.3.6.1.4.1.16.0.3 with .1.3.6.1.4.1.30503.1.4 in speedfan_volt.xml

Also tell me what this command outputs:

Code: Select all

snmpwalk -v2c -cpublic 10.0.0.1 .1.3.6.1.4.1.30503.1
Replace public with your community and 10.0.0.1 with the IP of the SFSNMP host.
Bastart Code Repository - http://deve.loping.net
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

Here is some sample output:

Code: Select all

# snmpwalk -v2c -cpublic 10.0.0.1 .1.3.6.1.4.1.30503.1
SNMPv2-SMI::enterprises.30503.1.1.1 = INTEGER: 5
SNMPv2-SMI::enterprises.30503.1.1.2 = INTEGER: 3
SNMPv2-SMI::enterprises.30503.1.1.3 = INTEGER: 9
SNMPv2-SMI::enterprises.30503.1.2.1 = INTEGER: 4100
SNMPv2-SMI::enterprises.30503.1.2.2 = INTEGER: 5250
SNMPv2-SMI::enterprises.30503.1.2.3 = INTEGER: 4300
SNMPv2-SMI::enterprises.30503.1.2.4 = INTEGER: 4200
SNMPv2-SMI::enterprises.30503.1.2.5 = INTEGER: 3250
SNMPv2-SMI::enterprises.30503.1.3.1 = INTEGER: 0
SNMPv2-SMI::enterprises.30503.1.3.2 = INTEGER: 3375
SNMPv2-SMI::enterprises.30503.1.3.3 = INTEGER: 0
SNMPv2-SMI::enterprises.30503.1.4.1 = INTEGER: 166
SNMPv2-SMI::enterprises.30503.1.4.2 = INTEGER: 165
SNMPv2-SMI::enterprises.30503.1.4.3 = INTEGER: 331
SNMPv2-SMI::enterprises.30503.1.4.4 = INTEGER: 503
SNMPv2-SMI::enterprises.30503.1.4.5 = INTEGER: 1192
SNMPv2-SMI::enterprises.30503.1.4.6 = INTEGER: -1179
SNMPv2-SMI::enterprises.30503.1.4.7 = INTEGER: -500
SNMPv2-SMI::enterprises.30503.1.4.8 = INTEGER: 556
SNMPv2-SMI::enterprises.30503.1.4.9 = INTEGER: 293
SNMPv2-SMI::enterprises.30503.1.5.1 = STRING: "41.00"
SNMPv2-SMI::enterprises.30503.1.5.2 = STRING: "52.50"
SNMPv2-SMI::enterprises.30503.1.5.3 = STRING: "43.00"
SNMPv2-SMI::enterprises.30503.1.5.4 = STRING: "42.00"
SNMPv2-SMI::enterprises.30503.1.5.5 = STRING: "32.50"
SNMPv2-SMI::enterprises.30503.1.6.1 = STRING: "0.00"
SNMPv2-SMI::enterprises.30503.1.6.2 = STRING: "3375.00"
SNMPv2-SMI::enterprises.30503.1.6.3 = STRING: "0.00"
SNMPv2-SMI::enterprises.30503.1.7.1 = STRING: "1.66"
SNMPv2-SMI::enterprises.30503.1.7.2 = STRING: "1.65"
SNMPv2-SMI::enterprises.30503.1.7.3 = STRING: "3.31"
SNMPv2-SMI::enterprises.30503.1.7.4 = STRING: "5.03"
SNMPv2-SMI::enterprises.30503.1.7.5 = STRING: "11.92"
SNMPv2-SMI::enterprises.30503.1.7.6 = STRING: "-11.79"
SNMPv2-SMI::enterprises.30503.1.7.7 = STRING: "-5.00"
SNMPv2-SMI::enterprises.30503.1.7.8 = STRING: "5.56"
SNMPv2-SMI::enterprises.30503.1.7.9 = STRING: "2.93"
SNMPv2-SMI::enterprises.30503.1.7.9 = No more variables left in this MIB View (It is past the end of the MIB tree)
Bastart Code Repository - http://deve.loping.net
User avatar
Ago
Posts: 22
Joined: Fri Jul 15, 2005 8:42 am
Location: Germany
Contact:

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

Post by Ago »

Damn, I wrote the wrong OIDs on the Website :\
Bastart Code Repository - http://deve.loping.net
ivan-impuls
Posts: 23
Joined: Mon Jun 15, 2009 1:09 am

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

Post by ivan-impuls »

I have the same output.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests