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.
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.
Can anyone confirm this and is there a fix in the works?
Regards,
Benjamin Schmaus
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]