Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement