daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Sep 14th, 2017 79 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top