Module: nagvis Branch: master Commit: 8d7abf5621eb19d429d2eaf82e0fe133086a2c66 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=8d7abf5621eb19d429d2eaf82e0fe133086a2c66
Author: Roman Kyrylych <[email protected]> Date: Wed Jul 29 18:22:50 2009 +0300 backends: Return alias for hosts from getObjectsEx Signed-off-by: Roman Kyrylych <[email protected]> --- .../includes/classes/GlobalBackendmerlinmy.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/nagvis/includes/classes/GlobalBackendmerlinmy.php b/share/nagvis/includes/classes/GlobalBackendmerlinmy.php index fffa41a..bf96ee7 100644 --- a/share/nagvis/includes/classes/GlobalBackendmerlinmy.php +++ b/share/nagvis/includes/classes/GlobalBackendmerlinmy.php @@ -250,7 +250,7 @@ class GlobalBackendmerlinmy implements GlobalBackendInterface { $ret = Array(); if($type == 'host') { - $QUERYHANDLE = $this->mysqlQuery('SELECT host_name AS name, address FROM host ORDER BY host_name'); + $QUERYHANDLE = $this->mysqlQuery('SELECT host_name AS name, address, alias FROM host ORDER BY host_name'); } elseif($type == 'service') { $QUERYHANDLE = $this->mysqlQuery('SELECT host_name AS host, service_description AS description FROM service ORDER BY host_name'); } elseif(in_array($type, array('hostgroup', 'servicegroup'))) { ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
