thruk-agent nrpe monitor fails on new 2.24 thruk-agent

Bug #1807756 reported by Drew Freiberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Thruk Agent Charm
Invalid
Undecided
Unassigned

Bug Description

HTTP CRITICAL: HTTP/1.1 302 Found - string 'nagios_pid' not found on 'https://nagios-ip:443/thruk/thruk/cgi-bin/remote.cgi' - 682 bytes in 0.067 second response time

Two issues.

1. The URL for the thruk agent for new 2.4 units includes the /thruk/ URI, so the nrpe check must account for that, actual URL is: https://nagios-ip:443/thruk/cgi-bin/remote.cgi

2. Return no longer include nagios_pid string, only thing returned by remote.cgi now appears to be "OK".

Revision history for this message
Drew Freiberger (afreiberger) wrote :

It appears the issue coming about here is that I've misconfigured the thruk-agent URL to add the /thruk to the URL, which is creating a link to https://nagios-ip:443/thruk/thruk/cgi-bin/remote.cgi.

So, we neither have to change the URL scheme for the nrpe.d/cfg file nor is the monitor needing to be changed to result OK, since I had not read into the code to find that the query posts actions to perform which would return the nagios_pid.

Changed in thruk-agent-charm:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.