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

Error with Check_MK during fetching URL for nagstamon #23

Closed
HU-ET opened this issue Jun 6, 2013 · 2 comments
Closed

Error with Check_MK during fetching URL for nagstamon #23

HU-ET opened this issue Jun 6, 2013 · 2 comments

Comments

@HU-ET
Copy link

HU-ET commented Jun 6, 2013

hello,

I am trying to use Nagstamon (latest version : 0.9.9) for Windows with Check_MK Multisite 1.2.2p1 (and Apache2 on Debian).

I have configured it (http://mathias-kettner.de/checkmk_multisite_nagstamon.html) correctly with full URL to Multisite and login.

But i have this error :
Status: ERROR File "string", line 1

debug log :

DEBUG: 2013-06-06 15:08:14.581000 Recheck all: Rechecking all services on all hosts on all servers...

DEBUG: 2013-06-06 15:08:14.581000 MySite Recheck all: All servers, hosts and services are rechecked.

DEBUG: 2013-06-06 15:08:18.628000 MySite Checking server...

DEBUG: 2013-06-06 15:08:19.581000 MySite Checking server...

DEBUG: 2013-06-06 15:08:27.440000 MySite FetchURL: http://toto.fr/check_mk/view.py?view_name=nagstamon_hosts&output_format=python&is_host_acknowledged=-1&is_service_acknowledged=-1&is_host_notifications_enabled=-1&is_service_notifications_enabled=-1&is_host_active_checks_enabled=-1&is_service_active_checks_enabled=-1&host_scheduled_downtime_depth=-1&is_in_downtime=-1 CGI Data: None

ERROR: 2013-06-06 15:08:27.440000 MySite Traceback (most recent call last):

File "C:\Users\Henri Wahl\Desktop\nagstamon\build\pyi.win32\nagstamon\outPYZ1.pyz/Nagstamon.Server.Multisite", line 206, in _get_status

File "C:\Users\Henri Wahl\Desktop\nagstamon\build\pyi.win32\nagstamon\outPYZ1.pyz/Nagstamon.Server.Multisite", line 181, in _get_url

File "", line 1

<script language="javascript">

^

SyntaxError: invalid syntax

DEBUG: 2013-06-06 15:08:27.440000 MySite server return values: ERROR File "string", line 1

DEBUG: 2013-06-06 15:08:33.444000 MySite ACTION: Browser http://toto.fr/check_mk/

DEBUG: 2013-06-06 15:08:46.885000 Saving config to C:\Documents and Settings\me.nagstamon\nagstamon.conf

when i clic on buttons on Nagstamon, it redirect me on corrects URL of Multisite, for example :
http://toto.fr/check_mk//index.py?start_url=view.py?view_name=nagstamon_svc "Service problems for NagStaMon", this page show services with CRIT status

logs on Apache server are OK for the fetched URL :

X.X.X.X- "" [06/Jun/2013:15:21:00 +0200] "GET /check_mk/view.py?view_name=nagstamon_hosts&output_format=python&is_host_acknowledged=-1&is_service_acknowledged=-1&is_host_notifications_enabled=-1&is_service_notifications_enabled=-1&is_host_active_checks_enabled=-1&is_service_active_checks_enabled=-1&host_scheduled_downtime_depth=-1&is_in_downtime=-1 HTTP/1.1" 200 2282 "-" "Python-urllib/2.7"

when i try this URL (from apache access log : /check_mk/view.py?view_name=nagstamon_hosts&output_format=python&...) in my browser, i see correct data in JSON format :

[
['host', 'host_icons', 'host_check_age', ...,
[u'10.100.208.43',u'','8 sec','3 hrs','1/1','UP',u'OK - 10.100.208.43: ...

I think, the probem comes from Nagstamon and not from Check_MK.

Can you solve this probleme, please ?

best regards

Hugo

@HenriWahl
Copy link
Owner

Either use latest unstable or switch your Check_MK config back to Apache authentification (somewhere in basic setup of Check_MK, see http://mathias-kettner.de/checkmk_multisite_login_dialog.html)
Regards

@HU-ET
Copy link
Author

HU-ET commented Jun 7, 2013

OK
The unstable 0.9.10-devel version of Nagstamon run correctly with Check_MK.
thanks,
Hugo

@HU-ET HU-ET closed this as completed Jun 7, 2013
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