Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Shinken + check_mk + PnP4Nagios: Access-Control-Allow-Origin

Empfohlene Antworten

Servus,

ich muss mich um ein Problem kümmern, wo ich langsam am verzweifeln bin.

Folgendes Szenario:

Ich habe eine Überwachung am Laufen (Shinken - vorher Nagios. Die nagios.cfg wird weiter benutzt), die auf 4 Servern läuft. Läuft alles gut bis dahin. Allerdings macht mir PnP4Nagios zu schaffen. Die Graphen werden nicht ausgegeben. Als Web-Überwachungsoberfläche verwende ich check_mk.

Schaue ich mir die Fehlermeldung unter der Console mit den Developer Tools von Chrome an, erhalte ich folgende Fehlermeldung:

XMLHttpRequest cannot load http://194.xx.xx.123/pnp4nagios/index.php/json?&host=XXX01XXX2&srv=fs_D%3A%2F&source=0&view=1&_ajaxid=1385733583. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://194.xx.xx.121' is therefore not allowed access.

Mein OS - CentOS release 5.2 (Final)

ich habe mich schon teilweise eingelesen, aber ich raffs einfach nicht. Die Methode "Multiple Allow-Control-Access-Origin using the header method" scheint nicht zu funktionieren bzw. ich weiss nicht, ob korrekt umgesetzt. Google macht mich iwie auch nicht schlauer, deshalb hoffe ich, dass einer von euch mir mal unter die Arme greifen kann. Für mich insgesamt totales Neuland, aber muss mich da iwie durchbeißen :D

Sollten noch weiter Infos nötig sein, einfach Fragen. Ich werde sie dann nachreichen.

Bis dahin ein schönes WE

MfG

Black_Warrior

  • 2 Wochen später...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.