Title: [opsview] [11700] Intercept ack's on extinfo.cgi page
- Revision
- 11700
- Author
- dferguson
- Date
- 2013-03-08 15:29:28 +0000 (Fri, 08 Mar 2013)
Log Message
Intercept ack's on extinfo.cgi page
Allowing nagios to perform the ack via extinfo.cgi will mean slaves do not get to find out about it. Instead, intercept the call and redirect to the standard nagios ack form.
If there is one service then it is automatically selected. However, on a host ack the host is not automatically checked. Would be better from a user POV if it was.
Modified Paths
Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES 2013-03-08 15:25:22 UTC (rev 11699)
+++ trunk/CHANGES 2013-03-08 15:29:28 UTC (rev 11700)
@@ -5,6 +5,7 @@
REST API has a convertuoms=1 parameter to convert performance data uoms into their base values (eg, MB to bytes, ms to seconds)
SNMP throughput thresholds now have an expanded syntax to handle input and output throughput separately as well as ranges
Remove some more specific words from SNMP interface ifDescr to reduce instances of duplicate interface ids being used (level 4 added)
+ Acknowledging a problem via the host or service state information cgi page now uses the standard Opsview form
NOTICES:
FIXES:
Modified: trunk/opsview-web/lib/Opsview/Web/Controller/WrapCGI.pm
===================================================================
--- trunk/opsview-web/lib/Opsview/Web/Controller/WrapCGI.pm 2013-03-08 15:25:22 UTC (rev 11699)
+++ trunk/opsview-web/lib/Opsview/Web/Controller/WrapCGI.pm 2013-03-08 15:29:28 UTC (rev 11700)
@@ -87,6 +87,29 @@
$c->res->redirect(
$c->uri_for( "/state/host", $host_obj, "downtime" )->path_query );
}
+ elsif ( $cmd_typ == 33 && $host_obj ) {
+
+ # redirect extinfo.cgi host acknowledge page
+ $c->res->redirect(
+ $c->uri_for(
+ "/status/service/acknowledge",
+ { host => $c->req->param("host") }
+ )->path_query
+ );
+ }
+ elsif ( $cmd_typ == 34 && $service_obj ) {
+
+ # redirect extinfo.cgi service acknowledge page
+ $c->res->redirect(
+ $c->uri_for(
+ "/status/service/acknowledge",
+ {
+ servicecheck => $c->req->param("service"),
+ host => $c->req->param("host")
+ }
+ )->path_query
+ );
+ }
elsif ( $cmd_typ == 56 && $service_obj ) {
$c->log->debug(
$c->uri_for( "/state/service", $service_obj, "downtime" )
_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins