Novell Cool Solutions

Simple monitoring for DataSync


January 4, 2011 4:20 pm





Using a quite simple script one can ensure that the mobility connector is up and accepting connections. In the example I use it is assumed that the connector is listening on port 443 (the default). The script is checking whether the port 443 is open and listening – and if not simply restarting the DataSync.

1. Create a script (in /root/bin), I named it with the following content:

/bin/netstat -an | /bin/grep -q '' || /usr/sbin/rcdatasync restart

2. Add this script to your crontab (here it’s running every 10 minutes):

*/10 * * * * /root/bin/

That’s it folks. Here are some thoughts: Do not forget to comment the script in crontab prior to any maintenance (upgrade) of the DataSync.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized


Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

1 Comment

  1. By:kkbass

    Anyone tried this monitoring script with Nagios? Some examples of scripts used to monitor groupwise can be found here – – perhaps someone could do so with this script & add it to nagios exchange for everyone?