SHARE
TWEET

Untitled

a guest Sep 14th, 2017 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. recipient='sarkozy@elysee.fr'
  4. sas2ircu=`which sas2ircu`
  5.  
  6. if sas2ircu-status --nagios | grep -q 'RAID OK'
  7. then
  8.         echo "RAID status is okay"
  9. else
  10.         echo -e 'RAID check on LOKI failed, please check the server.' | mailx -s '[IMPORTANT] RAID check failed' $recipient
  11. fi
RAW Paste Data
Top