This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[FEATURE REQUEST] HD health, motherboard/CPU temperature monitoring

This will be very nice indeed to have as a separate section on the dash board and on the Reporting >> Hardware page. It is absolutely critical for the running of the firewall and discovering any issues early. 

Hard Disk health is generally traceable with S.M.A.R.T. (most modern hard disks support it) - implemented via the smartd daemon (downloadable as free rpm and regularly updated) and can have a separate log section in the 'Logging' tab to check the status of the hard disk at regular intervals.

As for the Motherboard/CPU temperature monitoring - there are various implementations (including the SM87 package available through the standard linux distribution) which could be made available in Astaro as well.

Question to all Astaro developers reading this - if I want to install the smartd rpm to the Astaro distribution is that possible (I know it invalidates my home license before you ask) as I want to monitor the health of my hard disk and currently there is no way I could do that in Astaro.

Finally, it would be nice to have a choice of all Astaro notifications to be sent to 'internal' email address (say Admin@) - available as part of the User Portal. 

Currently the only way I could utilise this is if I have an external email address/account set up as part of the SMTP/POP3 proxy set up, which is not only inconvenient, but insecure as well as all the internal info from these notifications will pass through external servers...unless I am missing something obvious!


This thread was automatically locked due to age.
Parents
  • It is possible, and it is actually done - the RPM is already installed on every ASG. There is even  temperature monitoring available, but only on our appliances.

    Cheers,
     andreas
  • It is possible, and it is actually done - the RPM is already installed on every ASG. There is even  temperature monitoring available, but only on our appliances.

    Cheers,
     andreas

    Erm, enlighten me...I can't see it anywhere! 

    Unless you mean the hardware appliances. I am using the software version (7.301 as it turns out) installed on my own PC [8-)]
  • This package is installed: http://smartmontools.sourceforge.net/ for one..

    Installed where exactly? I know about the smartmon tools as I am using them extensively, but can't see this installed on the software appliance anywhere...unless i am missing something very obvious [:S]
  • They are on the console, not in the webadmin.

    vpngw:/root # which smartctl
    /usr/sbin/smartctl
    vpngw:/root # which smartd
    /usr/sbin/smartd
  • They are on the console, not in the webadmin.

    vpngw:/root # which smartctl
    /usr/sbin/smartctl
    vpngw:/root # which smartd
    /usr/sbin/smartd


    I see...

    So, every time I need to see the status of my HDD I have to:

    1. Enable Secure Shell from Astaro WebAdmin;
    2. Start SSH client and login;
    3. su -
    4. change /etc/smartd.conf to include the HDD I need to monitor, as well as configure the log file output as whatever change I have previously done (such as this) will be 'restored' to the 'default' version of this file the next time I boot up Astaro.
    5. execute service smartd start
    6. check the last lines of smartd log file for any errors


    Right....[8-)] 

    On the other hand it would have been much easier if this service is started at startup when Astaro boots up and appropriate sections on the WebAdmin dashboard, Report/Hardware and its log file (Logging/View log files) exist so that it allows me to view the status of my HDD without any hassle.

    Currently none of this is present, hence my initial post. Same is valid for the CPU/Motherboard temperature sensors.
Reply
  • They are on the console, not in the webadmin.

    vpngw:/root # which smartctl
    /usr/sbin/smartctl
    vpngw:/root # which smartd
    /usr/sbin/smartd


    I see...

    So, every time I need to see the status of my HDD I have to:

    1. Enable Secure Shell from Astaro WebAdmin;
    2. Start SSH client and login;
    3. su -
    4. change /etc/smartd.conf to include the HDD I need to monitor, as well as configure the log file output as whatever change I have previously done (such as this) will be 'restored' to the 'default' version of this file the next time I boot up Astaro.
    5. execute service smartd start
    6. check the last lines of smartd log file for any errors


    Right....[8-)] 

    On the other hand it would have been much easier if this service is started at startup when Astaro boots up and appropriate sections on the WebAdmin dashboard, Report/Hardware and its log file (Logging/View log files) exist so that it allows me to view the status of my HDD without any hassle.

    Currently none of this is present, hence my initial post. Same is valid for the CPU/Motherboard temperature sensors.
