Skip to content
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

Nagstamon crashes on Checkmk Multisite recheck #1085

Open
moschlar opened this issue Dec 2, 2024 · 1 comment
Open

Nagstamon crashes on Checkmk Multisite recheck #1085

moschlar opened this issue Dec 2, 2024 · 1 comment

Comments

@moschlar
Copy link
Contributor

moschlar commented Dec 2, 2024

Using Nagstamon 3.16.2 on Debian - clicking Recheck on a Service on a Checkmk Multisite generates this Stacktrace:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/Nagstamon/QUI/__init__.py", line 4320, in recheck
    self.server.set_recheck(info_dict)
  File "/usr/lib/python3/dist-packages/Nagstamon/Servers/Generic.py", line 413, in set_recheck
    self._set_recheck(info_dict['host'], info_dict['service'])
  File "/usr/lib/python3/dist-packages/Nagstamon/Servers/Multisite.py", line 609, in _omd_set_recheck
    csrf_token = self._get_csrf_token(host, service)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/Nagstamon/Servers/Multisite.py", line 653, in _get_csrf_token
    csrf_token = self.fetch_url(self.urls["transid"].replace("$HOST$", host).replace("$SERVICE$", service.replace(" ", "+")), "obj").result.find(attrs={"name": "csrf_token"})["value"]
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
@HenriWahl
Copy link
Owner

Hi @moschlar - sorry for the late reply. This happens with context menu? I use Checkmk too but cant reproduce this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants