Hi,
We have some hosts which we want to monitor between 8 AM to 8 PM on the weekdays. How can I configure Sensu clients to achieve that?
Any help would be appreciated.
Cheers
Ferdous Shibly
Hi,
We have some hosts which we want to monitor between 8 AM to 8 PM on the weekdays. How can I configure Sensu clients to achieve that?
Any help would be appreciated.
Cheers
Ferdous Shibly
Hi Ferdous,
You want to use the subdue attribute on the check itself and subdue the check at any times you do not want to monitor.
https://sensuapp.org/docs/0.26/reference/checks.html#subdue-attributes
Thanks,
Josh
On Nov 15, 2017, at 8:26 AM, Ferdous Shibly bdshibly@gmail.com wrote:
Hi,
We have some hosts which we want to monitor between 8 AM to 8 PM on the weekdays. How can I configure Sensu clients to achieve that?
Any help would be appreciated.
Cheers
Ferdous Shibly
Josh,
Thanks for your reply which is very helpful. I am facing another challenge implementing Sensu… We have some hosts in auto-scaling group on AWS. What is the best practice to monitor hosts in auto-scaling group as it can be automatically discovered by Sensu when it will be scaled up but how it will be deregistered when scaled down?
Cheers
Ferdous Shibly
On Wednesday, November 15, 2017 at 11:44:22 AM UTC-5, Joshua Pasqualetto wrote:
Hi Ferdous,
You want to use the subdue attribute on the check itself and subdue the check at any times you do not want to monitor.
https://sensuapp.org/docs/0.26/reference/checks.html#subdue-attributes
Thanks,
Josh
On Nov 15, 2017, at 8:26 AM, Ferdous Shibly bdsh...@gmail.com wrote:
Hi,
We have some hosts which we want to monitor between 8 AM to 8 PM on the weekdays. How can I configure Sensu clients to achieve that?
Any help would be appreciated.
Cheers
Ferdous Shibly
Ferdous,
You can setup cloudwatch events in AWS to trigger when an instance is terminated. The event can call a Lambda function which can hit the Sensu API and deregister the client. Be sure to spin up the Lambda function in the VPC that the sensu server is in, so you don’t need to expose the Sensu API to the internet.
I’m not sure if someone has a blog post or article with a step by step, or code samples, but once setup, it’s extremely hands off, and there’s no maintenance you’ll need to do.
On Thu, Nov 16, 2017 at 10:58 AM, Ferdous Shibly bdshibly@gmail.com wrote:
Josh,
Thanks for your reply which is very helpful. I am facing another challenge implementing Sensu… We have some hosts in auto-scaling group on AWS. What is the best practice to monitor hosts in auto-scaling group as it can be automatically discovered by Sensu when it will be scaled up but how it will be deregistered when scaled down?
Cheers
Ferdous Shibly
On Wednesday, November 15, 2017 at 11:44:22 AM UTC-5, Joshua Pasqualetto wrote:
Hi Ferdous,
You want to use the subdue attribute on the check itself and subdue the check at any times you do not want to monitor.
https://sensuapp.org/docs/0.26/reference/checks.html#subdue-attributes
Thanks,
Josh
On Nov 15, 2017, at 8:26 AM, Ferdous Shibly bdsh...@gmail.com wrote:
Hi,
We have some hosts which we want to monitor between 8 AM to 8 PM on the weekdays. How can I configure Sensu clients to achieve that?
Any help would be appreciated.
Cheers
Ferdous Shibly
–
Steven Viola
Possibly Redirecting to Google Groups is also helpful in regard to deregistration.
On Thursday, November 16, 2017 at 4:58:15 PM UTC+1, Ferdous Shibly wrote:
Josh,
Thanks for your reply which is very helpful. I am facing another challenge implementing Sensu… We have some hosts in auto-scaling group on AWS. What is the best practice to monitor hosts in auto-scaling group as it can be automatically discovered by Sensu when it will be scaled up but how it will be deregistered when scaled down?
Cheers
Ferdous Shibly
On Wednesday, November 15, 2017 at 11:44:22 AM UTC-5, Joshua Pasqualetto wrote:
Hi Ferdous,
You want to use the subdue attribute on the check itself and subdue the check at any times you do not want to monitor.
https://sensuapp.org/docs/0.26/reference/checks.html#subdue-attributes
Thanks,
Josh
On Nov 15, 2017, at 8:26 AM, Ferdous Shibly bdsh...@gmail.com wrote:
Hi,
We have some hosts which we want to monitor between 8 AM to 8 PM on the weekdays. How can I configure Sensu clients to achieve that?
Any help would be appreciated.
Cheers
Ferdous Shibly