Title: [opsview] [11604] The Uptime check that we send to Nagios was renamed.
Revision
11604
Author
pknight
Date
2013-02-26 14:30:54 +0000 (Tue, 26 Feb 2013)

Log Message

The Uptime check that we send to Nagios was renamed.
Now sending more time data as well.

Modified Paths

Modified: trunk/opsview-core/nagios-plugins/check_snmp_uptime
===================================================================
--- trunk/opsview-core/nagios-plugins/check_snmp_uptime	2013-02-26 12:52:51 UTC (rev 11603)
+++ trunk/opsview-core/nagios-plugins/check_snmp_uptime	2013-02-26 14:30:54 UTC (rev 11604)
@@ -92,12 +92,12 @@
         my $cmd = Opsview::Externalcommand->new(
             command => 'PROCESS_SERVICE_CHECK_RESULT',
             args    => join( ';',
-                $np->opts->hosttitle, 'Uptime', '2',
-                'Uptime reset: ' . nice_ticks($timeticks) ),
+                $np->opts->hosttitle, 'Uptime Restart',
+                '2', 'Uptime reset: ' . nice_ticks($timeticks) ),
         );
         $cmd->send_to_master;
     }
-    $np->nagios_exit( OK, "OK|days=$days" );
+    $np->nagios_exit( OK, $returnstring );
 }
 
 if ( $status == 0 ) {

_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to