Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created March 11, 2022 15:10
Show Gist options
  • Save ryanvgates/919e6528aa95bf0f372aef9eb0556e88 to your computer and use it in GitHub Desktop.
Save ryanvgates/919e6528aa95bf0f372aef9eb0556e88 to your computer and use it in GitHub Desktop.
Sensu Procdump Check Hook - sensu
{
"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