MindServer

Well-Known Member
Mar 18, 2020
176
27
28
Spain
cPanel Access Level
Root Administrator
Hi,

I have in my servers Smartmontools, but I not installed him. Maybe this tool is installed with WHM/cPanel or CloudLinux. I need know:

-I need add and configure SSD monitoring?, or Smartmontools will monitor all SSD automatically?.

Have nice day!
 

ZenHostingTravis

Well-Known Member
PartnerNOC
May 22, 2020
161
53
28
Australia
cPanel Access Level
Root Administrator
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.
 
Last edited:
  • Like
Reactions: MindServer

MindServer

Well-Known Member
Mar 18, 2020
176
27
28
Spain
cPanel Access Level
Root Administrator
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!
 

MindServer

Well-Known Member
Mar 18, 2020
176
27
28
Spain
cPanel Access Level
Root Administrator
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:

Code:
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.
 
Last edited: