Comments (8)
Hello,
That's strange I already validated the code on 23.10 (beta).
If the code has not be already fixed I will have a look asap.
from nagstamon.
Hello,
I found the cause, they changed the JSON in the final release :|
The mapping must be change but only starting with 23.10
I will try to do it this evening
from nagstamon.
@BenoitPoulet do you have an idea?
from nagstamon.
I'll add this screen also, I think it might help, as it's linked to "SRV01 / Disk_W88_C93_D"
![Screenshot 2023-10-31 181918](https://private-user-images.githubusercontent.com/4152786/279462494-5dbe055f-ad26-4979-ac29-e668acfbafe6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzMzcwNTEsIm5iZiI6MTcxMDMzNjc1MSwicGF0aCI6Ii80MTUyNzg2LzI3OTQ2MjQ5NC01ZGJlMDU1Zi1hZDI2LTQ5NzktYWMyOS1lNjY4YWNmYmFmZTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMTNUMTMzMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTEwNTRmNjI1Njc4ZmNkNDY3MzYwZTdhZTk0OTQyMzg2MTRhODY3NGE2N2Y0NjQ0YTRlNmYzOTNkZWEwOGE5MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Van8xtqjdaby33OhhgU-X-znTMGz9GWkqSlVHdRwN4k)
The "Disk_W88_C93_D" Service is currently in Critical state.
from nagstamon.
I've forked and built the project (master) with the problematic line commented. I was able to go one line further...
At the end, this is the code that allow Nagstamon to start without error for Centreon 23.10:
![Screenshot 2023-11-03 111904](https://private-user-images.githubusercontent.com/4152786/280248141-bde97d98-9275-4c1c-8db8-3412e8a512ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzMzcwNTEsIm5iZiI6MTcxMDMzNjc1MSwicGF0aCI6Ii80MTUyNzg2LzI4MDI0ODE0MS1iZGU5N2Q5OC05Mjc1LTRjMWMtOGRiOC0zNDEyZThhNTEyZWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMTNUMTMzMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmUwNWJhMTJhZDIyZDNhZTI4ODk1YzljZTUxMjQ1NDAxOGNlZDA2MjU2YzI4MjE5ZGI0ZDkwMTA0NTMyNGE5ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.PhwbhMq9iW9gFg83W5JtvqY1ukV7lbSmZggVAQ1Zlds)
4 lines commented:
self.new_hosts[new_host].services[new_service].passiveonly = alerts["passive_checks"]
self.new_hosts[new_host].services[new_service].notifications_disabled = not alerts["notification_enabled"]
self.new_hosts[new_host].services[new_service].acknowledged = alerts["acknowledged"]
self.new_hosts[new_host].services[new_service].scheduled_downtime = alerts["in_downtime"]
On GitHub: Zelphy@f6d8237
![Screenshot 2023-11-03 111720](https://private-user-images.githubusercontent.com/4152786/280249315-92855b8b-cef4-4c83-ab7b-40452f1ce8fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzMzcwNTEsIm5iZiI6MTcxMDMzNjc1MSwicGF0aCI6Ii80MTUyNzg2LzI4MDI0OTMxNS05Mjg1NWI4Yi1jZWY0LTRjODMtYWI3Yi00MDQ1MmYxY2U4ZmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMTNUMTMzMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWI3YzI3YTBiMjc4OWEzYjYxMWRiMzc2NzAxNTNhZGJhMjJhNjQ0OTI2MWY4MDVhZDI1ZTZhYTczOTNhNGZhYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.qvUrm51fG82wVxiW7gPDvj-AeMS6hBiDVF4FBo7vViQ)
![Screenshot 2023-11-03 111926](https://private-user-images.githubusercontent.com/4152786/280249364-025c3689-b215-45e4-a56e-15c328f6117f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzMzcwNTEsIm5iZiI6MTcxMDMzNjc1MSwicGF0aCI6Ii80MTUyNzg2LzI4MDI0OTM2NC0wMjVjMzY4OS1iMjE1LTQ1ZTQtYTU2ZS0xNWMzMjhmNjExN2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMTNUMTMzMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTIxMDAyNTk5MDc3YjMzYWRhNGVkOGM0NmFiMDM5NmNhMDcyMTEyYjM4ODkzYTkzNjhkODc3NGViZDJkYjIzMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.uHctzprnTNmYiwhnk4W9ndy0MgbEPvcICQpcSQAiuw4)
from nagstamon.
Would be interesting what the 23.10 version actually contains and what consequences the now missing 4 lines will have.
from nagstamon.
To avoid another similar problem, I needed to comment 4 other lines:
![Screenshot 2023-11-06 101512](https://private-user-images.githubusercontent.com/4152786/281673355-64036557-e388-47c1-adae-b5a3a1726b4c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzMzcwNTEsIm5iZiI6MTcxMDMzNjc1MSwicGF0aCI6Ii80MTUyNzg2LzI4MTY3MzM1NS02NDAzNjU1Ny1lMzg4LTQ3YzEtYWRhZS1iNWEzYTE3MjZiNGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMTNUMTMzMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmJjMjhiZmFiYzgwZTYyYTFiMTI3ZjQ2YjcxNmRhZTk1NGE1NTNkZDhkZmVlNTVkZGQ5YTQxMTI2YWFiMzg2ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RhXl1bA9lEBc3YN7bdkga0euJTUEzUuuUrnIaXhi5T8)
![Screenshot 2023-11-09 095712](https://private-user-images.githubusercontent.com/4152786/281673874-6707d73e-737a-4e18-b41d-48d9fa5b0665.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzMzcwNTEsIm5iZiI6MTcxMDMzNjc1MSwicGF0aCI6Ii80MTUyNzg2LzI4MTY3Mzg3NC02NzA3ZDczZS03MzdhLTRlMTgtYjQxZC00OGQ5ZmE1YjA2NjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMTNUMTMzMjMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzVlZjRiZjAyMzY5MDg5Nzg2YzliZjA0MTIxZTBhZTY1ZDc1OTNlZTcwNDI2OGU0YjMyYzZmZjhjZDdhMjU0YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BzTnetd8PMeK4RbnvBt9owQ_nhRpr3IDpqmFFz0CUsw)
from nagstamon.
Hello,
I had the same problem with Centreon 23.10.0
The solution proposed by @Zelphy works but some functionality is lost. For example, if a host is acknowledged in Centreon, you can no longer request that it not be displayed in Nagstamon.
from nagstamon.
Related Issues (20)
- Nagstatmon 3.12.0 not working with Centreon 23.10 HOT 11
- Nagstamon crashes while rechecking an icinga2 service if the servicename contains a % sign HOT 23
- Nagstamon 3.13 does not work with Centreon 23.10.5 HOT 4
- Nagstamon 3.12 not working with Centreon User with ACL HOT 4
- json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 1
- Some changes rolled back on IcingaDB support? HOT 4
- multiple lines on "status information" HOT 1
- Duration off by timezone offset HOT 5
- show alias HOT 3
- Monitor name int instance HOT 2
- SyntaxWarning: invalid escape sequence with Python 3.11.8 HOT 1
- Nagstamon v.3.14.0 problems to show services HOT 1
- Recheck not working on Thruk 3.12 HOT 6
- Nagstamon 3.14 inplace upgrade No longer working with Thruk instance. HOT 4
- Nagstamon 3.14 not starting since Plasma 6 HOT 36
- Nagstamon 3.14 - Changing network does not refresh the application
- Error message ""KeyError:'passive_checks'" HOT 7
- IcingaDBWeb.py HOT 4
- Converting Problem when using IcingaDB-Web HOT 7
- Can't login to Icinga2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagstamon.