Menu

No SMART data - options enabled, smart0.txt generated in data

Help
2013-09-02
2013-09-16
  • Singing Dwarf

    Singing Dwarf - 2013-09-02

    I am running v3.1.6 on Ubuntu (installed from the sourceforge repository, not the Ubuntu packages).

    I have a single disk, sda, for which I am generating an output file via:

    $ sudo smartctl -a /dev/sda > ~/smartctl_sda.txt
    

    Within the /var/www/phpsysinfo/data directory, I have a symlink back to this file:

    $ ls -al /var/www/phpsysinfo/data
    total 56
    drwxr-xr-x  2 root     root      4096 Sep  2 21:36 .
    drwxr-xr-x 11 root     root      4096 Aug 30 14:12 ..
    -rw-r--r--  1 root     root      7053 Aug 30 14:10 distros.ini
    -rw-r--r--  1 root     root     24984 Aug 30 14:10 languages.ini
    -rw-r--r--  1 root     root      3624 Aug 30 14:10 ModelTranslation.txt
    -rw-rw-r--  1 root     root  4931 Sep  2 21:33 smart0.txt -> /home/christos/smartctl_sda.txt
    

    Within phpsysinfo.txt, the following is included:

    PLUGINS="PSStatus,Quotas,SMART,IMPIInfo,UpdateNotifier"
    
    ACCESS="data"
    
    DEVICES="/dev/sda"
    
    DEVICE=false
    
    IDS="1-RAW_VALUE,3-RAW_VALUE,4-RAW_VALUE,5-RAW_VALUE,7-RAW_VALUE,9-RAW_VALUE,10-RAW_VALUE,12-RAW_VALUE,180-RAW_VALUE,183-RAW_VALUE,184-RAW_VALUE,187-RAW_VALUE,188-RAW_VALUE,189-RAW_VALUE,190-RAW_VALUE,194-RAW_VALUE,195-RAW_VALUE,196-RAW_VALUE,197-RAW_VALUE,198-RAW_VALUE,199-RAW_VALUE"
    

    However, the S.M.A.R.T. Informations section of the phpSysInfo report is blank - "No data available in table".

    The URL http://[server]/phpsysinfo/xml.php?plugin=SMART gives the following:

    <tns:phpsysinfo xmlns:tns="http://phpsysinfo.sourceforge.net/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://phpsysinfo.sourceforge.net/ phpsysinfo3.xsd">
    <Generation version="3.1.6" timestamp="1378154829"/>
    <Options tempFormat="c" byteFormat="auto_binary" refresh="60000" threshold="90" showPickListTemplate="false" showPickListLang="false"/>
    <UsedPlugins>
    <Plugin name="SMART"/>
    </UsedPlugins>
    <Plugins>
    <Plugin_SMART/>
    </Plugins>
    <Errors/>
    </tns:phpsysinfo>
    

    If I replace the symlink with the actual output file itself, I still get the same xml output.

    If I remove the symlink to the smart0.txt file, I receive an error message in the xml output, stating that the file is missing.

    I'm obviously doing something wrong, but not quite sure what?

     

    Last edit: Singing Dwarf 2013-09-16
  • Mieczysław Nalewaj

    Send your smartctl_sda.txt to namiltd -AT- users -DOT- sf -DOT- net

     
    • Singing Dwarf

      Singing Dwarf - 2013-09-09

      Many thanks for your help, I have emailed you the file.

       
  • Mieczysław Nalewaj

    Fixed. Test new revision from https://github.com/rk4an/phpsysinfo

     
  • Singing Dwarf

    Singing Dwarf - 2013-09-16

    Many thanks for looking into this, please accept my sincere apologies for not replying sooner, but I don't seem to be getting notification from SF...

    I've applied the latest revision and retested, but still get the same result:

    <tns:phpsysinfo xmlns:tns="http://phpsysinfo.sourceforge.net/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://phpsysinfo.sourceforge.net/ phpsysinfo3.xsd">
    <Generation version="3.1.x-master-338bb1a" timestamp="1379326252"/>
    <Options tempFormat="c" byteFormat="auto_binary" refresh="60000" threshold="90" showPickListTemplate="false" showPickListLang="false"/>
    <UsedPlugins>
    <Plugin name="SMART"/>
    </UsedPlugins>
    <Plugins>
    <Plugin_SMART/>
    </Plugins>
    <Errors/>
    </tns:phpsysinfo>
    

    I have turned debug on, but don't get any errors.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.