SMART monitoring not working in Webmin on Ubuntu

I just added smartmontools to my Ubuntu 6.06 LTS server, fully patched to latest apt updates. Version 5.34 of smartctl is running on the system, along with Webmin 1.360.

smartctl -a /dev/sda (or sdb) is able to get a full readout from both of my Seagate ST373207LC hard disks when executed from the command line, but in Webmin the same disks show "Supports SMART" "Yes" and "SMART Enabled" "No" with no other output.

Here’s a sample of the command-line SMART output from one of the disks:

root@mail:~# smartctl -a /dev/sda smartctl version 5.34 [i686-pc-linux-gnu] Copyright (C) 2002-5 Bruce Allen Home page is http://smartmontools.sourceforge.net/

Device: SEAGATE ST373207LC Version: 0005
Serial number: 3KT5JSN200009712Q8KL
Device type: disk
Transport protocol: Parallel SCSI (SPI-4)
Local Time is: Tue Sep 11 11:06:25 2007 PDT
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK

Current Drive Temperature: 35 C
Drive Trip Temperature: 68 C
Elements in grown defect list: 0
Vendor (Seagate) cache information
Blocks sent to initiator = 3941069591
Blocks received from initiator = 2256999821
Blocks read from cache and sent to initiator = 19105135
Number of read and write commands whose size <= segment size = 47847976
Number of read and write commands whose size > segment size = 216324

Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrec
ted
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 24384 0 0 24384 24384 191.098 0
write: 0 0 0 0 0 154.984 0

Non-medium error count: 0

[GLTSD (Global Logging Target Save Disable) set. Enable Save with ‘-S on’]
No self-tests have been logged
Long (extended) Self Test duration: 1405 seconds [23.4 minutes]


So obviously SMART is working, but it’s not talking successfully to Webmin. Can anyone point me to the way to fix this?

Thanks

Dan

Hey Dan,

Two choices:

  1. Dig into the code and figure out why Webmin isn’t parsing the output correctly.

  2. File a bug and let Jamie figure it out.

I vote for #2. :wink:

Hey Dan,

No, blessings are not required to file bugs. But good browsers are. :wink:

Our bug tracker, for some reason beyond my ken, kicks out IE users immediately ( if you must use IE, you can hit it unbridged at http://www.virtualmin.com/bugs – but make sure you use your normal Virtualmin.com user account…if you create a new one in Flyspray natively it’ll be overwritten the next time someone joins Virtualmin.com). Firefox and the other reasonably modern browsers seem to work OK. When logged in you should see a “Add new task” link in the blue menu box at the top of the tracker. Any registered user should have bug creation privileges.

Let me know if this isn’t the case, for you, and I’ll see if I can track down why.

Weird. I’m looking into it.

By the way, some other weird sh#$ going on as the preview button on this page opens another popup box with nothing but a “Close Window” link and a progress bar, tho I’m able to submit directly w/o problems. Does this site rely on something other than a browser? Specific Java version, maybe?

Yeah, I know. Preview is stupid because it tries to be smart and use the background color of the page (and I’ve yet to figure out how to make it not do that)…the background color of our pages is dark grey which makes preview practically unusable.

Me and Joomla fight daily. There are a few fixes coming in the next few days as I merge changes from our development server down to www.

OK, so weirder still, your bug tracker account looks fine–it’s the same as everybody elses. What happens if you force a reload of the page in Firefox? (Hold “shift” while clicking the reload button.)

It reloads looking exactly like it did the last time.

BTW just for giggles I fired up my laptop which is also XP but uses a different java version, which has made a difference on some other sites. No change.

I don’t have a Linux machine handy to browse in so I can’t check that unfortunately.

Alright. Found the problem. Try again.

Yup. That did it. Thanks Joe!

OK, I have opened bug FS#3216 for this topic. We’ll see what happens.

Thanks again.

D

Jamie jumped right on this; apparently there is a fix due to different output for SCSI vs. IDE drives, and that fix will be available, he says, in 1.3.7

What he didn’t say, and what I don’t see on the website, is an estimated timetable for the release of 1.3.7, or whether there is a patch that is easily loadable between now and then (I assume the latter answer is “no”).

Any clues?

1.370 is coming very soon. You won’t have to wait long. A few days, tops.

Excellent!

I must say you guys are responsive on the forum. Nice to know there are people who actually pay attention to stuff like this!

BTW I’ll also say that I really like the visual changes you guys made starting with 1.350. It’s a much cleaner interface visually, far more professional and easy to navigate. Keep up the excellent work!

We try. We’re just two guys, but we’re pretty good at what we do. (Not due to any particular brilliance on my part…I’ve just been doing Webmin and sysadmin stuff for ten years…it sinks in after a while.) :wink:

And thanks for the kind words on the new theme. I’m happy to say I can take quite a lot of the credit for the new look and feel of Webmin and Virtualmin (I usually have to defer all compliments to Jamie, since he does all the heavy lifting, but I’m pretty sure he’s color-blind…or maybe completely blind…based on the look of standard Webmin over the years). Anyway, there’s a lot more to come in the future…Webmin and Virtualmin and Usermin are getting UI work on a daily basis.

OK, I’m probably missing something obvious here, but how the heck to I file a bug? I only find search and read capabilities on the bug tracker, even when I’m logged into the site. Do you have to get special blessing from the bug gods to have the right to file one? Or is there any way to kick this thread into the bugzilla?

Oh, and (1) above is completely over my head, so it’s either (2) or I’m stuck with command-line only! ;{)

Thanks, Joe!<br><br>Post edited by: dwmtractor, at: 2007/09/12 05:52

OK, I’m probably missing something obvious here, but how the heck to I file a bug? I only find search and read capabilities on the bug tracker, even when I’m logged into the site. Do you have to get special blessing from the bug gods to have the right to file one? Or is there any way to kick this thread into the bugzilla?

Oh, and (1) above is completely over my head, so it’s either (2) or I’m stuck with command-line only! ;{)

Thanks, Joe!<br><br>Post edited by: dwmtractor, at: 2007/09/12 05:52

Nope. Firefox 2.0.0.6 on XP, see attached screencap. No "Add Task" option. Tried it in IE6 also, but that was a SECOND choice for me! ;{)

Nope. Firefox 2.0.0.6 on XP, see attached screencap. No "Add Task" option. Tried it in IE6 also, but that was a SECOND choice for me! ;{)