Created
March 11, 2022 15:10
-
-
Save ryanvgates/919e6528aa95bf0f372aef9eb0556e88 to your computer and use it in GitHub Desktop.
Sensu Procdump Check Hook - sensu
This file contains hidden or 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
{ | |
"checks": { | |
"check_iis_http": { | |
"command": "C:/opt/sensu/embedded/bin/ruby C:/opt/sensu/embedded/bin/check-http.rb -u http://localhost/health", | |
"handlers": [ | |
"default", | |
"mailer_detailed" | |
], | |
"standalone": true, | |
"timeout": 15, | |
"interval": 60, | |
"hooks": { | |
"critical": { | |
"command": "powershell -file C:\\Procdump\\iisreset_and_procdump.ps1 >> c:\\Procdump\\sensu_log.txt", | |
"timeout": 720 | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment