11.0 Troubleshooting > 11.9 Compute node health check > 11.9.4 Example health check script

11.9.4 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