Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silencing Not Working in Sensu Version 6.12 #5071

Open
dishi1805 opened this issue Nov 22, 2024 · 2 comments
Open

Silencing Not Working in Sensu Version 6.12 #5071

dishi1805 opened this issue Nov 22, 2024 · 2 comments
Assignees

Comments

@dishi1805
Copy link

Silencing Checks or Entities Not Working in Sensu Version 6.12

Expected Behavior

When silencing a check or entity, no alerts should be received for the silenced items.

Current Behavior

Despite silencing checks or entities using either through Web UI or sensuctl, alerts continue to be received. This issue has been tested on Sensu version 6.12. This behaviour with earlier versions has not been verified.

Steps to Reproduce (for bugs)

  1. Silence a check or entity via the Web UI or sensuctl.
  2. Trigger the check to execute again.
  3. Observe that alerts are still generated despite the silence configuration being active.
@sjkeerthi
Copy link

sjkeerthi commented Dec 2, 2024

same didn't work in UI as well as command when I tried to silent for month it keep on saying maximum duration allowed
really after upgrade of 6.12 my entire slack is noisy.

Tried for Month

# sensuctl silenced create -s entity:admin-02 -c check-cpu -e 31536000 -r "Silencing CPU check until 2024-12-31 22:00:00"
Error: Threshold reached: silenced crossed maximum duration allowed

Tried for 15days

sensuctl silenced create -s entity:admin-02 -c check-cpu -e 31536000 -r "Silencing CPU check until 2024-12-15 22:00:00"
Error: Threshold reached: silenced crossed maximum duration allowed

Tried for a day :(

# sensuctl silenced create -s entity:admin-02 -c check-cpu -e 31536000 -r "Silencing CPU check until 2024-12-02 22:00:00"
Error: Threshold reached: silenced crossed maximum duration allowed

In UI I could see the same error

Uploading image.png…

@nasirhussenm
Copy link

Hi @sjkeerthi

The values need to be configured in the backend.yml file on all backend nodes. Afterward, restart the Sensu backend cluster nodes one by one to apply the changes.

The values for max-silenced-expiry-time-allowed and default-silenced-expiry-time should be set as follows:

max-silenced-expiry-time-allowed: 1440m
default-silenced-expiry-time: 1440m

Note:- m stands for minute

We need to increase the value as per our requirement and it should in minutes

We are currently in the process of releasing the documentation, and it will be available soon. In the meantime, please feel free to reach out if you need any further assistance.

Many Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants