5.620 Example Health Check Script

As mentioned, the health check can be a shell script, PERL, Python, C-executable, or anything which can be executed from the command line capable of setting STDOUT. The example below demonstrates a very simple health check:

#!/bin/sh

/bin/mount | grep global

if [ $? != "0" ]

  then

    echo "ERROR cannot locate filesystem global"

fi

Related Topics 

© 2016 Adaptive Computing