Module: nagvis
Branch: master
Commit: 67bd5d869d12d01d0ad5913de297a0be25f0faf9
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=67bd5d869d12d01d0ad5913de297a0be25f0faf9

Author: Roman Kyrylych <[email protected]>
Date:   Tue Sep  1 11:25:09 2009 +0300

Merlin backend fix - only first service was returned when none specified

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 0e250c8..9796408 100755
--- a/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
+++ b/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
@@ -461,7 +461,7 @@ class GlobalBackendmerlinmy implements 
GlobalBackendInterface {
                                .' FROM  host AS h, service AS s LEFT JOIN 
scheduled_downtime AS sdt ON sdt.host_name = s.host_name'
                                .' AND sdt.service_description = 
s.service_description AND NOW() > sdt.start_time AND NOW() < sdt.end_time'
                                ." WHERE s.host_name = '$hostName' AND 
h.host_name = s.host_name"
-                               .((isset($serviceName) && $serviceName != '')? 
" AND s.service_description = '$serviceName'" : '').' LIMIT 1');
+                               .((isset($serviceName) && $serviceName != '')? 
" AND s.service_description = '$serviceName' LIMIT 1" : ''));
                        
                        if(mysql_num_rows($QUERYHANDLE) == 0) {
                                if(isset($serviceName) && $serviceName != '') {


------------------------------------------------------------------------------
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

Reply via email to