Re: [Nagios-devel] Bug in statuswml.cgi with Acknowledging Services

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Bug in statuswml.cgi with Acknowledging Services

Post by Guest »

On Mon, 11 Aug 2008 13:41:38 -0700 (PDT), Benjamin Schmaus
wrote:

>It appears there is a bug if you try to acknowledge a critical state via the WAP interface for a service on the host in Nagios 3.x.

Is this what has been causing the "You're not authorized" messages
I've been getting when trying to ack stuff?

>Upon looking at the post HTML code, it appears that the service name being passed is the host on which that service is in a critical state.
>
>Specifically this line in statuswml.c:
>
>printf("\n",COMMAND_CGI,url_encode(host_name),url_encode(service_desc),CMD_ACKNOWLEDGE_SVC_PROBLEM,CMDMODE_COMMIT);
>
>If this line is changed to:
>
> printf("\n",COMMAND_CGI,url_encode(host_name),service_desc,CMD_ACKNOWLEDGE_SVC_PROBLEM,CMDMODE_COMMIT);
>
>Then it appears to work.

The only change I see you've made is a change to service_desc to not
be feed through url_encode() first. Did that really fix it for you? If
what you're saying about it passing the service as the host name, I
can't see how stripping out the url_encode from your line would
resolve that issue, and could cause issues if you had special
characters in the service description.

--
Jon Angliss






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked