TORQUE Resource Manager > Troubleshooting > Compute Node Health Check > Example Health Check Script

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 

© 2015 Adaptive Computing