Monitoring additional services with chkservd
Hello,
I have my cPanel servers setup monitor my RAID status with mdadm. I used the process from this link:
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?
Thanks,
Mike
-
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: 0 -
Thanks. I'll check that out. In review the link I provided it has a daemonization directive. mdadm --monitor --scan --daemonize ='--mail=jdoe@somemail.com'>--mail=jdoe@somemail.com
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/mdadm.pid
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".0
Please sign in to leave a comment.
Comments
2 comments