Hello Experts,
This is my first THACK discussion so please excuse me for any silly questions I ask plus I don't have much knowledge of scripting so need an expert advise here.
In our environment, I have multiple Linux servers hosting multiple applications with services that vary server to server. I am looking for a script which could monitor all running servers and alert me if any of the running service goes down.
I found below script at the following link;
Linux/Unix Monitor
#!/bin/bash
status=`ps -ef | grep speechbridged | grep -v grep`
if [[ $status ]]; then
echo "Statistic: 1"
else
echo "Statistic: 0"
fi
However not too sure how to tweak it to monitor all running servers rather than one.
Kind Regards