Class: SeafileCheck
- Inherits:
-
GaddyGaddyCheck
- Object
- GaddyGaddyCheck
- SeafileCheck
- Defined in:
- lib/gg_check/plugins/Seafile.rb
Instance Method Summary collapse
Methods inherited from GaddyGaddyCheck
#extra, #initialize, #process_alive?, #run_cmd, #socket
Constructor Details
This class inherits a constructor from GaddyGaddyCheck
Instance Method Details
#status(options) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/gg_check/plugins/Seafile.rb', line 16 def status() check_result = {} result = `curl -s 127.0.0.1:8000/home|grep "Private Seafile"`.strip check_result['status'] = (result.size > 1 && $?.success?) ? 0 : 2 if check_result['status'] == 2 check_result['message_key'] = 'event.not_running' end check_result end |