Check for SCSI Errors

Check for SCSI Errors

I'm trying to get Application Manager to run a script on a Solaris server. This script checks /var/adm/messages files for scsi errors. If scsi errors is found, Application Manager Configure Alerts sends me an email. Application Manager is able to run the script, but it's not sending emails. I'm not sure if the problem is my script, the monitor setup or both.

Here is what the script on the Solaris server looks like:
#!/bin/sh
rm -f /export/home/syschk/scsierror.txt
scsierr=`tail /var/adm/messages | grep scsi`
if [ -n "$scsierr" ];then
echo "scsierror=1" > /export/home/syschk/scsierror.txt
fi
I've also attached printscreen of the monitor setup.

Thanks










                New to ADSelfService Plus?