Article
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.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
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, test, test before you do anything drastic with it.
Related Articles
User Comments
nagios integration?
Submitted by kkbass on 5 January 2011 - 6:08am.
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... - perhaps someone could do so with this script & add it to nagios exchange for everyone?
- Be the first to comment! To leave a comment you need to Login or Register



1