Module: nagvis Branch: nagvis-1.4 Commit: 7251a64329b4189cfbdbe311d0c8a105220bfb00 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=7251a64329b4189cfbdbe311d0c8a105220bfb00
Author: LaMi <[email protected]> Date: Wed Mar 24 22:39:27 2010 +0100 #229 Applied patch to fix the single service problem when using the merlin mysql backend --- .../includes/classes/GlobalBackendmerlinmy.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nagvis/nagvis/includes/classes/GlobalBackendmerlinmy.php b/nagvis/nagvis/includes/classes/GlobalBackendmerlinmy.php old mode 100644 new mode 100755 index dbab3b0..a7e06c0 --- a/nagvis/nagvis/includes/classes/GlobalBackendmerlinmy.php +++ b/nagvis/nagvis/includes/classes/GlobalBackendmerlinmy.php @@ -423,7 +423,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 != '') { ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
