HenriWahl / Nagstamon

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

Nagstamon - Authentication Error #691

Closed iRevenant closed 2 years ago

iRevenant commented 3 years ago

Hello,

I recently downloaded Nagstamon for CheckMK. I have all of the right login credentials, however it is still throwing an Authentication error flag when I try to login. Is there a root cause for this or is there something I can do to mitigate it? Screenshot_1

toubib commented 3 years ago

Hi,

You can try to enable debug mode in the nagstamon.conf config file in order to have more information:

debug_mode = True
debug_to_file = True
debug_file = /tmp/nagstamon.log
GerasDraugas commented 3 years ago

Same problem with 3.6 and 3.7-20210408 debug mode and file enabled, but file is empty. Nagstamon show Authentication problem.

Nagstamon 3.4.1 working fine.

I'm using: Naemon Core 1.2.4 Thruk Monitoring Webinterface Version 2.40-2

HenriWahl commented 3 years ago

What Checkmk version do you use?

GerasDraugas commented 3 years ago

I'm not using CheckMK.

pandvan commented 3 years ago

I'm facing a similar issue after upgrading Checkmk to version 2.0.0. By default now Checkmk set an idle timeout: https://checkmk.com/werk/12061

Once a day I've found nagstamon in "Authentication problem" state even if the credentials are correct. In fact, if I simply click to Authenticate, it will work until the next day without further auth issues.

From debug logs I cannot see anything useful at this regard, it seems properly working (FetchURL with no errors).

HenriWahl commented 2 years ago

If using Checkmk please check latest build https://github.com/HenriWahl/Nagstamon/releases/tag/latest

nikosbo commented 2 years ago

Hi all, I have an authentication error with IcincaWeb2. If I use a user local on Icingaweb2 server, authentication works, if I use ldap user I obtain an error on Nagstamon, even if on ldap server authentication is ok and I can connect by browser with that user. On nagstamon log I see ERROR: 2022-07-22 13:56:14.220200 hostname_server Traceback (most recent call last): File "Nagstamon\Servers\IcingaWeb2.py", line 233, in _get_status TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Any idea?

HenriWahl commented 2 years ago

Did id work somewhen? IcingaWeb2 is the correct Icinga module to use?

nikosbo commented 2 years ago

Are questions for me? I can login on web interface with ldap user. I don't know what to answer to second question.

HenriWahl commented 2 years ago

@nikosbo Did it work at any time with Nagstamon?

The second question is about which of the many Icinga flavors in Nagstamon do you use?

Which version of Nagstamon do you use?

nikosbo commented 2 years ago

I use Nagstamon 3.4.1, using a local user on Icinga I can login, if I use ldap user I cannot. Monitor type in Nagstamon is Icingaweb2 many Icinga flavors : what do you mean ?

HenriWahl commented 2 years ago

Please use at least Nagstamon 3.8.

nikosbo commented 2 years ago

I confirm that with 3.8.0 I don't have the problem, thank you. Nikos

Il 19 agosto 2022 21:07:55 CEST, Henri Wahl @.***> ha scritto:

Please use at least Nagstamon 3.8.

-- Reply to this email directly or view it on GitHub: https://github.com/HenriWahl/Nagstamon/issues/691#issuecomment-1221013190 You are receiving this because you were mentioned.

Message ID: @.***>