-
Notifications
You must be signed in to change notification settings - Fork 20
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
Contacts serialization error #47
Comments
I am also seeing this issue. To add some more data to this issue, I added a debug line before:
It produces the following output:
So it looks like Thruk is querying the service_notification_period and host_notification_period when it is generating the contact list. Those are both objects that get passed to the json serializer and that causes the error. |
Here is a patch to address this bug. Can you validate that it is working ? patch content
how to applycreate the patch file (say file.patch for exemple) and run the following command
|
Signed-off-by: David GUENAULT <[email protected]>
Patch submited as PR : #51 |
Fix #47 get period name instead of period object
This patch does fix the error condition that had been introduced and the livestatus module now returns results consistent to the previous version. While this has fixed the crashing issue, it doesn't appear to actually return any valid data. In my tests, the time period names are always returned as nothing. I was expecting time period names like 24x7, etc... |
did not notice that. Sorry i reopen until it is fixed. |
Confirmed as a livestatus bug since contacts notification periods are handled corectly internaly (from a shinken point of view). Need to dig a little .... |
spent some time trying to track this down, couldn't figure out where the host_notification_period was coming from. Traced it back to the input to |
there : https://github.com/naparuba/shinken/blob/master/shinken/daemons/brokerdaemon.py#L272 :
and the module
|
This happens while thruk tries to retrieve contacts info via livestatus
Also, running:
Results in
This happens with:
The text was updated successfully, but these errors were encountered: