Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PostfixStatusPlugin < Scout::Plugin
- def build_report
- postfix = `sudo /etc/init.d/postfix status`
- if postfix !~ /postfix is running/
- report(:status => 'ERR')
- alert('Postfix not running!')
- else
- report(:status => 'OK')
- end
- end
- end
Add Comment
Please, Sign In to add comment