Title: [opsview] [11780] Fixed IOS host notifications not showing correct detail
Revision
11780
Author
dferguson
Date
2013-03-14 12:11:06 +0000 (Thu, 14 Mar 2013)

Log Message

Fixed IOS host notifications not showing correct detail

OVS-4691

Modified Paths

Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES	2013-03-14 11:57:32 UTC (rev 11779)
+++ trunk/CHANGES	2013-03-14 12:11:06 UTC (rev 11780)
@@ -10,6 +10,7 @@
     check_sql_advanced query duration also takes account of fetching the rows.  Also amend execution duration calculation to be s not ms and always include it in perfdata
     NOTICES:
     FIXES:
+    Fixed IOS host notifications not showing correct detail
 
 3.20130304
     ENHANCEMENTS:

Modified: trunk/opsview-core/notifications/notify_by_ios_push
===================================================================
--- trunk/opsview-core/notifications/notify_by_ios_push	2013-03-14 11:57:32 UTC (rev 11779)
+++ trunk/opsview-core/notifications/notify_by_ios_push	2013-03-14 12:11:06 UTC (rev 11780)
@@ -55,7 +55,11 @@
 die "Must have an opsview.com username" unless $ldap_username;
 die "Must have an opsview.com password" unless $ldap_password;
 
-my $alert_message = "$ENV{NAGIOS_HOSTNAME}: $ENV{NAGIOS_SERVICEOUTPUT}";
+my $output =
+  ( $ENV{NAGIOS_SERVICEOUTPUT} ne '' )
+  ? $ENV{NAGIOS_SERVICEOUTPUT}
+  : $ENV{NAGIOS_HOSTOUTPUT};
+my $alert_message = "$ENV{NAGIOS_HOSTNAME}: $output";
 $alert_message = substr( $alert_message, 0, 190 );
 
 # Remove any profile information from contact name.

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

Reply via email to