Monitoring additional services with chkservd


Well-Known Member
Apr 3, 2007

I have my cPanel servers setup monitor my RAID status with mdadm. I used the process from this link:

The mdadm --monitor start with reboot, however, I'd like to monitor mdadm with chkservd. I found this:

However, I'm clear on what are the correct parameters for adding mdadm. The addition process is clear enough. I just don't know what if mdadm uses a port or what command chkservd would use to test the connection to mdadm.

Does anyone have experience with these setting in chkservd for mdadm?

Last edited by a moderator:


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! It doesn't look like mdadm runs as a daemon service - the example provided on the SuSE page you linked is just the tool running as part of a bash script. This wouldn't have a port to use to check that the tool is up and running.

If you'd like to try something different, you could try making the BASH script into a daemon, using something like this:

and then you could monitor that service, but it does have to be a daemon on the machine.


Well-Known Member
Apr 3, 2007
Thanks. I'll check that out.

In review the link I provided it has a daemonization directive.
mdadm --monitor --scan --daemonize [EMAIL='[email protected]'][email protected][/EMAIL]

When I run this on my Alma linux, ps aux | grep mdadm I get :
root 1121 0.0 0.0 28180 1916 ? Ss Sep02 0:01 /sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/

It starts on boot.

I was just hoping to get a notice from the system. I guess I can try to write a cron script too that send me an email of "/sbin/mdadm --monitor --scan" does not exist in output of "ps aux | grep mdadm".
  • Like
Reactions: cPRex