Code Monkey home page Code Monkey logo

Comments (23)

HenriWahl avatar HenriWahl commented on July 21, 2024 1

Strange, really strange. I will try to reproduce this.

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024 1

@coolburner1337 kind of good news... the problem does not only occur on % services... at least with the demo server https://livedemos.mjs.de/icingaweb2.
Other findings are:

  • the line 371 in IcingaWeb2.py, the one before the crash, tries to find the ID IcingaModuleMonitoringFormsCommandObjectCheckNowCommandForm in the Icinga output but this one is not existent. Looks like someone changed something at the Icinga side.
  • Even worse from a Nagstamon perspective - all IDs have some random suffix which makes it harder to find them.
  • The used demo server uses 2.11.4, so your impression that it lasts longe is absolutely correct.

So investigations go further...

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Please check the latest testing release.

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

Hi, the issue still persists even with the latest version "Nagstamon-3.13-20240108-win64_setup.exe" :-(

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Can you please try the debugging version https://github.com/HenriWahl/Nagstamon/releases/download/latest/Nagstamon-3.13-20240108-win64_debug.zip to get some console output?

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

The console output is either:

Traceback (most recent call last):
File "Nagstamon\QUI_init_.py", line 4301, in recheck
File "Nagstamon\Servers\Generic.py", line 413, in set_recheck
File "Nagstamon\Servers\IcingaWeb2.py", line 372, in _set_recheck
AttributeError: 'NoneType' object has no attribute 'findNext'

Or:

Traceback (most recent call last):
File "Nagstamon\QUI_init_.py", line 4334, in recheck_all
File "Nagstamon\Servers\Generic.py", line 413, in set_recheck
File "Nagstamon\Servers\IcingaWeb2.py", line 372, in _set_recheck
AttributeError: 'NoneType' object has no attribute 'findNext'

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

@HenriWahl:
Do you have any idea on fixing that?
That would be nice! :-)

Thank you!

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Can you send me the whole console output please?

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

Recheck all
Recheck

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

@HenriWahl : Or do you mean something else?

Kind regards

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

@coolburner1337 no, thanks, I just hoped there would be more info but well, so this must be enough. 👍

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Does it actually work if there is no % in the service name? The fn part is, that the form name IcingaModuleMonitoringFormsCommandObjectCheckNowCommandForm which is lookded for and not found only exists in the Nagstamon codebase - I did not found any other trace of it.

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Maybe it works with one of the other Icinga plugins in Nagstamon?

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

Does it actually work if there is no % in the service name?

Yes, it does. We have over 1000 services in Icinga and only the ones with a % in the service name make Nagstamon crash on recheck.

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

Maybe it works with one of the other Icinga plugins in Nagstamon?

I'll give it a try.

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

Sadly I'm not able to use the other Icinga plugins in Nagstamon. So the issue persists for me.

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Just in case: you are allowed to recheck services on the monitoring Incinga2 Server?

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

And: What version of IcingaWeb2 do you use?

Update: I tested with https://icinga.com/demo, which uses Icinga 2.12.0 and there I only can connect via IncingaDB, not via IcingaWeb2. The latter seems to be somehow deprecated?

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

Just in case: you are allowed to recheck services on the monitoring Incinga2 Server?

Of cource we are! We are using the tool since years and everthing works fine, except then the icinga service name includes an %-sign ;-)

Actually we are using Icinga Version 2.14.1 with Icingaweb2 Version 2.12.1 -- so newer then icinga.com himself :-P -- and the connection works in Nagstamon.

We try to keep our Icinga environment and Nagstamon always up to date. So we face this issue with the %-sign since several versions of Icinga and Nagstamon. (Only that you know, this is not a new issue!)

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Maybe you could send me the plain HTML of a Service status page or wherever in Icinga webinterface it is possible to trigger a recheck?

from nagstamon.

coolburner1337 avatar coolburner1337 commented on July 21, 2024

@HenriWahl : Hi, thanks for your investigation!
To your question... This kind of recheck works for us:
image
Do you need the plain HTML of this complete site, or?

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Yes, this would be great. You could redact it or send as mail to [email protected] if you would not like to see its content here.

from nagstamon.

HenriWahl avatar HenriWahl commented on July 21, 2024

Please check latest release 3.13-20240221.

from nagstamon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.