Package: nagiosgrapher
Version: 1.6.1rc3-2
Severity: normal
Tags: patch

When multiple graphs are defined for a single host  always the first graph  
displayed.

Please add patch below:
@@ -207,7 +207,8 @@
   $h->checkPageBrowserAuth();

   # If the current differs from the selected, start the default service ...
-  if ($h->Param('old_host') ne $h->Host) {
+  #if ($h->Param('old_host') ne $h->Host) {
+  if ($h->Param('old_host') && length($h->Param('old_host')) > 0 && 
$h->Param('old_host') ne $h->Host) {
       $service = [sort(keys(%{$xmlhash->{host}->{$h->Host}->{service}}))]->[1];
       $h->Service($service);
   }

Sources:
http://www.nagiosexchange.org/Forum.88.0.html?&view=single_thread&cat_uid=1&conf_uid=2&thread_uid=396
http://www.nagios-portal.de/forum/thread.php?threadid=4807


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagiosgrapher depends on:
ii  libc6                  2.6-5             GNU C Library: Shared libraries
ii  libcalendar-simple-per 1.17-2            Perl extension to create simple ca
ii  libgd-gd2-perl         1:2.34-1          Perl module wrapper for libgd - gd
ii  librrds-perl           1.2.19-1          Time-series data storage and displ
ii  liburi-perl            1.35.dfsg.1-1     Manipulates and accesses URI strin
ii  nagios2                2.9-1             A host/service/network monitoring 
ii  perlmagick [libimage-m 7:6.2.4.5.dfsg1-1 A perl interface to the libMagick 
ii  rrdtool                1.2.19-1          Time-series data storage and displ
ii  ttf-dejavu             2.19-1            Vera font family derivate with add
ii  ucf                    3.001             Update Configuration File: preserv

nagiosgrapher recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to