How alert a notification via email if the openstack VM instance is not working or down?

asked 2020-03-02 02:16:34 -0500

rakeshkotian gravatar image

How could the following scenario could be achieved for openstack instances?

  • Check the status of openstack instances (openstack VM is working or not i.e user is able to ssh and work or not).
    • Get the set of instances IP which is not working.
    • Send an email to a user with list of not working instances.
edit retag flag offensive close merge delete

Comments

2

If you define "working" with "can ssh to the instance", write a script that tries to ssh into all instances and reports failure. The IP address of an instance can be obtained with openstack server show.

Note, however, that some instances block ssh by design, for example Trove instances.

Bernd Bausch gravatar imageBernd Bausch ( 2020-03-02 04:29:27 -0500 )edit
2

Or you could fiddle with monitoring solutions such as centreon (or similar solutions) where you can define which components have to checked regularly. But I'm not sure if that's too much overhead for your use case. A simple script could be enough, as always it depends on what exactly you need.

eblock gravatar imageeblock ( 2020-03-02 04:46:46 -0500 )edit