-
-
Save erikh/c2e18fa254e80a45ce1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AService < SM::Service | |
config_from :chef, :databag => "services", :item => "a_service" | |
std_monitor :flap, :action => :stop, :tries => 2 | |
groups [ :cool_service, :fart ] | |
def custom_monitor | |
# ping isn't a real function, just an idea of how this would work | |
ping("host") == 0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment