Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are monitoring the disks on our servers using Smartmontools and Nagios with the check_smartmon or another Nagios plugin. It appears to work, as there are no errors. But how do I know if it is truly working?

It would be great to simulate an error on the disk and observe the error through the entire Nagios pipeline. From the Linux or FreeBSD commandline, s there a way to trigger a SMART fault on a disk drive or array without damaging the disk?

I found an old discussion on the smartmontools-support mailinglist, but it's not clear that this functionality was ever added.

share|improve this question
Updated my question. We are using Nagios for centralized monitoring. Will -M test create an error condition which will be detected by the smartmon utilities? – Stefan Lasiewski Feb 9 '13 at 0:06
It looks like check_smartmon just executes smartctl and parses the results, so I don't see any good way to test it like you seem to want. You might want to have smartd set up and emailing you anyway. – Michael Hampton Feb 9 '13 at 0:12
I see what you're saying. If I could manually trigger an error condition then any admin could test the SMART monitoring from a variety of angles. – Stefan Lasiewski Feb 9 '13 at 0:41
I suspect your best option is to find a drive that is showing some SMART errors already, and keep it round for future testing. It's quite likely that an older desktop drive will have some number of reallocated sectors, which should be enough to show something with check_smartmon. – Daniel Lawson Feb 9 '13 at 0:53
Why don't you make a fake smartctl that produces whatever output you want? – sendmoreinfo Feb 9 '13 at 15:20

You can not simulate damage on hard drives without having any real damage to check Smartmontools "power". Smartmontools is really good tool, it's working, and always safe and reliable. You can get some HDD with bad sectors instead?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.