Skip to content

dezka/Azure-Maint-Status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure-Maint-Status

This is a Python Flask app I wrote that monitors the Azure Instance Metadata Service to tell whether or not an Instance is set to reboot.

This is based on: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service

When hit on :8088, it will hit the Azure Instance Metadata Service which is sitting on the APIPA address space for the Instance this is running on. If the length of the JSON result is 0, then a 200 OK is returned. Else a 503 HTTP code is returned.

This was hooked up originally to an Orion Solarwinds monitoring system which was looking for a 200 OK, and would alert on a 503.

Install

Built for Ubuntu Server 14.

Install using the AzureStatusInstall.yml Ansible playbook.

About

This is a Python Flask app that monitors the Azure Instance Metadata Service to tell whether or not an Instance is set to reboot. This is based on: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published