Novell Cool Solutions

Simple monitoring for DataSync



By:

January 4, 2011 4:20 pm

Reads:4,564

Comments:1

Score:Unrated

Print/PDF

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 chkds.sh with the following content:

#!/bin/sh
/bin/netstat -an | /bin/grep -q '0.0.0.0:443' || /usr/sbin/rcdatasync restart

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

*/10 * * * * /root/bin/chkds.sh

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.
Loading...Loading...

Categories: Uncategorized

1

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 – http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/Novell-GroupWise – perhaps someone could do so with this script & add it to nagios exchange for everyone?

Comment

RSS