Multiple service monitoring templates with mrpe

Hi,

I have setup service monitoring templates to do multiple checks using mrpe going to one hosts. It seems to want to only poll one check, for example I have 4 setup to one hosts and only one shows results but all 4 execute. When I disable all the checks the same thing happens.

I have also tried to manually define checks to one hosts and the same thing happens. I can verify via the and I have 4 setup for a hosts and only one gets logged/response received.

If I use the check-services.php -d I see it hitting the remote hosts and only one has a reponse, but on the remote hosts if i open a ngrep I can see it sending the data back, it’s like MRPE itself it not sending a EOL or something breaking up the check data and it can only read one.

Has anyone seen this? This is running the latest check_mk/MRPE packages from github

Thanks

I’ve never installed check_mk from git, so I don’t really know how it’s configured. If it’s a systemd based system you might need to look at the systemd socket, probably at: /etc/systemd/system/check_mk.socket

Or systemctl status check_mk.socket might give you the location if not.

Look for anything in there that might limit the number of mrpe connections it will accept. Or perhaps an aggressive timeout that might not complete for subsequent session. Because unfortunately, the check_mrpe script isn’t smart enough to use one connection and scrape all of the data from it. Each check will initiate its own nc session and parse it.