[icinga-checkins] icinga.org: icinga-web/next: Fix notifcation view showing command_line instead of command_name

git at icinga.org git at icinga.org
Thu Apr 11 16:19:28 CEST 2013

Module: icinga-web
Branch: next
Commit: f3712230c5e9ff70b1a5dc774e9cda14a1d92a5f
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=f3712230c5e9ff70b1a5dc774e9cda14a1d92a5f

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Thu Apr 11 16:14:43 2013 +0200

Fix notifcation view showing command_line instead of command_name

Fixed in database view

fixes #3957


 app/modules/Api/config/views/notifications.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/modules/Api/config/views/notifications.xml b/app/modules/Api/config/views/notifications.xml
index 38b47c6..99d4504 100644
--- a/app/modules/Api/config/views/notifications.xml
+++ b/app/modules/Api/config/views/notifications.xml
@@ -15,12 +15,13 @@
             n.state AS NOTIFICATION_STATE,
             n.start_time  AS NOTIFICATION_STARTTIME,
             n.output AS NOTIFICATION_OUTPUT,
-            cnc.command_line as COMMAND_NAME
+            co.name1 as COMMAND_NAME
             FROM IcingaNotifications n
             INNER JOIN n.object o
             LEFT JOIN n.contactnotifications cn
             LEFT JOIN cn.notificationmethod cnm
             LEFT JOIN cnm.command cnc
+            LEFT JOIN cnc.object co
             LEFT JOIN cn.contactobject c
             ORDER BY notification_id DESC

More information about the icinga-checkins mailing list