How to make email alert to be sent when a openstack instance is down? [closed] - ssh

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Does openstack have any feature to achieve this scenario:
Check the status of openstack instances (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.
If this is not available, any alternatives?.
Went through https://wiki.openstack.org/wiki/Operations/Tools. but could not find the one which suits my scenario.

For that you can install elasticsearch nodes on your instances, and thanks to plugins like heartbeat (https://www.elastic.co/beats/heartbeat), you can have an overview of the availability of your servers, and their access.
Monitoring is the best practice for having this kind of information, the ELK (Elasticsearch Logstash Kibana) suite does it very well for free and allows you to alert (by email or other) if one of your instances no longer responds.

You can use Mistral project for such used case , Set a cloud cron for it.

Related

How to change the default settings of RabbitMq to persist all messages and queues (Globally) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I know that i can specify the durable setting for each queue and persistent for every message manually. but i'm looking for a way to change the default behavior so everything (queues, messages, etc) will be persistent and durable.
Setting this in a central place in the code will be better than configuration file but please share all the ways to do so instead of "generic function" because i have lots of places that using the amqpapi directly.
Any ideas?
We had the same requirements and we did not find any built-in way to make all messages persistent by default in RabbitMQ.
Our solution was to create a common library to send/receive messages. This library would set the delivery mode to persistent. We also use it to define common conventions for our queue/exchange names and policies.

Communicate between 2 applications [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have written a basic VB winform application (in visual studio) that control the lights. I published and create an install package so I can install this on other PCs.
My questions is how to sync these applications to communicate with one another so if I turn a light on, on one PC, other PC will sense that and display it on thier application.
I can use timer to see if there are any action every 15 second, but I don’t think this is efficient way.
Take a look at this question that involves sending information between computers over a network. You could have the program send what it did to the lights so that the other programs can update themselves.
I'd suggest you look at writing the status to a file accessible to all on the network, use the filewatcher class to detect changes to the file, and when the file changes read it from all PCs to see the current status of everything.
ref: https://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher(v=vs.110).aspx
another option would be to use UDP broadcasting

How to send data from slack to another service? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm looking for how to send data from a Slack Channel with a message like :
#Slackbot :create ticket: "Check apache configuration settings"
to my redmine API instance ??
It is possible ?
I know that is possible with the webhooks to send into Slack chan, but to the reverse ??
You could use a Slash Command but may need a server that can forward the request to redmine or use an Outgoing Webhook. You're question is pretty generic so may need to be more specific to avoid getting a downvote.

Do commercial firewalls have API / Remote CLI? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I mean firewalls like Checkpoint, Fortigate, sonicWALL etc.
Do they have have API or Remote CLI ?
can i, for example, send them a remote call to filter in\out a certain port?
I Just want to know if that's possible, if you have examples that's awesome, but evena simple "yes, Checkpoint and soincwall does that" are great!
I only have some experience with Fortigate-firewalls. They usually have SSH.
This means you could use a command like this:
ssh <hostname_or_IP> -t "echo 'hello world'"
to sumbit your new rules to your firewall.

Monitoring all the information of users using mvc 4 web api [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a REST service based on mvc 4 and web api. I need to monitor all the users who are using my service (eg: user name , organization that user belongs to, how many hours he is accessing service and so). can you please provide best architecture for this. what is the best way to doing this?
You can use a custom HttpMessageHandler for doing authentication and track all the information you need about the user in a database. You will need some background processing of that data and doing some statistics about the usage of the API. About the message handler, a good start is the one provided in Thinktecture.IdentityModel library (You can customize it),
http://leastprivilege.com/2013/04/22/asp-net-web-api-security-the-thinktecture-identitymodel-authenticationhandler/