[Check_mk (english)] ASCII plugin error after upgrade to 1.6.0

Hi,

  we just upgraded to 1.6.0 series from 1.5.0.

  We get this error with one of the plugins:

Loading "/omd/sites/master/local/share/check_mk/web/plugins/wato/cisco_asa_temp.py" failed: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)

  The plugin in question is this:

https://checkmk.com/check_mk-exchange-file.php?&file=cisco_asa_temp-20160702.v0.2a.mkp

  Yes, the problem is this bit of code:

            Integer(title = _("warning at"), unit = _("° celsius"), default_value = 60 ),
            Integer(title = _("critical at"), unit = _("° celsius"), default_value = 70 ),

(The degree mark).

  Why is this character suddenly forbidden? What needs to be changed?

- Antti

Hi Antti,

the fix is easy.

This string must be coded as Unicode.

Change the line to

        Integer(title = _("warning at"), unit = _(u"° celsius"), default_value = 60 ),
        Integer(title = _("critical at"), unit = _(u"° celsius"), default_value = 70 ),

This should solve the problem.

With the actual version this is also solved - https://thl-cmk.hopto.org/gitlab/checkmk/cisco/asa/cisco_asa_temp

Best regards

Andreas

···

Am Do., 12. Dez. 2019 um 08:32 Uhr schrieb Antti Mäkelä antti.makela@advania.com:

Hi,

we just upgraded to 1.6.0 series from 1.5.0.

We get this error with one of the plugins:

Loading “/omd/sites/master/local/share/check_mk/web/plugins/wato/cisco_asa_temp.py” failed: ‘ascii’ codec can’t decode byte 0xc2 in position 0: ordinal not in range(128)

The plugin in question is this:

https://checkmk.com/check_mk-exchange-file.php?&file=cisco_asa_temp-20160702.v0.2a.mkp

Yes, the problem is this bit of code:

        Integer(title = _("warning at"), unit = _("° celsius"), default_value = 60 ),

        Integer(title = _("critical at"), unit = _("° celsius"), default_value = 70 ),

(The degree mark).

Why is this character suddenly forbidden? What needs to be changed?

  • Antti

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

The mailing list will be shut down by 31.12.2019. Sign up at the Checkmk Community forum: https://forum.checkmk.com.

Ah, right.

I guess it would be nice if these ex-plugins that have been included in the main tree would let you know that there's actually a newer implementation as part of the distribution now. Will remove the plugin.

- Antti

···

-----Original Message-----
From: Andreas Döhler <andreas.doehler@gmail.com>
Sent: torstai 12. joulukuuta 2019 23.27
To: Antti Mäkelä <antti.makela@advania.com>
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] ASCII plugin error after upgrade to 1.6.0

Hi Antti,

the fix is easy.
This string must be coded as Unicode.
Change the line to

            Integer(title = _("warning at"), unit = _(u"° celsius"), default_value = 60 ),
            Integer(title = _("critical at"), unit = _(u"° celsius"), default_value = 70 ),

This should solve the problem.
With the actual version this is also solved - https://thl-cmk.hopto.org/gitlab/checkmk/cisco/asa/cisco_asa_temp

Best regards
Andreas

Am Do., 12. Dez. 2019 um 08:32 Uhr schrieb Antti Mäkelä <antti.makela@advania.com <mailto:antti.makela@advania.com> >:

  Hi,
  
    we just upgraded to 1.6.0 series from 1.5.0.
  
    We get this error with one of the plugins:
  
  Loading "/omd/sites/master/local/share/check_mk/web/plugins/wato/cisco_asa_temp.py" failed: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
  
    The plugin in question is this:
  
  https://checkmk.com/check_mk-exchange-file.php?&file=cisco_asa_temp-20160702.v0.2a.mkp
  
    Yes, the problem is this bit of code:
  
              Integer(title = _("warning at"), unit = _("° celsius"), default_value = 60 ),
              Integer(title = _("critical at"), unit = _("° celsius"), default_value = 70 ),
  
  (The degree mark).
  
    Why is this character suddenly forbidden? What needs to be changed?
  
   - Antti
  _______________________________________________
  checkmk-en mailing list
  checkmk-en@lists.mathias-kettner.de <mailto:checkmk-en@lists.mathias-kettner.de>
  Manage your subscription or unsubscribe
  https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en
  
  The mailing list will be shut down by 31.12.2019. Sign up at the Checkmk Community forum: https://forum.checkmk.com.

Oh wait - it's not in the distribution actually, I didn't pay attention to the link. Was there some new place that points to this git tree? I always thought that check_mk exchange would be the go-to place for plugins...why is the version there outdated?

- Antti

···

-----Original Message-----
From: checkmk-en <checkmk-en-bounces@lists.mathias-kettner.de> On Behalf Of Antti Mäkelä
Sent: perjantai 13. joulukuuta 2019 9.41
To: Andreas Döhler <andreas.doehler@gmail.com>
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] ASCII plugin error after upgrade to 1.6.0

Ah, right.

I guess it would be nice if these ex-plugins that have been included in the main tree would let you know that there's actually a newer implementation as part of the distribution now. Will remove the plugin.

- Antti

-----Original Message-----
From: Andreas Döhler <andreas.doehler@gmail.com>
Sent: torstai 12. joulukuuta 2019 23.27
To: Antti Mäkelä <antti.makela@advania.com>
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] ASCII plugin error after upgrade to 1.6.0

Hi Antti,

the fix is easy.
This string must be coded as Unicode.
Change the line to

            Integer(title = _("warning at"), unit = _(u"° celsius"), default_value = 60 ),
            Integer(title = _("critical at"), unit = _(u"° celsius"), default_value = 70 ),

This should solve the problem.
With the actual version this is also solved - https://thl-cmk.hopto.org/gitlab/checkmk/cisco/asa/cisco_asa_temp

Best regards
Andreas

Am Do., 12. Dez. 2019 um 08:32 Uhr schrieb Antti Mäkelä <antti.makela@advania.com <mailto:antti.makela@advania.com> >:

  Hi,
  
    we just upgraded to 1.6.0 series from 1.5.0.
  
    We get this error with one of the plugins:
  
  Loading "/omd/sites/master/local/share/check_mk/web/plugins/wato/cisco_asa_temp.py" failed: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)
  
    The plugin in question is this:
  
  https://checkmk.com/check_mk-exchange-file.php?&file=cisco_asa_temp-20160702.v0.2a.mkp
  
    Yes, the problem is this bit of code:
  
              Integer(title = _("warning at"), unit = _("° celsius"), default_value = 60 ),
              Integer(title = _("critical at"), unit = _("° celsius"), default_value = 70 ),
  
  (The degree mark).
  
    Why is this character suddenly forbidden? What needs to be changed?
  
   - Antti
  _______________________________________________
  checkmk-en mailing list
  checkmk-en@lists.mathias-kettner.de <mailto:checkmk-en@lists.mathias-kettner.de>
  Manage your subscription or unsubscribe
  https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en
  
  The mailing list will be shut down by 31.12.2019. Sign up at the Checkmk Community forum: https://forum.checkmk.com.

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

The mailing list will be shut down by 31.12.2019. Sign up at the Checkmk Community forum: https://forum.checkmk.com.

Hi Antti,

This plugin is not included inside the main checkmk it is external also in the actual version. The Git repo is from my colleague at work :slight_smile:

Best regards

Andreas

···

Antti Mäkelä antti.makela@advania.com schrieb am Fr., 13. Dez. 2019, 08:40:

Ah, right.

I guess it would be nice if these ex-plugins that have been included in the main tree would let you know that there’s actually a newer implementation as part of the distribution now. Will remove the plugin.

  • Antti

-----Original Message-----

From: Andreas Döhler andreas.doehler@gmail.com

Sent: torstai 12. joulukuuta 2019 23.27

To: Antti Mäkelä antti.makela@advania.com

Cc: checkmk-en@lists.mathias-kettner.de

Subject: Re: [Check_mk (english)] ASCII plugin error after upgrade to 1.6.0

Hi Antti,

the fix is easy.

This string must be coded as Unicode.

Change the line to

        Integer(title = _("warning at"), unit = _(u"° celsius"), default_value = 60 ),

        Integer(title = _("critical at"), unit = _(u"° celsius"), default_value = 70 ),

This should solve the problem.

With the actual version this is also solved - https://thl-cmk.hopto.org/gitlab/checkmk/cisco/asa/cisco_asa_temp

Best regards

Andreas

Am Do., 12. Dez. 2019 um 08:32 Uhr schrieb Antti Mäkelä <antti.makela@advania.com mailto:antti.makela@advania.com >:

    Hi,



      we just upgraded to 1.6.0 series from 1.5.0.



      We get this error with one of the plugins:



    Loading "/omd/sites/master/local/share/check_mk/web/plugins/wato/cisco_asa_temp.py" failed: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)



      The plugin in question is this:



    [https://checkmk.com/check_mk-exchange-file.php?&file=cisco_asa_temp-20160702.v0.2a.mkp](https://checkmk.com/check_mk-exchange-file.php?&file=cisco_asa_temp-20160702.v0.2a.mkp)



      Yes, the problem is this bit of code:



                Integer(title = _("warning at"), unit = _("° celsius"), default_value = 60 ),

                Integer(title = _("critical at"), unit = _("° celsius"), default_value = 70 ),



    (The degree mark).



      Why is this character suddenly forbidden? What needs to be changed?



     - Antti

    _______________________________________________

    checkmk-en mailing list

    checkmk-en@lists.mathias-kettner.de <mailto:checkmk-en@lists.mathias-kettner.de>

    Manage your subscription or unsubscribe

    [https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en](https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en)



    The mailing list will be shut down by 31.12.2019. Sign up at the Checkmk Community forum: [https://forum.checkmk.com](https://forum.checkmk.com).