During code deployments there is a risk of service/system failures. The Network Operations Center monitors alerts from servers. If the alert comes as a result of a code deployment then it might not be anything to be concerned about. If however nobody is working on the server, then clearly the alert is a cause for concern.
We currently inform the NOC when we are working on a server. I was wondering if there already exists a script/program that can listen for inputs on a given server and when a certain input is received to broadcast the input that was received along with the server it was received on to a specified server.
Lets say I am working on server 'x' and run puppet agent
Could a process running in the background configured to listen for a user input at the terminal with 'puppet agent' and then broadcast a message to a given server when that input is present?
The idea would be to add a list of common commands used by the deployment team that this process would listen for and send broadcasts for all of them.
It would also be useful if it could search a predefined location such as a log for that command (in this case puppet agent) for an exit message such as 'puppet successfully completed..' and in the event that it found that, send an additional broadcast to the given server.
I'm sure it could be created with enough effort, just curious to know if something like this already exists that can be configured for our needs.