I just found out on -users that fan sensors aren't being reported on
240-class Sun servers.

Picld is reporting the fans differently than what I'm used to.  The
infrastructure is already in place for fixing this - it's just a different
call to an existing module known to work.

This is a call for votes to fix this for 5.4 (and back-port to 5.3).


*** /usr2/local/src/cvs/net-snmp/agent/mibgroup/ucd-snmp/lmSensors.c    Tue
Sep26 10:51:52 2006
--- /usr/local/src/net-snmp/agent/mibgroup/ucd-snmp/lmSensors.c Mon Oct 30
16:03:55 2006
***************
*** 590,596 ****
--- 590,605 ----
    process_num_sensor(childh, propname, "AtoDSensorValue", FAN_TYPE, 1);
  }

+
  static int
+ process_newtype_fan(picl_nodehdl_t childh,
+                      char propname[PICL_PROPNAMELEN_MAX])
+ {
+   process_num_sensor(childh, propname, "Speed", FAN_TYPE, 1);
+ }
+
+
+ static int
  process_temperature_sensor(picl_nodehdl_t childh,
                                 char propname[PICL_PROPNAMELEN_MAX])
  {
***************
*** 691,696 ****
--- 700,707 ----

          if (strstr(propclass,"fan-tachometer"))
             process_individual_fan(childh,propname);
+         else if (strstr(propclass,"fan"))
+             process_newtype_fan(childh,propname);
          else if (strstr(propclass,"temperature-sensor"))
              process_temperature_sensor(childh,propname);
          else if (strstr(propclass,"voltage-sensor"))


This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to