[Check_mk (english)] Check_mk "Disallowed key characters in global data."

Is there any resolution to this problem besides commenting out the line of code mentioned in the post

http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-September/010479.html

I am now getting this all of the sudden, no changes made to the server itself just clean up of some host checks that were not working after the upgrade. Changes were disable the checks and re-inventory servers

Error received on browser.

Disallowed key characters in global data.

After following the post above The graphs come back but this does not seem like a proper solution.

Best Regards,

Kevin Comer
System Engineer/DevOps
Equifax, Inc.

Kevin.comer@equifax.com

Resolve this by clearing the browser cache

From this post

https://monitoring-portal.org/index.php?thread/35706-disallowed-key-characters-in-global-data-pnp4nagios/

···

From: checkmk-en-bounces@lists.mathias-kettner.de on behalf of Kevin Comer Kevin.Comer@equifax.com
Date: Tuesday, October 11, 2016 at 4:44 PM
To:checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de
Subject: [IE] [Check_mk (english)] Check_mk “Disallowed key characters in global data.”

Is there any resolution to this problem besides commenting out the line of code mentioned in the post

http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-September/010479.html

I am now getting this all of the sudden, no changes made to the server itself just clean up of some host checks that were not working after the upgrade. Changes were disable the checks and re-inventory servers

Error received on browser.

Disallowed key characters in global data.

After following the post above The graphs come back but this does not seem like a proper solution.

Best Regards,

This message contains proprietary information from Equifax which may be confidential. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of
this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster@equifax.com. Equifax® is a registered trademark of Equifax Inc. All rights reserved.

This error is caused by unusual browser cookies.

Replace the clean_input_keys function in /opt/omd/versions/default/lib/kohana/system/libraries/Input.php with this:

  public function clean_input_keys($str)
  {
    $chars = PCRE_UNICODE_PROPERTIES ? '\pL' : 'a-zA-Z';

    /* if ( ! preg_match('#^['.$chars.'0-9:_.-]++$#uD', $str))*/
                /* This is changed to fix the disallowed key characters problem */
                if ( ! preg_match('#^['.$chars.'0-9:_.\-/]++$#uD', $str))
    {
      exit('Disallowed key characters in global data.');
    }

    return $str;
  }

If this doesn’t fix the problem, you will have to figure out which cookie in your browser is causing the issue by deleting them one by one and then find the bad character, and adjust the regex to match it.

In my particular case, the bad cookie was created by a peoplesoft based site, so that might be a clue.
Patrick Gavin
Systems Administrator
Central IT Systems & Services
Humboldt State University

···

On Oct 11, 2016, at 1:50 PM, Kevin Comer <Kevin.Comer@equifax.com> wrote:

Resolve this by clearing the browser cache

From this post

https://monitoring-portal.org/index.php?thread/35706-disallowed-key-characters-in-global-data-pnp4nagios/

From: <checkmk-en-bounces@lists.mathias-kettner.de <mailto:checkmk-en-bounces@lists.mathias-kettner.de>> on behalf of Kevin Comer <Kevin.Comer@equifax.com <mailto:Kevin.Comer@equifax.com>>
Date: Tuesday, October 11, 2016 at 4:44 PM
To: "checkmk-en@lists.mathias-kettner.de <mailto:checkmk-en@lists.mathias-kettner.de>" <checkmk-en@lists.mathias-kettner.de <mailto:checkmk-en@lists.mathias-kettner.de>>
Subject: [IE] [Check_mk (english)] Check_mk "Disallowed key characters in global data."

Is there any resolution to this problem besides commenting out the line of code mentioned in the post

http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-September/010479.html

I am now getting this all of the sudden, no changes made to the server itself just clean up of some host checks that were not working after the upgrade. Changes were disable the checks and re-inventory servers

Error received on browser.

Disallowed key characters in global data.

After following the post above The graphs come back but this does not seem like a proper solution.

Best Regards,
This message contains proprietary information from Equifax which may be confidential. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster@equifax.com <mailto:postmaster@equifax.com>. Equifax® is a registered trademark of Equifax Inc. All rights reserved.
This message contains proprietary information from Equifax which may be confidential. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail postmaster@equifax.com <mailto:postmaster@equifax.com>. Equifax® is a registered trademark of Equifax Inc. All rights reserved._______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de <mailto:checkmk-en@lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en