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

Centreon 22.10 - key error "Flapping" #866

Closed
arthur-lbchn opened this issue Oct 30, 2022 · 13 comments
Closed

Centreon 22.10 - key error "Flapping" #866

arthur-lbchn opened this issue Oct 30, 2022 · 13 comments

Comments

@arthur-lbchn
Copy link

Hey guys,

I recently updated Centreon to 22.10 and getting key error "Flapping".

Nagstamon 3.10

I tried to enable Debug to file, but no records at all (maybe doing something wrong)

Could someone please assist?

@HenriWahl
Copy link
Owner

@BenoitPoulet any hint?

@HenriWahl
Copy link
Owner

@arthur-lbchn if you use Windows you could use https://github.com/HenriWahl/Nagstamon/releases/download/latest/Nagstamon-3.10.0-win64-debug.zip for more detailed debugging. On Linux just run nagstamon in a terminal for more output.

@arthur-lbchn
Copy link
Author

@HenriWahl I've discovered that the error occurs if Centreon has services with UNKNOWN status. Once I resolved them and they reverted to OK, everything works as expected.

But I'm pretty sure, that I saw UNKNOWN services in Nagstamon before, so most likely Centreon changed something on their side.

@arthur-lbchn
Copy link
Author

Update: Not only UNKNOWN status caused the error, WARNING as well (maybe CRITICAL)

I have another instance of Centreon v. 22.04.0 - everything works

@arthur-lbchn
Copy link
Author

@HenriWahl Hey, sorry for bothering you, have you had a chance to take a look into the problem? Super critical to us to have proper monitoring for our services since Nagstamon is used by big team for years ;(

@HenriWahl
Copy link
Owner

@arthur-lbchn sorry I couldn't but @BenoitPoulet might help further. I know there were changes in the API, even between 22.04 and 22.10.

@arthur-lbchn
Copy link
Author

@HenriWahl I've finally found out the error
File "Nagstamon\Servers\Centreon\CentreonAPI.py", line 426, in _get_status
KeyError: 'flapping'

So I forked your project and build it with the line 426 commented (Centreon doesn't have flapping enabled by default and we don't actually care)

Everything works properly for me now ;) Thanks for your help.

@HenriWahl
Copy link
Owner

@arthur-lbchn thanks this might be of interest to get into upstream again.

If flapping is not enabled by default it is still an option to be enabled?

@arthur-lbchn
Copy link
Author

@HenriWahl yes, it's under Configuration > Pollers > Engine configuration

image

@HenriWahl
Copy link
Owner

Please check latest build 3.11-20221103 which applies a patch based on yours.

@arthur-lbchn
Copy link
Author

@HenriWahl thank you, everything works. appreciate all your efforts.

@BenoitPoulet
Copy link
Contributor

Sorry i was very busy theses days, thanks for the fix !

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

3 participants