Skip to main content

Smartmontools with WHM/cPanel

Comments

10 comments

  • ZenHostingTravis
    We use smartmontools to monitor the health of the drives using a cronjob that runs overnight, on a dedicated server. It also runs as a service. Additionally, we also monitor the health of the drives using a Nagios plugin.
    0
  • MindServer
    We use smartmontools to monitor the health of the drives using a cronjob that runs overnight, on a dedicated server. It also runs as a service. Additionally, we also monitor the health of the drives using a Nagios plugin.

    Perfect, thank you very much. For monitorize SSDx2 with "RAID 1", which command I need use?. This will work correctly? (I have my servers in OVH): smartctl -s on /dev/nvme0n1 smartctl -s on /dev/nvme1n1 Or can you tell me command for know SSD's names for configure Smartmontools?. Thank you very much. Have nice day!
    0
  • cPanelLauren
    This isn't something provided by cPanel but maybe @ZenHostingTravis can provide you with instructions based on his experience
    0
  • ZenHostingTravis
    Hi @MindServer, It depends whether you use software or hardware RAID. For software RAID, something like mdadm --detail /dev/md0 | grep "State :" | awk "{print $3}" Hope that helps!
    0
  • MindServer
    Hi @MindServer, It depends whether you use software or hardware RAID. For software RAID, something like mdadm --detail /dev/md0 | grep "State :" | awk "{print $3}" Hope that helps!

    Thank you very much. I have soft RAID, SSD NVMe (RAID 1). When I execute your command he return me this: mdadm: cannot open /dev/md0: No such file or directory If I execute command "fdisk -l" I get this: Disk /dev/nvme1n1: 450.1 GB, 450098159616 bytes, 879097968 sectors Disk /dev/md2: 449.0 GB, 449020100608 bytes, 876992384 sectors Disk /dev/nvme0n1: 450.1 GB, 450098159616 bytes, 879097968 sectors Disk /dev/loop0: 4294 MB, 4294967296 bytes, 8388608 sectors
    How can I know names for configure Smartmontools: smartctl -i NAME Sorry my ignorance. Have a nice day.
    0
  • MindServer
    Hi, Smartmontools is update with "yum update" command?. Or need execute other command?, I not find information about this. Thanks!
    0
  • ZenHostingTravis
    Hi, Smartmontools is update with "yum update" command?. Thanks!

    Yes, it will be :)
    0
  • MindServer
    Yes, it will be :)

    Thank you very much friend, you are the best. Other question please: with "yum update" command too i will update Logwatch?. Have a nice day!
    0
  • ZenHostingTravis
    Hi MindServer, You're welcome. Yes, it is part of a standard repository and should be updated by that command.
    0
  • MindServer
    Hi MindServer, You're welcome. Yes, it is part of a standard repository and should be updated by that command.

    Thank you friend. Have a nice day.
    0

Please sign in to leave a comment.