HenriWahl / Nagstamon

Nagios status monitor for your desktop.
https://nagstamon.de
Other
422 stars 174 forks source link

Icinga2 Failure #205

Closed MarcusCaepio closed 8 years ago

MarcusCaepio commented 8 years ago

Tested the new GIT, seems Icinga2 is not working properly yet.

image

HenriWahl commented 8 years ago

Looks like some error coming from GUI.

MarcusCaepio commented 8 years ago

Seems it looks for any hosts with the "parent" parameter. But I don't have any parents defined yet. It's not compelling necessary

HenriWahl commented 8 years ago

'parent' is only used in GUI widgets, thus this is somehow misleading.

MarcusCaepio commented 8 years ago

Have this issue also with another Icinga2 Server.

HenriWahl commented 8 years ago

I found some problem in getting server version - .parent here is not GUI related, rather some parsing problem.

HenriWahl commented 8 years ago

Please check latest binaries from https://nagstamon.ifw-dresden.de/nagstamon-20/

MarcusCaepio commented 8 years ago

Still got this parent issue :( image

HenriWahl commented 8 years ago

With the latest version? And no problems displayed? Which Icinga2 version do you use?

MarcusCaepio commented 8 years ago

Yes, with the latest Git Master. Just downloaded it. I don't get any statuses. I am using the latest versions: ii icinga2 2.4.3-1~ppa1~trusty1 amd64 host and network monitoring system ii icinga2-bin 2.4.3-1~ppa1~trusty1 amd64 host and network monitoring system - daemon ii icinga2-common 2.4.3-1~ppa1~trusty1 all host and network monitoring system - common files ii icinga2-doc 2.4.3-1~ppa1~trusty1 all host and network monitoring system - documentation ii icinga2-ido-mysql 2.4.3-1~ppa1~trusty1 amd64 host and network monitoring system - MySQL support ii libicinga2 2.4.3-1~ppa1~trusty1 amd64 host and network monitoring system - internal libraries ii icingaweb2 2.2.0-1~ppa1 all simple and responsive web interface for Icinga ii icingaweb2-common 2.2.0-1~ppa1 all simple and responsive web interface for Icinga - common files ii icingaweb2-module-doc 2.2.0-1~ppa1 all simple and responsive web interface for Icinga - documentation module ii icingaweb2-module-monitoring 2.2.0-1~ppa1 all simple and responsive web interface for Icinga - monitoring module

HenriWahl commented 8 years ago

Please compare your local copy with https://github.com/HenriWahl/Nagstamon/blob/master/Nagstamon/Servers/Icinga2.py - the lines 99 and 110 in your error dump seem to be different to the current master.

MarcusCaepio commented 8 years ago

I already downloaded the current master again and build it. Still appears....

HenriWahl commented 8 years ago

But the line numbers do not match - from which URL exactly did you get the master?

MarcusCaepio commented 8 years ago

https://github.com/HenriWahl/Nagstamon/archive/master.zip

HenriWahl commented 8 years ago

Sorry, cannot reproduce. I am sorry to ask but are you sure you do not accidently run an older version? Can you please check a binary version of the latest release?

MarcusCaepio commented 8 years ago

Henry, serious, how can I use an older version, when I click on "Download ZIP" in Master Branch? :D I tried the latest Version via build an via the .py file which opens the cmd. Do you have any parent Parameter in your icinga config?

HenriWahl commented 8 years ago

Of course this should be the master version but If I see the line numbers the error screenshot they do not match. Maybe some caching/proxy in between? The parent crying comes from Beatifulsoup. The Icinga2.py now became a IcingaWeb2.py because there might one day be a Icinga2API. See https://github.com/HenriWahl/Nagstamon/blob/master/Nagstamon/Servers/IcingaWeb2.py. Do you get errors from IcingaWeb2.py?

MarcusCaepio commented 8 years ago

Hi Henry, sorry for late response, I was ill a while. I downloaded the latest 2.0-alpha-20160307 and still have trouble with the parent problem. :(

HenriWahl commented 8 years ago

What is the current error output on command line?

MarcusCaepio commented 8 years ago

I just realise, it's has been to long, that I workged with nagstamon....how do I run Nagstamon in Concsole, when I downloaded the alpha exe? I just have a Problem with psautils, so I cannot use the sources right now.... :(

HenriWahl commented 8 years ago

If you worked with sources before just install psutils via pip as described on https://nagstamon.ifw-dresden.de/nagstamon-20/

MarcusCaepio commented 8 years ago

Had to install visual studio again,.....now it works again.... image

MarcusCaepio commented 8 years ago

OMG, I got it. The Icinga URL was wrong. Instead of http://"Server"/authentication/login it has to be "Server"/icingaweb2/authentication/login So in my Nagsta Settings I have to type in http://"Server"/icingaweb2 to land on the correct Login Screen.

HenriWahl commented 8 years ago

Congratulation! This explains all the misunderstood error messages.

In general Nagstamon should catch and display such errors better.

MarcusCaepio commented 8 years ago

Thank you :dancer: But I noticed, that Nagstamon shows a wrong timestamp. It says on a fresh warning, that the last check was 2 hours ago. image Seems, that Nagsta is Using UTC timezone instead of CET. The Warning was created at 7 am not 5 am

HenriWahl commented 8 years ago

This is issue https://github.com/HenriWahl/Nagstamon/issues/218 - not clear yet where the problem comes from. I assume IcingaWeb2 gives wrong information.

MarcusCaepio commented 8 years ago

The never ending Story with timestamps in icinga2 :( Would you open an issue on dev.icinga.org for this?

HenriWahl commented 8 years ago

@simplexify already contacts the Icinga2 devs.

MarcusCaepio commented 8 years ago

:+1:

lippserd commented 8 years ago

Hi all,

We deliver UTC timestamps and you call datetime.datetime.utcfromtimestamp(...).

@MarcusCaepio Which never ending story are you referring to? ;)

Best regards, Eric

MarcusCaepio commented 8 years ago

@lippser Meant it in a kindly way, because I had trouble with the timeperiods in the past releases for a long time, where also the timestamps had sth to do with it, if I remember right. :) But that seemed to be fixed in the current release, so I was a little embittered, because there is sth. with the time, again :) :) :)