Guest User

Untitled

a guest
Oct 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class PostfixStatusPlugin < Scout::Plugin
  2. def build_report
  3. postfix = `sudo /etc/init.d/postfix status`
  4. if postfix !~ /postfix is running/
  5. report(:status => 'ERR')
  6. alert('Postfix not running!')
  7. else
  8. report(:status => 'OK')
  9. end
  10. end
  11. end
Add Comment
Please, Sign In to add comment