Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- recipient='sarkozy@elysee.fr'
- sas2ircu=`which sas2ircu`
- if sas2ircu-status --nagios | grep -q 'RAID OK'
- then
- echo "RAID status is okay"
- else
- echo -e 'RAID check on LOKI failed, please check the server.' | mailx -s '[IMPORTANT] RAID check failed' $recipient
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement