[Check_mk (english)] global name 'nagios_state_names' is not defined

Hi

I have upgraded our chkmk 1.2.6p12 CRE to 1.4.0p25 CRE , most things seem fine but I have one issue with a mysql check we have. The check on the server runs fine and produces the output as expected but on the server end it crash dumps (see below). I have run a ‘cmk-R’ to force a recompile, but the issue still persists.

I trawled through the mail articles and found various similar problems but the solution suggested have not helped.

Any suggestions??

Thanks

Steve

Crash Type
check
Time
2018-03-02 10:49:15
Operating System
el6
Check_MK Version
1.4.0p25
Python Version
2.7.14 (default, Feb 16 2018, 17:21:57) [GCC 7.2.0]
Exception

NameError (global name 'nagios_state_names' is not defined)

Traceback


  File "/omd/sites/dxi_dev/var/check_mk/precompiled/ns-dv-018-dxisql-03", line 1148, in execute_check
File "/omd/sites/dxi_dev/var/check_mk/precompiled/ns-dv-018-dxisql-03", line 5814, in check_mysql_status

Local Variables

{}

Hi Steven,

do this as siteuser to find checks causing this (they’re not compatible to 1.4.0 or are missing some include files - who knows):

grep nagios_state_names ~/local/share/check_mk/checks/

BR,

Marcel

···

2018-03-02 11:54 GMT+01:00 Steven Parker steven.parker@8x8.com:

Hi

I have upgraded our chkmk 1.2.6p12 CRE to 1.4.0p25 CRE , most things seem fine but I have one issue with a mysql check we have. The check on the server runs fine and produces the output as expected but on the server end it crash dumps (see below). I have run a ‘cmk-R’ to force a recompile, but the issue still persists.

I trawled through the mail articles and found various similar problems but the solution suggested have not helped.

Any suggestions??

Thanks

Steve

Crash Type
check
Time
2018-03-02 10:49:15
Operating System
el6
Check_MK Version
1.4.0p25
Python Version
2.7.14 (default, Feb 16 2018, 17:21:57) [GCC 7.2.0]
Exception

NameError (global name 'nagios_state_names' is not defined)

Traceback

File "/omd/sites/dxi_dev/var/check_mk/precompiled/ns-dv-018-

  dxisql-03", line 1148, in execute_check
File "/omd/sites/dxi_dev/var/check_mk/precompiled/ns-dv-018-dxisql-03", line 5814, in check_mysql_status

Local Variables

{}

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

It looks like nagios_state_names has been renamed to core_state_names
already in Check_MK 1.2.8.

Have a look at ~/share/check_mk/modules/check_mk_base.py

You will have to change the check plugins in
~/local/share/check_mk/checks to fix the issue.

Regards

···

On 02.03.2018 11:54, Steven Parker wrote:

NameError (global name 'nagios_state_names' is not defined)

--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin

Thanks Marcel, I found an old check ( downloaded from the CheckMK Exchange I think).

Changing nagios_state_names to core_state_names in that script has resolved the issue.

···

On 2 March 2018 at 11:08, Marcel Schulte schulte.marcel@gmail.com wrote:

Hi Steven,

do this as siteuser to find checks causing this (they’re not compatible to 1.4.0 or are missing some include files - who knows):

grep nagios_state_names ~/local/share/check_mk/checks/

BR,

Marcel

2018-03-02 11:54 GMT+01:00 Steven Parker steven.parker@8x8.com:

Hi

I have upgraded our chkmk 1.2.6p12 CRE to 1.4.0p25 CRE , most things seem fine but I have one issue with a mysql check we have. The check on the server runs fine and produces the output as expected but on the server end it crash dumps (see below). I have run a ‘cmk-R’ to force a recompile, but the issue still persists.

I trawled through the mail articles and found various similar problems but the solution suggested have not helped.

Any suggestions??

Thanks

Steve

Crash Type
check
Time
2018-03-02 10:49:15
Operating System
el6
Check_MK Version
1.4.0p25
Python Version
2.7.14 (default, Feb 16 2018, 17:21:57) [GCC 7.2.0]
Exception

NameError (global name 'nagios_state_names' is not defined)

Traceback

File "/omd/sites/dxi_dev/var/check_mk/precompiled/ns-dv-018-dxisq

  l-03", line 1148, in execute_check
File "/omd/sites/dxi_dev/var/check_mk/precompiled/ns-dv-018-dxisql-03", line 5814, in check_mysql_status

Local Variables

{}

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en