SourceForge has been redesigned. Learn more.
Close

S.M.A.R.T. No data available in table

Help
2011-03-01
2012-12-12
  • Tinkergnome

    Tinkergnome - 2011-03-01

    I have phpSysInfo - 3.0.10 installed on Gentoo 1.12.14 running kernel 2.6.36.r5 with apache 2.2.16 and php 5.3.5 i have edited the information needed in the SMART.config.php file and when i xml.php i show no errors or any reference to the smart plugin and  my SMART are is blank with No Data avilable in table i have tried to point to data instead of command but there is no change in on status i also removed all SMART*.txt files from the data directory i still have no errors or any thing showing in the xml and i still get the No data available in table

     
  • Tinkergnome

    Tinkergnome - 2011-03-01

    not sure what exactly MP is but i will post the code below

    xml.php

    <tns:phpsysinfo xsi:schemaLocation="http://phpsysinfo.sourceforge.net/phpsysinfo3.xsd">
    <Generation version="3.0.10" timestamp="1298960007"/>
    <Options tempFormat="c" byteFormat="auto_binary" refresh="60000" showPickListTemplate="true" showPickListLang="true"/>
    <UsedPlugins/>
    <Vitals Hostname="Anubis.WORKGROUP" IPAddr="192.168.0.215" Kernel="2.6.36-gentoo-r5 (SMP) i686" Distro="Gentoo Base System release 1.12.14" Distroicon="Gentoo.png" Uptime="17896.84" Users="2" LoadAvg="1.32 1.18 1.57"/>
    
    <Network>
    <NetDevice Name="lo" RxBytes="39056" TxBytes="39056" Err="0" Drops="0"/>
    <NetDevice Name="eth0" RxBytes="0" TxBytes="0" Err="0" Drops="0"/>
    <NetDevice Name="eth1" RxBytes="0" TxBytes="0" Err="0" Drops="0"/>
    <NetDevice Name="eth2" RxBytes="330165551" TxBytes="54785012" Err="0" Drops="0"/>
    </Network>
    
    <Hardware>
    
    <PCI>
    <Device Name="Host bridge: Intel Corporation 5000X Chipset Memory Controller Hub" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 2" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000X Chipset PCI Express x16 Port 4-7" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 6" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7" Count="1"/>
    <Device Name="Host bridge: Intel Corporation 5000 Series Chipset FSB Registers" Count="3"/>
    <Device Name="Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers" Count="2"/>
    <Device Name="Host bridge: Intel Corporation 5000 Series Chipset FBD Registers" Count="2"/>
    <Device Name="PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 82801 PCI Bridge" Count="1"/>
    <Device Name="ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller" Count="1"/>
    <Device Name="IDE interface: Intel Corporation 631xESB/632xESB IDE Controller" Count="1"/>
    <Device Name="SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller" Count="1"/>
    <Device Name="SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2" Count="1"/>
    <Device Name="Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller" Count="2"/>
    <Device Name="RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller" Count="1"/>
    <Device Name="VGA compatible controller: ATI Technologies Inc RV530 [Radeon X1600]" Count="1"/>
    <Device Name="Display controller: ATI Technologies Inc RV530 [Radeon X1600]" Count="1"/>
    <Device Name="Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express" Count="1"/>
    </PCI>
    
    <USB>
    <Device Name="Linux 2.6.36-gentoo-r5 uhci_hcd UHCI Host Controller" Count="4"/>
    <Device Name="CHICONY USB NetVista Full Width Keyboard" Count="1"/>
    <Device Name="Linux 2.6.36-gentoo-r5 ehci_hcd EHCI Host Controller" Count="1"/>
    <Device Name="USB DISK 2.0" Count="1"/>
    <Device Name="SKYMEDI USB Drive" Count="1"/>
    </USB>
    <IDE/>
    
    <SCSI>
    <Device Name="ATA      ST96812AS        (Direct-Access)" Count="1"/>
    <Device Name="ATA      ST32000542AS     (Direct-Access)" Count="3"/>
    <Device Name="USB      DISK 2.0         (Direct-Access)" Count="1"/>
    <Device Name="SKYMEDI  USB Drive        (Direct-Access)" Count="1"/>
    </SCSI>
    
    <CPU>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5984.34"/>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5985.21"/>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5985.21"/>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5985.21"/>
    </CPU>
    </Hardware>
    
    <Memory Free="889769984" Used="1232519168" Total="2122289152" Percent="59">
    <Details App="145326080" AppPercent="7" Buffers="228032512" BuffersPercent="11" Cached="859160576" CachedPercent="41"/>
    
    <Swap Free="4301815808" Used="0" Total="4301815808" Percent="0">
    <Mount MountPointID="1" FSType="" Name="SWAP" Free="4301815808" Used="0" Total="4301815808" Percent="0" MountPoint="/dev/sda2"/>
    </Swap>
    </Memory>
    
    <FileSystem>
    <Mount MountPointID="1" FSType="ext4" Name="/dev/sda3" Free="48070000640" Used="3941277696" Total="54794711040" Percent="8" MountOptions="rw,noatime" Inodes="13" MountPoint="/"/>
    <Mount MountPointID="2" FSType="ext2" Name="/dev/sda1" Free="28810240" Used="8924160" Total="39788544" Percent="23" MountOptions="rw,noatime" Inodes="2" MountPoint="/boot"/>
    <Mount MountPointID="3" FSType="vfat" Name="/dev/sdf1" Free="1873674240" Used="247922688" Total="2121596928" Percent="12" MountOptions="rw" MountPoint="/mnt/usb"/>
    <Mount MountPointID="4" FSType="ext4" Name="/dev/md0" Free="1974645714944" Used="1763325583360" Total="3938010800128" Percent="45" MountOptions="rw" Inodes="1" MountPoint="/storage"/>
    <Mount MountPointID="5" FSType="iso9660" Name="/dev/loop0" Free="0" Used="517844992" Total="517844992" Percent="100" MountOptions="ro" MountPoint="/mnt/office"/>
    <Mount MountPointID="6" FSType="iso9660" Name="/dev/loop1" Free="0" Used="3553875968" Total="3553875968" Percent="100" MountOptions="ro" MountPoint="/mnt/cs3"/>
    <Mount MountPointID="7" FSType="udf" Name="/dev/loop2" Free="0" Used="6930128896" Total="6930128896" Percent="100" MountOptions="ro" Inodes="100" MountPoint="/mnt/cs5"/>
    <Mount MountPointID="8" FSType="iso9660" Name="/dev/loop3" Free="0" Used="4224444416" Total="4224444416" Percent="100" MountOptions="ro" MountPoint="/mnt/poser"/>
    <Mount MountPointID="9" FSType="udf" Name="/dev/loop4" Free="0" Used="1616789504" Total="1616789504" Percent="100" MountOptions="ro" Inodes="100" MountPoint="/mnt/office_2k10"/>
    </FileSystem>
    
    <MBInfo>
    
    <Temperature>
    <Item Label="/dev/sda (ST96812AS)" Value="22" Max="60"/>
    <Item Label="/dev/sdb (ST32000542AS)" Value="34" Max="60"/>
    <Item Label="/dev/sdc (ST32000542AS)" Value="33" Max="60"/>
    <Item Label="/dev/sdd (ST32000542AS)" Value="33" Max="60"/>
    </Temperature>
    </MBInfo>
    <UPSInfo/>
    <Plugins/>
    <Errors/>
    </tns:phpsysinfo>
    

    xml.php?plugin=SMART

    <tns:phpsysinfo xsi:schemaLocation="http://phpsysinfo.sourceforge.net/phpsysinfo3.xsd">
    <Generation version="3.0.10" timestamp="1298959906"/>
    <Options tempFormat="c" byteFormat="auto_binary" refresh="60000" showPickListTemplate="true" showPickListLang="true"/><UsedPlugins>
    <Plugin name="SMART"/>
    </UsedPlugins><Plugins>
    <Plugin_SMART/>
    </Plugins>
    <Errors/>
    </tns:phpsysinfo>
    
     
  • Mieczysław Nalewaj

    Turn od debugging in config.php:
    define('PSI_DEBUG', false);
    and test again.

    Execute command (if  /dev/sda is your hard disk )
    smartctl -all /dev/sda

     
  • Mieczysław Nalewaj

    Correction:

    Turn on debugging in config.php:
    define('PSI_DEBUG', true);
    and test again.
    Execute command (if /dev/sda is your hard disk ):
    smartctl -all /dev/sda

     
  • Tinkergnome

    Tinkergnome - 2011-03-01

    ok turned on debugging results follow

    xml.php

    <tns:phpsysinfo xsi:schemaLocation="http://phpsysinfo.sourceforge.net/phpsysinfo3.xsd">
    <Generation version="3.0.10" timestamp="1298984933"/>
    <Options tempFormat="c" byteFormat="auto_binary" refresh="60000" showPickListTemplate="true" showPickListLang="true"/>
    <UsedPlugins/>
    <Vitals Hostname="Anubis.WORKGROUP" IPAddr="192.168.0.215" Kernel="2.6.36-gentoo-r5 (SMP) i686" Distro="Gentoo Base System release 1.12.14" Distroicon="Gentoo.png" Uptime="42823.55" Users="2" LoadAvg="0.17 0.17 0.06"/>
    
    <Network>
    <NetDevice Name="lo" RxBytes="57680" TxBytes="57680" Err="0" Drops="0"/>
    <NetDevice Name="eth0" RxBytes="0" TxBytes="0" Err="0" Drops="0"/>
    <NetDevice Name="eth1" RxBytes="0" TxBytes="0" Err="0" Drops="0"/>
    <NetDevice Name="eth2" RxBytes="333947018" TxBytes="59847299" Err="0" Drops="0"/>
    </Network>
    
    <Hardware>
    
    <PCI>
    <Device Name="Host bridge: Intel Corporation 5000X Chipset Memory Controller Hub" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 2" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000X Chipset PCI Express x16 Port 4-7" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 6" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7" Count="1"/>
    <Device Name="Host bridge: Intel Corporation 5000 Series Chipset FSB Registers" Count="3"/>
    <Device Name="Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers" Count="2"/>
    <Device Name="Host bridge: Intel Corporation 5000 Series Chipset FBD Registers" Count="2"/>
    <Device Name="PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4" Count="1"/>
    <Device Name="USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 82801 PCI Bridge" Count="1"/>
    <Device Name="ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller" Count="1"/>
    <Device Name="IDE interface: Intel Corporation 631xESB/632xESB IDE Controller" Count="1"/>
    <Device Name="SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller" Count="1"/>
    <Device Name="SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1" Count="1"/>
    <Device Name="PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2" Count="1"/>
    <Device Name="Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller" Count="2"/>
    <Device Name="RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller" Count="1"/>
    <Device Name="VGA compatible controller: ATI Technologies Inc RV530 [Radeon X1600]" Count="1"/>
    <Device Name="Display controller: ATI Technologies Inc RV530 [Radeon X1600]" Count="1"/>
    <Device Name="Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express" Count="1"/>
    </PCI>
    
    <USB>
    <Device Name="Linux Foundation 1.1 root hub" Count="4"/>
    <Device Name="CompUSA 128M Pen Drive" Count="1"/>
    <Device Name="CompUSA" Count="1"/>
    <Device Name="Linux Foundation 2.0 root hub" Count="1"/>
    <Device Name="IBM Corp." Count="1"/>
    </USB>
    <IDE/>
    
    <SCSI>
    <Device Name="ATA      ST96812AS        (Direct-Access)" Count="1"/>
    <Device Name="ATA      ST32000542AS     (Direct-Access)" Count="3"/>
    <Device Name="USB      DISK 2.0         (Direct-Access)" Count="1"/>
    <Device Name="SKYMEDI  USB Drive        (Direct-Access)" Count="1"/>
    </SCSI>
    
    <CPU>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5984.34"/>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5985.21"/>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5985.21"/>
    <CpuCore Model="Intel(R) Xeon(R) CPU            5160  @ 3.00GHz" CpuSpeed="2992.171" Cache="4194304" Virt="vmx" Bogomips="5985.21"/>
    </CPU>
    </Hardware>
    
    <Memory Free="834387968" Used="1287901184" Total="2122289152" Percent="61">
    <Details App="151994368" AppPercent="8" Buffers="241938432" BuffersPercent="12" Cached="893968384" CachedPercent="43"/>
    
    <Swap Free="4301815808" Used="0" Total="4301815808" Percent="0">
    <Mount MountPointID="1" FSType="" Name="SWAP" Free="4301815808" Used="0" Total="4301815808" Percent="0" MountPoint="/dev/sda2"/>
    </Swap>
    </Memory>
    
    <FileSystem>
    <Mount MountPointID="1" FSType="ext4" Name="/dev/sda3" Free="48057835520" Used="3953442816" Total="54794711040" Percent="8" MountOptions="rw,noatime" Inodes="13" MountPoint="/"/>
    <Mount MountPointID="2" FSType="ext2" Name="/dev/sda1" Free="28810240" Used="8924160" Total="39788544" Percent="23" MountOptions="rw,noatime" Inodes="2" MountPoint="/boot"/>
    <Mount MountPointID="3" FSType="vfat" Name="/dev/sdf1" Free="1873674240" Used="247922688" Total="2121596928" Percent="12" MountOptions="rw" MountPoint="/mnt/usb"/>
    <Mount MountPointID="4" FSType="ext4" Name="/dev/md0" Free="1974645714944" Used="1763325583360" Total="3938010800128" Percent="45" MountOptions="rw" Inodes="1" MountPoint="/storage"/>
    <Mount MountPointID="5" FSType="iso9660" Name="/dev/loop0" Free="0" Used="517844992" Total="517844992" Percent="100" MountOptions="ro" MountPoint="/mnt/office"/>
    <Mount MountPointID="6" FSType="iso9660" Name="/dev/loop1" Free="0" Used="3553875968" Total="3553875968" Percent="100" MountOptions="ro" MountPoint="/mnt/cs3"/>
    <Mount MountPointID="7" FSType="udf" Name="/dev/loop2" Free="0" Used="6930128896" Total="6930128896" Percent="100" MountOptions="ro" Inodes="100" MountPoint="/mnt/cs5"/>
    <Mount MountPointID="8" FSType="iso9660" Name="/dev/loop3" Free="0" Used="4224444416" Total="4224444416" Percent="100" MountOptions="ro" MountPoint="/mnt/poser"/>
    <Mount MountPointID="9" FSType="udf" Name="/dev/loop4" Free="0" Used="1616789504" Total="1616789504" Percent="100" MountOptions="ro" Inodes="100" MountPoint="/mnt/office_2k10"/>
    </FileSystem>
    
    <MBInfo>
    
    <Temperature>
    <Item Label="/dev/sda (ST96812AS)" Value="22" Max="60"/>
    <Item Label="/dev/sdb (ST32000542AS)" Value="31" Max="60"/>
    <Item Label="/dev/sdc (ST32000542AS)" Value="31" Max="60"/>
    <Item Label="/dev/sdd (ST32000542AS)" Value="31" Max="60"/>
    </Temperature>
    </MBInfo>
    <UPSInfo/>
    <Plugins/>
    <Errors/>
    </tns:phpsysinfo>
    

    xml.php?plugin=SMART

    <tns:phpsysinfo xsi:schemaLocation="http://phpsysinfo.sourceforge.net/phpsysinfo3.xsd">
    <Generation version="3.0.10" timestamp="1298984996"/>
    <Options tempFormat="c" byteFormat="auto_binary" refresh="60000" showPickListTemplate="true" showPickListLang="true"/><UsedPlugins>
    <Plugin name="SMART"/>
    </UsedPlugins><Plugins>
    <Plugin_SMART/>
    </Plugins>
    <Errors/>
    </tns:phpsysinfo>
    

    smartctl -all /dev/sda

    smartctl 5.40 2010-10-16 r3189 [i686-pc-linux-gnu] (local build)
    Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
    === START OF INFORMATION SECTION ===
    Model Family:     Seagate Momentus 5400.2 series
    Device Model:     ST96812AS
    Serial Number:    5PJ9EZKB
    Firmware Version: 3.14
    User Capacity:    60,011,642,880 bytes
    Device is:        In smartctl database [for details use: -P show]
    ATA Version is:   7
    ATA Standard is:  Exact ATA specification draft version not indicated
    Local Time is:    Tue Mar  1 07:13:41 2011 CST
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    General SMART Values:
    Offline data collection status:  (0x82) Offline data collection activity
                                            was completed without error.
                                            Auto Offline Data Collection: Enabled.
    Self-test execution status:      (   0) The previous self-test routine completed
                                            without error or no self-test has ever
                                            been run.
    Total time to complete Offline
    data collection:                 ( 426) seconds.
    Offline data collection
    capabilities:                    (0x5b) SMART execute Offline immediate.
                                            Auto Offline data collection on/off support.
                                            Suspend Offline collection upon new
                                            command.
                                            Offline surface scan supported.
                                            Self-test supported.
                                            No Conveyance Self-test supported.
                                            Selective Self-test supported.
    SMART capabilities:            (0x0003) Saves SMART data before entering
                                            power-saving mode.
                                            Supports SMART auto save timer.
    Error logging capability:        (0x01) Error logging supported.
                                            No General Purpose Logging support.
    Short self-test routine
    recommended polling time:        (   1) minutes.
    Extended self-test routine
    recommended polling time:        (  84) minutes.
    SCT capabilities:              (0x0001) SCT Status supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x000f   117   094   006    Pre-fail  Always       -       119175586
      3 Spin_Up_Time            0x0003   097   096   000    Pre-fail  Always       -       0
      4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       818
      5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x000f   070   060   030    Pre-fail  Always       -       10536567
      9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1139
     10 Spin_Retry_Count        0x0013   100   100   034    Pre-fail  Always       -       0
     12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       924
    187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
    189 High_Fly_Writes         0x003a   098   098   000    Old_age   Always       -       2
    190 Airflow_Temperature_Cel 0x0022   078   047   045    Old_age   Always       -       22 (Min/Max 21/25)
    192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       279
    193 Load_Cycle_Count        0x0032   071   071   000    Old_age   Always       -       58082
    194 Temperature_Celsius     0x0022   022   053   000    Old_age   Always       -       22 (0 15 0 0)
    195 Hardware_ECC_Recovered  0x001a   066   048   000    Old_age   Always       -       236147026
    197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
    200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
    202 Data_Address_Mark_Errs  0x0032   100   253   000    Old_age   Always       -       0
    SMART Error Log Version: 1
    No Errors Logged
    SMART Self-test log structure revision number 1
    Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
    # 1  Conveyance offline  Completed without error       00%      1127         -
    # 2  Short captive       Completed without error       00%       918         -
    SMART Selective self-test log data structure revision number 1
     SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
        1        0        0  Not_testing
        2        0        0  Not_testing
        3        0        0  Not_testing
        4        0        0  Not_testing
        5        0        0  Not_testing
    Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    
     
  • Mieczysław Nalewaj

    Execute:
    chmod 4755 /usr/sbin/smartctl
    and try again.

     
  • Tinkergnome

    Tinkergnome - 2011-03-02

    did chmod 4755 /usr/sbin/smartctl

    ls -l output

    -rwsr-xr-x 1 root root 322668 Feb 28 19:42 /usr/sbin/smartctl
    

    still no change

     
  • Mieczysław Nalewaj

    Check Your log files for errors ( /var/log/httpd/error_log  /var/log/apache2/error.log etc).

     
  • Fabio Leitão

    Fabio Leitão - 2011-05-03

    I also do not get SMART information on my php, on both 3.0.7 and 3.0.11, running on kernel 2.6.38 x86_64 Ubuntu 11.04, no error messages related to phpsysinfo (a few missing favicons, and thats it). But also, no mb (temp, voltage, etc) info and no mounted filesystem (df, etc) info.

     
  • Ziggy114

    Ziggy114 - 2011-08-16

    similar problem here - SMART plugin works fine with two of my hdds, but when I enable the third (/dev/sdc which is an older drive), something breaks and I get 'no data available in table'.

    I just updated phpsysinfo to 3.0.13. As I said, the data shows up fine if the only drives I include are /dev/sda and /dev/sdb, and xml.php?plugin=SMART comes out looking normal. However if I enable /dev/sdc, the SMART section in index.php says 'no data available in table', and xml.php?plugin=SMART triggers a download of xml.php. Enabling or disabling debugging has no effect. Any help's appreciated, here's the stuff that should be helpful:

    root@tuxbox:~# ls -la /usr/sbin/ | grep smartctl

    -rwsr-xr-x  1 root root   350512 Dec 26  2010 smartctl
    

    root@tuxbox:~# cat /var/www/phpsysinfo/plugins/SMART/SMART.config.php

    <?php
    /**
     * SMART Plugin Config File
     *
     * PHP version 5
     *
     * @category  PHP
     * @package   PSI_Plugin_SMART
     * @author    Antoine Bertin <diaoulael@users.sourceforge.net>
     * @copyright 2009 phpSysInfo
     * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License
     * @version   SVN: $Id: SMART.config.php 361 2010-01-31 11:32:30Z jacky672 $
     * @link      http://phpsysinfo.sourceforge.net
     */
    /**
     * Smartctl program
     * If the smartctl program is available we can read S.M.A.R.T informations
     * - 'command' smartctl command is run everytime the block gets refreshed or build
     *  if error: Smartctl open device: /dev/sda failed: Permission denied
     *      Not recommended method:
     *          -execute: chmod 4755 /usr/sbin/smartctl
     * - 'data' (a file must be available in the data directory of the
     * phpsysinfo installation with the filename "SMART{disk_number}.txt";
     * content is the output from "smartctl --all device")
     */
    define('PSI_PLUGIN_SMART_ACCESS', 'command');
    /**
     * Smartctl devices to monitor
     * If the smartctl support is enabled, those disks information will be displayed
     * - define('PSI_PLUGIN_SMART_DEVICES', '/dev/hda,/dev/hdb');  // Will display those two disks informations
     */
    define('PSI_PLUGIN_SMART_DEVICES', '/dev/sda, /dev/sdb');
    /**
     * Smartctl --device option value
     * If the smartctl support is enabled, enter the --device option value for smartctl command
     * - define('PSI_PLUGIN_SMART_DEVICE', false);  // If this option is not needed
     * - define('PSI_PLUGIN_SMART_DEVICE', 'marvell');  // If marvell
     */
    define('PSI_PLUGIN_SMART_DEVICE', false);
    /**
     * Smartctl ID# and column name from "Vendor Specific SMART Attributes with Thresholds" table
     * If the smartctl support is enabled, enter the ID#-COLUMN_NAME from "Vendor Specific SMART Attributes with Thresholds" table from smartctl output.
     * COLUMN_NAME of this ID# will be displayed in the phpsysinfo S.M.A.R.T table. If you want RAW_VALUE to be displayed for the temperature (ID# 194) enter 194-RAW_VALUE
     * - define('PSI_PLUGIN_SMART_IDS', '194-VALUE,4-VALUE,009-RAW_VALUE'); // ID#-COLUMN_NAME, ID#-COLUMN_NAME, etc...
     */
    define('PSI_PLUGIN_SMART_IDS', '12-RAW_VALUE,4-RAW_VALUE,9-RAW_VALUE,194-RAW_VALUE,1-RAW_VALUE,7-RAW_VALUE,5-RAW_VALUE');
    ?>
    

    root@tuxbox:~# smartctl -a /dev/sda

    smartctl 5.40 2010-07-12 r3124 [x86_64-unknown-linux-gnu] (local build)
    Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
    === START OF INFORMATION SECTION ===
    Device Model:     ST2000DL003-9VT166
    Serial Number:    5YD13GCN
    Firmware Version: CC32
    User Capacity:    2,000,398,934,016 bytes
    Device is:        Not in smartctl database [for details use: -P showall]
    ATA Version is:   8
    ATA Standard is:  ATA-8-ACS revision 4
    Local Time is:    Mon Aug 15 23:23:32 2011 PDT
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    General SMART Values:
    Offline data collection status:  (0x82) Offline data collection activity
                        was completed without error.
                        Auto Offline Data Collection: Enabled.
    Self-test execution status:      (   0) The previous self-test routine completed
                        without error or no self-test has ever 
                        been run.
    Total time to complete Offline 
    data collection:         ( 623) seconds.
    Offline data collection
    capabilities:            (0x7b) SMART execute Offline immediate.
                        Auto Offline data collection on/off support.
                        Suspend Offline collection upon new
                        command.
                        Offline surface scan supported.
                        Self-test supported.
                        Conveyance Self-test supported.
                        Selective Self-test supported.
    SMART capabilities:            (0x0003) Saves SMART data before entering
                        power-saving mode.
                        Supports SMART auto save timer.
    Error logging capability:        (0x01) Error logging supported.
                        General Purpose Logging supported.
    Short self-test routine 
    recommended polling time:    (   1) minutes.
    Extended self-test routine
    recommended polling time:    ( 255) minutes.
    Conveyance self-test routine
    recommended polling time:    (   2) minutes.
    SCT capabilities:          (0x30b7) SCT Status supported.
                        SCT Feature Control supported.
                        SCT Data Table supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x000f   119   099   006    Pre-fail  Always       -       215325688
      3 Spin_Up_Time            0x0003   092   092   000    Pre-fail  Always       -       0
      4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       44
      5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x000f   064   060   030    Pre-fail  Always       -       3087618
      9 Power_On_Hours          0x0032   097   097   000    Old_age   Always       -       2683
     10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
     12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       44
    183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
    184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
    187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
    188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
    189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
    190 Airflow_Temperature_Cel 0x0022   073   070   045    Old_age   Always       -       27 (Lifetime Min/Max 23/30)
    191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
    192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       31
    193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       44
    194 Temperature_Celsius     0x0022   027   040   000    Old_age   Always       -       27 (0 17 0 0)
    195 Hardware_ECC_Recovered  0x001a   023   006   000    Old_age   Always       -       215325688
    197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
    240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       211273736260220
    241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       1512670396
    242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       3342958049
    SMART Error Log Version: 1
    No Errors Logged
    SMART Self-test log structure revision number 1
    Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
    # 1  Short offline       Completed without error       00%      2645         -
    # 2  Short offline       Completed without error       00%      2333         -
    # 3  Extended offline    Completed without error       00%      2220         -
    # 4  Short offline       Completed without error       00%      2069         -
    # 5  Short offline       Completed without error       00%      1901         -
    # 6  Short offline       Completed without error       00%      1589         -
    # 7  Extended offline    Completed without error       00%      1500         -
    # 8  Short offline       Completed without error       00%      1349         -
    # 9  Short offline       Completed without error       00%      1181         -
    #10  Short offline       Completed without error       00%       965         -
    #11  Short offline       Completed without error       00%       941         -
    #12  Short offline       Completed without error       00%       917         -
    #13  Short offline       Completed without error       00%       893         -
    #14  Short offline       Completed without error       00%       869         -
    #15  Short offline       Completed without error       00%       845         -
    #16  Short offline       Completed without error       00%       614         -
    #17  Short offline       Completed without error       00%       446         -
    #18  Short offline       Completed without error       00%       284         -
    #19  Extended offline    Completed without error       00%       163         -
    #20  Short offline       Completed without error       00%       157         -
    #21  Short offline       Completed without error       00%       133         -
    SMART Selective self-test log data structure revision number 1
     SPAN  MIN_LBA     MAX_LBA  CURRENT_TEST_STATUS
        1        0  3907029167  Not_testing
        2        0           0  Not_testing
        3        0           0  Not_testing
        4        0           0  Not_testing
        5        0           0  Not_testing
    Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    

    root@tuxbox:~# smartctl -a /dev/sdc

    smartctl 5.40 2010-07-12 r3124 [x86_64-unknown-linux-gnu] (local build)
    Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
    === START OF INFORMATION SECTION ===
    Model Family:     Seagate Barracuda 7200.8 family
    Device Model:     ST3250823AS
    Serial Number:    5ND0BLYX
    Firmware Version: 3.03
    User Capacity:    250,059,350,016 bytes
    Device is:        In smartctl database [for details use: -P show]
    ATA Version is:   7
    ATA Standard is:  Exact ATA specification draft version not indicated
    Local Time is:    Mon Aug 15 23:24:18 2011 PDT
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    General SMART Values:
    Offline data collection status:  (0x82) Offline data collection activity
                        was completed without error.
                        Auto Offline Data Collection: Enabled.
    Self-test execution status:      (   0) The previous self-test routine completed
                        without error or no self-test has ever 
                        been run.
    Total time to complete Offline 
    data collection:         ( 430) seconds.
    Offline data collection
    capabilities:            (0x5b) SMART execute Offline immediate.
                        Auto Offline data collection on/off support.
                        Suspend Offline collection upon new
                        command.
                        Offline surface scan supported.
                        Self-test supported.
                        No Conveyance Self-test supported.
                        Selective Self-test supported.
    SMART capabilities:            (0x0003) Saves SMART data before entering
                        power-saving mode.
                        Supports SMART auto save timer.
    Error logging capability:        (0x01) Error logging supported.
                        General Purpose Logging supported.
    Short self-test routine 
    recommended polling time:    (   1) minutes.
    Extended self-test routine
    recommended polling time:    (  84) minutes.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x000f   050   045   006    Pre-fail  Always       -       102101062
      3 Spin_Up_Time            0x0003   098   098   000    Pre-fail  Always       -       0
      4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       295
      5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x000f   088   060   030    Pre-fail  Always       -       776095417
      9 Power_On_Hours          0x0032   087   087   000    Old_age   Always       -       11823
     10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
     12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       320
    194 Temperature_Celsius     0x0022   026   051   000    Old_age   Always       -       26 (0 15 0 0)
    195 Hardware_ECC_Recovered  0x001a   050   045   000    Old_age   Always       -       102101062
    197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
    200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
    202 Data_Address_Mark_Errs  0x0032   100   253   000    Old_age   Always       -       0
    SMART Error Log Version: 1
    ATA Error Count: 11 (device log contains only the most recent five errors)
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
    Powered_Up_Time is measured from power on, and printed as
    DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
    SS=sec, and sss=millisec. It "wraps" after 49.710 days.
    Error 11 occurred at disk power-on lifetime: 8361 hours (348 days + 9 hours)
      When the command that caused the error occurred, the device was active or idle.
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      40 51 00 06 39 54 e0  Error: UNC at LBA = 0x00543906 = 5519622
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      25 00 01 06 39 54 e0 00      00:01:28.896  READ DMA EXT
      25 00 01 86 38 54 e0 00      00:01:28.876  READ DMA EXT
      25 00 08 0e 39 54 e0 00      00:01:25.194  READ DMA EXT
      25 00 08 06 39 54 e0 00      00:01:25.193  READ DMA EXT
      25 00 08 8e 38 54 e0 00      00:01:25.193  READ DMA EXT
    Error 10 occurred at disk power-on lifetime: 8361 hours (348 days + 9 hours)
      When the command that caused the error occurred, the device was active or idle.
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      40 51 00 06 39 54 e0  Error: UNC at LBA = 0x00543906 = 5519622
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      25 00 08 06 39 54 e0 00      00:01:28.896  READ DMA EXT
      25 00 08 8e 38 54 e0 00      00:01:28.876  READ DMA EXT
      25 00 08 86 38 54 e0 00      00:01:25.194  READ DMA EXT
      35 00 01 85 38 54 e0 00      00:01:25.193  WRITE DMA EXT
      25 00 01 05 39 54 e0 00      00:01:25.193  READ DMA EXT
    Error 9 occurred at disk power-on lifetime: 8361 hours (348 days + 9 hours)
      When the command that caused the error occurred, the device was active or idle.
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      40 51 01 06 39 54 e0  Error: UNC 1 sectors at LBA = 0x00543906 = 5519622
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      25 00 08 05 39 54 e0 00      00:01:21.453  READ DMA EXT
      25 00 08 8d 38 54 e0 00      00:01:17.762  READ DMA EXT
      25 00 08 85 38 54 e0 00      00:01:25.194  READ DMA EXT
      35 00 01 84 38 54 e0 00      00:01:25.193  WRITE DMA EXT
      25 00 01 04 39 54 e0 00      00:01:25.193  READ DMA EXT
    Error 8 occurred at disk power-on lifetime: 8361 hours (348 days + 9 hours)
      When the command that caused the error occurred, the device was active or idle.
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      40 51 02 06 39 54 e0  Error: UNC 2 sectors at LBA = 0x00543906 = 5519622
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      25 00 08 04 39 54 e0 00      00:01:21.453  READ DMA EXT
      25 00 08 8c 38 54 e0 00      00:01:17.762  READ DMA EXT
      25 00 08 84 38 54 e0 00      00:01:17.762  READ DMA EXT
      35 00 01 83 38 54 e0 00      00:01:17.762  WRITE DMA EXT
      25 00 01 03 39 54 e0 00      00:01:17.762  READ DMA EXT
    Error 7 occurred at disk power-on lifetime: 8361 hours (348 days + 9 hours)
      When the command that caused the error occurred, the device was active or idle.
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      40 51 03 06 39 54 e0  Error: UNC 3 sectors at LBA = 0x00543906 = 5519622
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      25 00 08 03 39 54 e0 00      00:01:10.382  READ DMA EXT
      25 00 08 8b 38 54 e0 00      00:01:17.762  READ DMA EXT
      25 00 08 83 38 54 e0 00      00:01:17.762  READ DMA EXT
      35 00 01 82 38 54 e0 00      00:01:17.762  WRITE DMA EXT
      25 00 01 02 39 54 e0 00      00:01:17.762  READ DMA EXT
    SMART Self-test log structure revision number 1
    Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
    # 1  Short offline       Completed without error       00%     11785         -
    # 2  Short offline       Completed without error       00%     11478         -
    # 3  Extended offline    Completed without error       00%     11465         -
    # 4  Short offline       Completed without error       00%     11228         -
    # 5  Short offline       Completed without error       00%     11063         -
    # 6  Short offline       Completed without error       00%     10748         -
    # 7  Extended offline    Completed without error       00%     10635         -
    # 8  Short offline       Completed without error       00%     10512         -
    # 9  Short offline       Completed without error       00%     10355         -
    #10  Short offline       Completed without error       00%     10137         -
    #11  Short offline       Completed without error       00%     10135         -
    #12  Short offline       Completed without error       00%     10111         -
    #13  Short offline       Completed without error       00%     10087         -
    #14  Short offline       Completed without error       00%     10064         -
    #15  Short offline       Completed without error       00%     10041         -
    #16  Short offline       Completed without error       00%     10017         -
    SMART Selective self-test log data structure revision number 1
     SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
        1        0        0  Not_testing
        2        0        0  Not_testing
        3        0        0  Not_testing
        4        0        0  Not_testing
        5        0        0  Not_testing
    Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.