[Check_mk (english)] Service discovery issues after OMD/CMK updates

Hi,

I’ve recently updated our OMD setup to version 2.6.0, and taken the opportunity to update check_mk as well, to the latest available versions for Centos 6 and 7.

This has cleared a couple of outstanding errors, but on servers with the mysql agent installed, the following error occures.

**Found ‘%s’ in service description (Host: xxx.viewranger.com, Check type: mysql.connections, Item: None). **Please try to rediscover the service to fix this issue.

For instance, when attempting to add a new host in WATO, or at the CLI level (see below)

OMD[vrmon]:~/var/check_mk/autochecks$ cmk -D --no-cache xxx.viewranger.com

xxx.viewranger.com

Addresses: aa.bb.cc.dd

Tags:

Host groups:

Contact groups: check-mk-notify

Type of agent: TCP (port: 6556)

Is aggregated: no

Services:

**Found ‘%s’ in service description (Host: xxx.viewranger.com, Check type: mysql.connections, Item: None). **Please try to rediscover the service to fix this issue.

This is despite attempting to clear/flush any existing configs, removing and rebuilding the autocheck file (no mysql present) , removing the agemt on the server itself, and restarting xinetd.

OMD[vrmon]:~/var/check_mk/autochecks$ more xxxx.viewranger.com.mk

[

(‘cpu.loads’, None, cpuload_default_levels),

(‘cpu.threads’, None, threads_default_levels),

(‘df’, u’/’, {}),

(‘df’, u’/boot’, {}),

(‘df’, u’/boot/efi’, {}),

(‘df’, u’/home’, {}),

(‘diskstat’, u’SUMMARY’, diskstat_default_levels),

(‘kernel’, u’Context Switches’, kernel_default_levels),

(‘kernel’, u’Major Page Faults’, kernel_default_levels),

(‘kernel’, u’Process Creations’, kernel_default_levels),

(‘kernel.util’, None, {}),

(‘lnx_if’, u’2’, {‘state’: [‘1’], ‘speed’: 1000000000}),

(‘logins’, None, logins_default_levels),

(‘mem.linux’, None, {}),

(‘mounts’, u’/’, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘mounts’, u’/boot’, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘mounts’, u’/boot/efi’, [u’codepage=cp437’, u’dmask=0077’, u’errors=remount-ro’, u’fmask=0077’, u’iocharset=ascii’, u’relatime’, u’rw’, u’shortname=winnt’]),

(‘mounts’, u’/home’, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘ntp.time’, None, {}),

(‘postfix_mailq’, None, {}),

(‘tcp_conn_stats’, None, tcp_conn_stats_default_levels),

(‘uptime’, None, {}),

]

Does anyone have a suggestion as to what else I might do ? The mysql checks can’t be excluded because the host addition fails, and at the present time I can’t add any monitoring. I’ve cleared the inventory, flushed the host, restarted the monitoring server, and so far, no luck

Mike

···

Mike Shield

Systems & Database Lead Engineer

+44 (0) 1223421355 Office

+44 (0) 7775713864 Mobile

Hi Mike,

this problem can be solved very quick. On the affected hosts do a “cmk -II ” or inside WATO a “tabula rasa” for discovery.

These checks must be rediscovered as they get an item. Before this check had no item.

If this will not help please check if you have a old modified version of the mysql check inside your “~/local/share/check_mk/checks/”.

And last suggestion - you need to reinventory all of your mysql servers.

br

Andreas

···

Mike Shield mikes@viewranger.com schrieb am Mo., 27. Nov. 2017 um 14:43 Uhr:

Hi,

I’ve recently updated our OMD setup to version 2.6.0, and taken the opportunity to update check_mk as well, to the latest available versions for Centos 6 and 7.

This has cleared a couple of outstanding errors, but on servers with the mysql agent installed, the following error occures.

**Found ‘%s’ in service description (Host: xxx.viewranger.com, Check type: mysql.connections, Item: None). **Please try to rediscover the service to fix this issue.

For instance, when attempting to add a new host in WATO, or at the CLI level (see below)

OMD[vrmon]:~/var/check_mk/autochecks$ cmk -D --no-cache xxx.viewranger.com

xxx.viewranger.com

Addresses: aa.bb.cc.dd

Tags:

Host groups:

Contact groups: check-mk-notify

Type of agent: TCP (port: 6556)

Is aggregated: no

Services:

**Found ‘%s’ in service description (Host: xxx.viewranger.com, Check type: mysql.connections, Item: None). **Please try to rediscover the service to fix this issue.

This is despite attempting to clear/flush any existing configs, removing and rebuilding the autocheck file (no mysql present) , removing the agemt on the server itself, and restarting xinetd.

OMD[vrmon]:~/var/check_mk/autochecks$ more xxxx.viewranger.com.mk