Children
  • One other thing with regards to my initial post:

    It would be nice to have a choice of all Astaro notifications to be sent to 'internal' email address (say Admin@) - available as part of the User Portal.

    Currently the only way I could utilise this is if I have an external email address/account set up as part of the SMTP/POP3 proxy set up, which is not only inconvenient, but insecure as well as all the internal info from these notifications will pass through external servers...unless I am missing something obvious!

    Is there any way out of this?
  • Hello mr-4,

    my little Solution since V5. This Solution runs under V5 & V6.

    1)

    You need a file called "crontab.smartmon"

    Contents of this File:

    */60 * * * * root /usr/local/sbin/smartmon

    Copy this File to /etc with Permissions to root

    2)

    You need a small Script called "smartmon" with 755 Permissions

    Contents of this File:

    #!/bin/bash

    VERSION=ASL5-20050512
    LANG=C

    #Bit 0:
    #    Command line did not parse. 
    #Bit 1:
    #    Device open failed, or device did not return an IDENTIFY DEVICE structure. 
    #Bit 2:
    #    Some SMART command to the disk failed, or there was a checksum error in a SMART data structure (see '-b' option above). 
    #Bit 3:
    #    SMART status check returned "DISK FAILING". 
    #Bit 4:
    #    We found prefail Attributes > /var/log/selfmon.log
    echo ------------------------------------------------------------------------ >> /var/log/selfmon.log
    date "+SMARTMON last executed at %e.%m.%Y - %T" >> /var/log/selfmon.log
    echo ------------------------------------------------------------------------ >> /var/log/selfmon.log
    echo >> /var/log/selfmon.log

    /usr/sbin/smartctl -H /dev/hda >> /var/log/selfmon.log

    if [ $? != 0 ] ; then
    /usr/sbin/email -r 127.0.0.1 -f sender@adress.net -s "SMARTMON: Astaro HD-Failure $?!" -b recipient@adress.net
    fi

    echo >> /var/log/selfmon.log
    echo ------------------------------------------------------------------------ >> /var/log/selfmon.log
    date "+SMARTMON ends at %e.%m.%Y - %T" >> /var/log/selfmon.log
    echo ------------------------------------------------------------------------ >> /var/log/selfmon.log
    echo >> /var/log/selfmon.log


    Copy this File to /usr/local/sbin with 755 Permissions

    3)

    Edit /etc/crontab and add to the End of this File

    */60 * * * * root /usr/local/sbin/smartmon

    4)

    You need the command line Mailer "email". > http://cleancode.org/downloads/email/

    Unpack & Copy "email" with 755 Permissions to /usr/sbin

    5)

    Now, detects SMARTMON an Error / Failure > 0, a Mail is send to you. Alternate you can Monitor the Status of SMARTMON from WebAdmin under the Live Logs.

    AngeloS
    (Sorry, German User)
  • Thank you Angelo, I would certainly give it a go, though I was hoping to find out whether this is/would be integrated into WebAdmin (together with the temp. sensors) instead of jumping through hoops - it is already installed, according to andreas, so I am waiting with bated breath and in anticipation...
  • While the RPM is installed on every ASG installation, temperature monitoring is only done on our hardware appliances.

    Cheers,
     andreas
  • What you fail to mention is that while the RPM is installed, the smartd service is not running, nor is integrated in any way, shape or form within the WebAdmin as far as I can gather, which was, together with the temp. sensor suggestion, the whole point of my initial post (I have the distinct feeling that we are going round and round in circles!)...
  • mr-4 what Andreas is saying is that its a "feature" of the appliances that Astaro sell, they aren't going to implement it in the software version web interface at this point, although I am sure you can ask for it as a feature request for a future version. [:)]
  • While the RPM is installed on every ASG installation, temperature monitoring is only done on our hardware appliances.

    Cheers,
     andreas


    Having an ASG320 here and I disabled SSH by default. Don't want to open the console everytime.
    This should go into the webadmin...