2024-Ready: A Guide on How to Monitor VOS3000 Services for Smooth Operations

December 23, 2018by Russell H0
If you’ve ever wondered how to keep tabs on your VOS3000 and automatically kick it back into gear when it decides to take a break, you’re in the right place.

Today’s blog is all about keeping a close eye on your VOS3000 services. Ever had that moment when VOS3000 version 2.1.2.0 decides to take a breather? Well, I’ve got your back.

In this unique journey, I’m using three simple shell scripts to monitor my VOS3000 service every 5 seconds. If it decides to call it quits, my scripts kick in, bringing it back to life and shooting me a quick email alert. It’s like having a personal VOS3000 watchdog!

So, if you’re all about making sure your VOS3000 is 2024-ready and beyond, stick around. Let’s keep your VOS3000 running smoothly.

How To Monitor Vos3000 Services

1 – I have created watchdog script to check mbx3000d service and send an email alert
Linux# nano /etc/voscheck.sh
#!/bin/bash
#
# watchdog
NAME=mbx3000
START=/etc/mbx3000.sh
NOTIFY=your-email-address
NOTIFYCC=your-email-address
GREP=/bin/grep
PS=/bin/ps
NOP=/bin/true
DATE=/bin/date
MAIL=/bin/mail
RM=/bin/rm
$PS -ef|$GREP -v grep|$GREP $NAME >/dev/null 2>&1
case “$?” in
0)
# It is running in this case so we do nothing.
$NOP
;;
1)
echo “$NAME is NOT RUNNING. Starting $NAME and sending notices.”
$START 2>&1 >/dev/null &
NOTICE=/tmp/watchdog.txt
echo “$NAME was not running and was started on `$DATE`” > $NOTICE
$MAIL -n -s “watchdog notice” -c $NOTIFYCC $NOTIFY < $NOTICE
$RM -f $NOTICE
;;
esac
exit
2 – Create a script for start mbx3000 service
Linux# nano /etc/mbx3000.sh
#!/bin/bash
service mbx3000d start
3 – Check service every 5 second
Linux# nano /etc/check5.sh
#!/bin/bash
while true
do
/etc/voscheck.sh
sleep 5
done
4 – Execute the script in the background
Linux# nohup /etc/check5.sh &

Russell H

I'm Russell, our go-to expert for VOIP softswitch server installation. With hands-on experience in deploying Sippy Softswitch, MVTS Pro, iTel Switch, and MediaCore Softswitch, he's the guru you can rely on. As a key contributor to vpsvos.com, Russell simplifies the complexities of server setup, configuration, and troubleshooting, making the world of Voice over IP accessible to all.

Leave a Reply

Your email address will not be published. Required fields are marked *

VPSVOS COMMUNICATIONHeadquarters
VPSVOS Communications is a registered company in the United States of America. Registered Office: 19854 Michigan Avenue Brekford, CA 599780 USA.
OUR LOCATIONSWhere to find us?
https://vpsvos.com/wp-content/uploads/2019/04/img-footer-map.png
FOLLOW USVPSVOS Social Connect
Stay up to date with the latest news about VPSVOS Communication, events, special offers and more by connecting with our social media.
VPSVOS COMMUNICATIONHeadquarters
VPSVOS Communications is a registered company in the United States of America. Registered Office: 19854 Michigan Avenue Brekford, CA 599780 USA.
OUR LOCATIONSWhere to find us?
https://vpsvos.com/wp-content/uploads/2019/04/img-footer-map.png
FOLLOW USVPSVOS Social Connect
Stay up to date with the latest news about VPSVOS Communication, events, special offers and more by connecting with our social media.

Copyright © 2011 – 2025 VPSVOS All Rights Reserved.

Copyright © 2011 – 2025 VPSVOS All Rights Reserved.