Slashdot Mirror


OpenBSD 3.9 Adds Sensor Framework

wbglinks writes to tell us ZDNet is reporting that the newest version of OpenBSD will include a sensor framework to help system administrators keep tabs on the environmental conditions of their servers. From the article: "At present, there are a number of commercial products that allow the environmental conditions of servers to be monitored, but different brands of server require different products. For example, Dell PowerEdge servers use the Embedded Server Management tool, while Sun Fire Servers use Sun's Remote System Control. This can make server management tricky when running a heterogeneous architecture. OpenBSD 3.9, which is scheduled for release on 1 May, includes support for the sensors and the sensor management tools used on a number of architectures."

18 of 85 comments (clear)

  1. sensors and slashdotting by cabinetsoft · · Score: 4, Funny
    De Raadt has already been using the sensor framework to monitor the machines running in the project's server room. "I now get a call on my cell phone whenever something is wrong in the machine room," he said.
    and I bet the temperature warning reads something along the lines of "Link to your site posted on slashdot.org"
  2. Re:Should it be in? by thomasweber · · Score: 2, Informative

    Ehm, in that part of the interview he's talking about "randomised memory allocation", not about sensors.

  3. Re:Should it be in? by Anonymous Coward · · Score: 3, Informative

    If you RTFA, you can see that that quotation was taken out of context. Theo was discussing fully random memory allocation to prevent buffer overflow. As far as I know, sensor monitoring is available quite easily in Linux.

  4. Re:About time by Anonymous Coward · · Score: 5, Insightful
    "Now Linux had this functionality how many years ago?"


    If by "functionality" you mean hodge-podge of barely compatible tools written by some high scool kid in his mum's basement and that fail to actually define a sensible engineered framework, then yes I suppose so. Jesus Tap Dancing Christ, Linux sucks ass.

  5. Which means... by MadMirko · · Score: 3, Insightful

    ... they add support for BMC and IPMI?

    Which, while fine in itself, is hardly a groundbreaking achievment for an OS, or is it? At least Windows has done that for years, and I believe Linux does as well (at least we have a working "sensor" implementation on a few RedHat / HP servers).

  6. Re:Should it be in? by bensch128 · · Score: 3, Informative

    There's lots of niche features which are in the main branch of the kernel.

    NUMA, OMAP, powerPC, and the list goes on and on.

    However, I think it would be VERY cool to be able to query /dev/tempsensor1 for the tempature of my motherboard or CPU. Might even be able to do something useful with it.

    Cheers,
    Ben

  7. Re:Should it be in? by newell98 · · Score: 2, Insightful

    cat /proc/acpi/thermalzone/THRM1/temperature

  8. Re:File cabinets and fires by merdaccia · · Score: 3, Funny

    Remember when you could go back to work on Monday and find a disaster that would take you three weeks of painstaking work to fix because you had no way of knowing a fan died?

    --

    *blinking cursor*

  9. Re:File cabinets and fires by eraserewind · · Score: 4, Funny

    Ah, the good old days!

  10. Welcome to.... by diegocgteleline.es · · Score: 2, Informative

    "There is a significant new sensor framework [in OpenBSD 3.9], which supports voltage sensors, fan sensors, temperature sensors, and so on," said de Raadt. "Such a feature is still missing in Linux and other major operating systems."

    There we go

    1. Re:Welcome to.... by Triumph+The+Insult+C · · Score: 5, Informative

      this sensor framework is integrated into the base install. it is managed and developed by the openbsd developers, not a third party group where changes still have to get imported

      the framework supports a lot of sensors. along with sensorsd(9), it is a large improvement over what has been available for other OSes

      --
      vodka, straight up, thank you!
  11. Re:What about ACPI? by ThePhilips · · Score: 4, Informative

    IIRC Intel's ACPI code was included in Kernel long time ago. It's just ACPI has nothing to do with sensors. (http://acpi.sourceforge.net/)

    Sensors it's LM78 project. But. Not on single Linux instalation I've had luck with sensor installation. )-: Most of the time lm78 reported me nothing - given it found any sensors at all...

    P.S. Overall, due to separate development of kernel and libc, Linux development rarely results in any kind of API or framework. (Well, except the even rarer case when both developers - libc & kernel ones - happen to be employed by Red Hat.)

    --
    All hope abandon ye who enter here.
  12. Re:File cabinets and fires by cabinetsoft · · Score: 2, Interesting
    Remember when you could go home on the weekend and actually enjoy yourself? Sensor management means that you can never be completely away from your cellphone.

    Sensor management or no sensor management it's pretty the same thing... instead of the server dialing / paging you there can be a human dialing / paging you anyway. And of course YOU CAN switch off your cell phone if it's bothering...

    This reminds me of some time back when I used to tech support for a telco logging system. I was out with my friends BBQ-ing in a weekend when I get this strange phone call (all after some beers and stuff):

    Other end: "Hello, there's a mess in here... air conditioning broke up, the heat pipe from the next level is also broken, all the servers room is flooded"

    Me: "Who the fuck are you? Where the fuck are you? And what do I have to do with this mess?"

    Other end: "We're on [Street Name] and [repeats again the whole thing]"

    Me: "And what's on the [Street Name] and what do I have to do with that?"

    Other end: "We're at [Street Name] and like I said [repeats the whole thing again]

    Me (finally realizing the address matches one of my customers): "Ah... [Firm Name]? And who the hell told you to call me? Am I listed by any chance by mistake in the plumbers section of yellow pages? Did anyone make a joke or something?"

    Other end: "Well... I work here and the only contact I could find there or in my contacts list is your phone no... was posted on a sticky on one of the server boxes"

    Turns out that in a fucking really big enterprise... no one knew who to call in case of any kind of emergency or something like that... so the poor guy just took a chance with the first phone no he saw. Not his boss, not a guy working there, but me, a contractor for servicing a particular piece of software running on one of the damn boxes... It doesn't matter how many alarms, logging, notifications one sets up as long as there's not a procedure for dealing with it and people don't know who to call for each of them.

    I'm still wandering what would have happened if I would just say "OK... I know, I'm just entering the building... I'll take care of that, don't bother"

  13. Re:File cabinets and fires by QuietLagoon · · Score: 2, Informative
    Sensor management means that you can never be completely away from your cellphone.

    Sensor management means that you will be aware of problems as they are in the nascent stages of development, before they become a crisis. It provides you the time needed to research and repair, instead of the panicked "fix it now!" when systems stop working.

  14. Mod parent up! by dildo · · Score: 2, Funny
    Seriously. If my job wasn't so boring, I wouldn't give /. any of my time. But for now it serves an important purpose keeping me from going insane due to the tedium.

    I think I may code an AI script that will learn how to have conversations based on the content of slashdot. After the program has digested a few thousand posts it will surely pass the /. Turing test (Can a human distinguish this program from a typical /. poster?)

    I imagine a conversation would run like this:

    Human: "I'm impressed with this new Linux distro. This may actually be an operating system my grandmother can use without any problems!"

    Slashdotbot: "Heh. Your mother should use Debian. If she uses Ubuntu she is going to get p0wn3d."

    Human: "I use BSD personally on my servers, but I don't think my Grandmother has much to worry about on her computer."

    /.Bot: "BSD is dying!"

    Human: "Um... okay... I guess that made a little sense -- if I cross my eyes and think real hard. I wonder what will happen when I say this: I've been running YourMomOS on my laptop and she is humming away beautifully."

    /.Bot: "YourMomOS used to be cool, but now it is filled with bloatware, all of the great developers have left, and it is only a matter of time until she becomes a calcified dinosaur that is no better than what is running on M$ boxen."

    Human: "I think I'm on to you. Hey guy, tell me about your girl."

    /.Bot: "I do not know what a 'girl' is. But I bet it sucks."

    Human: "Wait. Proves nothing. But that response is suspicious. Hey guy, tell me about your 7545121116577545454."

    /.Bot: "I do not know what a '7545121116577545454' is. But I bet it sucks."

    Human: "This is a computer program, but I was nearly fooled. Another thousand posts and it will be absolutely indistinguishable from the average slashdot poster. You merely need to dumb down its grammar, interject more spelling mistakes, and give it more pop culture references (i.e. the mention of the word 'Ballmer' should trigger the 'make_joke_about_chairs()' subroutine) and this AI construct will truly be perfect."

  15. Re:About time by MikeBabcock · · Score: 2, Informative

    Being all-powerful, I'm sure Jesus would be pretty good at tap dancing if he felt like it :-)

    That said, although 'lm_sensors' and such can be a royal pain to manage at a low level when starting out, many higher-level tools exist to manage entire networks of Linux machines and their status data.

    See the related apps page on the rrdtool homepage.

    --
    - Michael T. Babcock (Yes, I blog)
  16. Re:Should it be in? by SigILL · · Score: 2, Informative
    $ uname -srm
    OpenBSD 3.6 i386
    $ sysctl -a hw.sensors
    hw.sensors.0=viaenv0, TSENS1, temp, 24.30 degC / 75.74 degF
    hw.sensors.1=viaenv0, TSENS2, temp, 61.40 degC / 142.52 degF
    hw.sensors.2=viaenv0, TSENS3, temp, 5.10 degC / 41.18 degF
    hw.sensors.3=viaenv0, FAN1, fanrpm, 0 RPM
    hw.sensors.4=viaenv0, FAN2, fanrpm, 0 RPM
    hw.sensors.5=viaenv0, VSENS1, volts_dc, 2.52 V
    hw.sensors.6=viaenv0, VSENS2, volts_dc, 2.43 V
    hw.sensors.7=viaenv0, Vcore, volts_dc, 1.98 V
    hw.sensors.8=viaenv0, VSENS3, volts_dc, 5.47 V
    hw.sensors.9=viaenv0, VSENS4, volts_dc, 12.72 V
    The idea here is that it's all nicely integrated. On more recent OpenBSD releases you can use sensorsd(8) to monitor the hardware through this very same interface. No kernel patching required (and probably not even kernel compiling; GENERIC has most stable stuff enabled already), and no need to figure out which interface to use.

    The new thing with 3.9 is support for more hardware monitoring interfaces, notably IPMI.

    That's on my Epia VE5000 box btw, no need to fret about the 0 RPM fans :)
    --
    Error: password can't contain reverse spelling of ancient Chinese emperor
  17. Not NEW in the slightest... by evilviper · · Score: 2, Insightful

    This "New Sensor Framework" has been in the mainline kernel since 3.5, and working quite well, thank you. I certainly wish other OSes would get this stuff built-in (of course OpenBSD is also lacking a lot of good features that FreeBSD/Linux DO have).

    Setting up lmsensors was an infuriating and disgusting mess on Linux. After an hour of kernel recompliations, and i2c/lmsensors version mis-matches, I just gave-up. I decided to simply parse the output of mbmon (most trivial setup, EVER!).

    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant