Hey,
Is there a way to create a handler that will be notified when the sensu server adds a client?
Thanks,
-Chris
Hey,
Is there a way to create a handler that will be notified when the sensu server adds a client?
Thanks,
-Chris
this is really good question, I’m interested too… in our case we use a lot AutoScalling and will be great know from the Sensu Side when a new node be added… some advice?
Sensu doesn’t do anything special for new clients. You’d either need to modify sensu (a few lines of code) to see if a client exists before setting it in redis or do this out of process by getting a list of all the clients and checking it against a previous list.
-Bryan
On Sun, Jul 27, 2014 at 3:25 PM, Alejandro Ferrari cdgraff@gmail.com wrote:
this is really good question, I’m interested too… in our case we use a lot AutoScalling and will be great know from the Sensu Side when a new node be added… some advice?
If you could write a check with a threshold of how long a client has
been registered in sensu (sensu-cli client history $fqnd?), then set
that up as a check, and make *its* handler be your new-client handler,
then that could work?
On Sun, Jul 27, 2014 at 1:33 PM, Bryan Brandau <agent462@gmail.com> wrote:
Sensu doesn’t do anything special for new clients. You’d either need to
modify sensu (a few lines of code) to see if a client exists before setting
it in redis or do this out of process by getting a list of all the clients
and checking it against a previous list.-Bryan
On Sun, Jul 27, 2014 at 3:25 PM, Alejandro Ferrari <cdgraff@gmail.com> > wrote:
this is really good question, I'm interested too... in our case we use a
lot AutoScalling and will be great know from the Sensu Side when a new node
be added... some advice?
We dynamically bring up machines and is there an option to send a notification email once the client is registered with Sensu.?
Any thoughts and advice?
On Monday, 28 July 2014 02:40:51 UTC+5:30, Kyle Anderson wrote:
If you could write a check with a threshold of how long a client has
been registered in sensu (sensu-cli client history $fqnd?), then set
that up as a check, and make its handler be your new-client handler,
then that could work?On Sun, Jul 27, 2014 at 1:33 PM, Bryan Brandau agen...@gmail.com wrote:
Sensu doesn’t do anything special for new clients. You’d either need to
modify sensu (a few lines of code) to see if a client exists before setting
it in redis or do this out of process by getting a list of all the clients
and checking it against a previous list.-Bryan
On Sun, Jul 27, 2014 at 3:25 PM, Alejandro Ferrari cdg...@gmail.com > > wrote:
this is really good question, I’m interested too… in our case we use a
lot AutoScalling and will be great know from the Sensu Side when a new node
be added… some advice?
Now days sensu does have a registration handler. You need something like:
"handlers": {
"registration": {
"type": "pipe",
"command": "/etc/sensu/extensions/handlers/registration.rb"
},
More info here:
https://sensuapp.org/docs/0.24/reference/clients.html#registration-events
Thanks Moises for the update. Highly appreciate!!!
I would like to know if there any registration.rb files available or do I need to write my custom ruby code?
Br,
Vinod.
On Thu, Mar 23, 2017 at 7:28 PM, Moises Silva moises.silva@gmail.com wrote:
Now days sensu does have a registration handler. You need something like:
More info here: https://sensuapp.org/docs/0.24/reference/clients.html#registration-events
“handlers”: {
“registration”: {
“type”: “pipe”,
“command”: “/etc/sensu/extensions/handlers/registration.rb”
},