[

(‘cpu.loads’, None, cpuload_default_levels),

(‘cpu.threads’, None, threads_default_levels),

(‘df’, u’/', {}),

(‘df’, u’/boot’, {}),

(‘df’, u’/boot/efi’, {}),

(‘df’, u’/home’, {}),

(‘diskstat’, u’SUMMARY’, diskstat_default_levels),

(‘kernel’, u’Context Switches’, kernel_default_levels),

(‘kernel’, u’Major Page Faults’, kernel_default_levels),

(‘kernel’, u’Process Creations’, kernel_default_levels),

(‘kernel.util’, None, {}),

(‘lnx_if’, u’2’, {‘state’: [‘1’], ‘speed’: 1000000000}),

(‘logins’, None, logins_default_levels),

(‘mem.linux’, None, {}),

(‘mounts’, u’/‘, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘mounts’, u’/boot’, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘mounts’, u’/boot/efi’, [u’codepage=cp437’, u’dmask=0077’, u’errors=remount-ro’, u’fmask=0077’, u’iocharset=ascii’, u’relatime’, u’rw’, u’shortname=winnt’]),

(‘mounts’, u’/home’, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘ntp.time’, None, {}),

(‘postfix_mailq’, None, {}),

(‘tcp_conn_stats’, None, tcp_conn_stats_default_levels),

(‘uptime’, None, {}),

]

Does anyone have a suggestion as to what else I might do ? The mysql checks can’t be excluded because the host addition fails, and at the present time I can’t add any monitoring. I’ve cleared the inventory, flushed the host, restarted the monitoring server, and so far, no luck

Mike

Mike Shield

Systems & Database Lead Engineer

+44 (0) 1223421355 Office

+44 (0) 7775713864 Mobile


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

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

Andreas,

It was slightly more complicated than that, but basically came down to my previous attempts to monitor mysql, the definitions of which were static, and thus not intermediately obvious.

No amount of reinventory etc would clear it, I eventually came across the static definition file, rules.mk, chased through the docs, and found the section in WATO were the two static checks had been defined, and removed them.

eg

/opt/omd/sites/sitename/etc/check_mk/conf.d/wato

ls

contacts.mk global.mk groups.mk hosts.mk notifications.mk rules.mk

Just needs a bit more of a hint to make it clear that there are multiple areas to look at. I must have looked at the manual checks section a number of times, and didn’t see that I had 2 checks defined, which was the cause of the problem.

Now that the server is added back in, I’ll have a look at the mysql monitoring, but may just replace it with a PMM server

Thanks,

Mike

···

On 27 November 2017 at 22:09, Andreas Döhler andreas.doehler@gmail.com wrote:

Hi Mike,

this problem can be solved very quick. On the affected hosts do a “cmk -II ” or inside WATO a “tabula rasa” for discovery.

These checks must be rediscovered as they get an item. Before this check had no item.

If this will not help please check if you have a old modified version of the mysql check inside your “~/local/share/check_mk/checks/”.

And last suggestion - you need to reinventory all of your mysql servers.

br

Andreas

Mike Shield mikes@viewranger.com schrieb am Mo., 27. Nov. 2017 um 14:43 Uhr:

Hi,

I’ve recently updated our OMD setup to version 2.6.0, and taken the opportunity to update check_mk as well, to the latest available versions for Centos 6 and 7.

This has cleared a couple of outstanding errors, but on servers with the mysql agent installed, the following error occures.

**Found ‘%s’ in service description (Host: xxx.viewranger.com, Check type: mysql.connections, Item: None). **Please try to rediscover the service to fix this issue.

For instance, when attempting to add a new host in WATO, or at the CLI level (see below)

OMD[vrmon]:~/var/check_mk/autochecks$ cmk -D --no-cache xxx.viewranger.com

xxx.viewranger.com

Addresses: aa.bb.cc.dd

Tags:

Host groups:

Contact groups: check-mk-notify

Type of agent: TCP (port: 6556)

Is aggregated: no

Services:

**Found ‘%s’ in service description (Host: xxx.viewranger.com, Check type: mysql.connections, Item: None). **Please try to rediscover the service to fix this issue.

This is despite attempting to clear/flush any existing configs, removing and rebuilding the autocheck file (no mysql present) , removing the agemt on the server itself, and restarting xinetd.

OMD[vrmon]:~/var/check_mk/autochecks$ more xxxx.viewranger.com.mk

[

(‘cpu.loads’, None, cpuload_default_levels),

(‘cpu.threads’, None, threads_default_levels),

(‘df’, u’/', {}),

(‘df’, u’/boot’, {}),

(‘df’, u’/boot/efi’, {}),

(‘df’, u’/home’, {}),

(‘diskstat’, u’SUMMARY’, diskstat_default_levels),

(‘kernel’, u’Context Switches’, kernel_default_levels),

(‘kernel’, u’Major Page Faults’, kernel_default_levels),

(‘kernel’, u’Process Creations’, kernel_default_levels),

(‘kernel.util’, None, {}),

(‘lnx_if’, u’2’, {‘state’: [‘1’], ‘speed’: 1000000000}),

(‘logins’, None, logins_default_levels),

(‘mem.linux’, None, {}),

(‘mounts’, u’/‘, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘mounts’, u’/boot’, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘mounts’, u’/boot/efi’, [u’codepage=cp437’, u’dmask=0077’, u’errors=remount-ro’, u’fmask=0077’, u’iocharset=ascii’, u’relatime’, u’rw’, u’shortname=winnt’]),

(‘mounts’, u’/home’, [u’barrier=1’, u’data=ordered’, u’relatime’, u’rw’]),

(‘ntp.time’, None, {}),

(‘postfix_mailq’, None, {}),

(‘tcp_conn_stats’, None, tcp_conn_stats_default_levels),

(‘uptime’, None, {}),

]

Does anyone have a suggestion as to what else I might do ? The mysql checks can’t be excluded because the host addition fails, and at the present time I can’t add any monitoring. I’ve cleared the inventory, flushed the host, restarted the monitoring server, and so far, no luck

Mike

Mike Shield

Systems & Database Lead Engineer

+44 (0) 1223421355 Office

+44 (0) 7775713864 Mobile


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

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

Mike Shield

Systems & Database Lead Engineer

+44 (0) 1223421355 Office

+44 (0) 7775713864 Mobile