Bug#450955: libnet-imap-simple-perl: variable $line masks earlier declaration in same scope at ...

2007-11-12 Thread Filip Sneppe
Package: libnet-imap-simple-perl
Version: 1.17-1
Severity: normal


Hi,

I get this error message:

$ perl /tmp/test.pl 
my variable $line masks earlier declaration in same scope at
/usr/share/perl5/Net/IMAP/Simple.pm line 901.
Useless use of hash element in void context at
/usr/share/perl5/Net/IMAP/Simple.pm line 903.

when I run this test script:

$ cat /tmp/test.pl 
#!/usr/bin/perl -w
use strict;
use Net::IMAP::Simple;

When I uninstall libnet-imap-simple-perl and install version 1.16-1 from
etch, the warning disappears.

Let me know if there is anything I can do to help ...

Best regards,
Filip


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

Kernel: Linux 2.6.18-4-k7 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libnet-imap-simple-perl depends on:
ii  perl  5.8.8-7Larry Wall's Practical Extraction 

libnet-imap-simple-perl recommends no packages.

-- no debconf information



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



Bug#350632: No /usr/share/menu/amsn in this package

2006-01-30 Thread Filip Sneppe
Package: amsn
Version: 0.95-1
Severity: normal


Hi,

I noticed that there is no /usr/share/menu/amsn file that described
where to put amsn in the debian menu structure. The previous
package had this as its contents:

?package(amsn):needs=x11 section=Apps/Net \
  title=amsn command=/usr/bin/amsn \
  icon=/usr/share/pixmaps/amsn/amsn.xpm

Regards,
Filip

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages amsn depends on:
ii  docker1.4-3  System tray for KDE3/GNOME2 dockle
ii  imlib11   1.9.14-28  Imlib is an imaging library for X 
ii  libpng12-01.2.8rel-5 PNG library - runtime
ii  python2.3.5-5An interactive high-level object-o
ii  sox   12.17.9-1  A universal sound sample translato
ii  tcl8.38.3.5-5Tcl (the Tool Command Language) v8
ii  tcl8.48.4.11-1   Tcl (the Tool Command Language) v8
ii  tcltls1.5.0-2The TLS OpenSSL extension to Tcl
ii  tk8.3 8.3.5-6Tk toolkit for Tcl and X11, v8.3 -
ii  tk8.4 8.4.11-1   Tk toolkit for Tcl and X11, v8.4 -

amsn recommends no packages.

-- no debconf information


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



Bug#330634: heartbeat-2: Missing dirs + wrong dir permissions for cim/crm to work properly

2005-09-29 Thread Filip Sneppe
On Thu, 2005-09-29 at 12:43 +0900, Horms wrote:

 Could you please take a look at the 2.0.2-4 packages at
 http://www.ultramonkey.org/download/heartbeat/2.0.2/debian-sid/
 and verify that these resolve your problem? 
 I'll go ahead and upload them to Debian if they do.

Hi,

Yes, this package fixes the problem. Thanks for the quick
response !

Regards,
Filip



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



Bug#330634: heartbeat-2: Missing dirs + wrong dir permissions for cim/crm to work properly

2005-09-28 Thread Filip Sneppe
Package: heartbeat-2
Version: 2.0.2-3
Severity: important


Hi,

After trying to run cib and crm by enabling it with this directive
in /etc/ha.d/ha.cf:

crm yes

I get the following messages in /var/log/sysog, and crmd and
cib die:


Sep 29 01:34:13 localhost ccm: [9146]: ERROR: socket_wait_conn_new:
trying to create in /var/run/heartbeat/ccm/ccm bind:: No such file or
directory

Sep 29 01:34:13 localhost cib: [9147]: ERROR: Cannot write to
/var/lib/heartbeat/crm/cib.xml: Permission denied

Sep 29 01:34:13 localhost cib: [9147]: ERROR: socket_wait_conn_new:
trying to create in /var/run/heartbeat/crm/cib_callback bind:: No such
file or directory

All this can be resolved by:
- creating the /var/run/heartbeat/ccm/ directory with the correct
  permissions and ownership
- creating the /var/run/heartbeat/crm/ directory with the correct
  permissions and ownsership
- setting the correct permissions and ownership on
  /var/lib/heartbeat/crm/

I have patched my debian build directory with these changes
(I will attach the patch) and rebuilt heartbeat-2 to verify that this
does indeed fix the problem.

Obviously this problem doesn't show up if crm is not enabled.

Thanks for the packaging effort!

Regards,
Filip

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages heartbeat-2 depends on:
ii  adduser3.67  Add and remove users and groups
ii  iproute20041019-3Professional tools to control the 
ii  libc6  2.3.5-6   GNU C Library: Shared libraries an
ii  libglib2.0-0   2.8.0-1   The GLib library of C routines
ii  libltdl3   1.5.20-2  A system independent dlopen wrappe
ii  libncurses55.4-9 Shared libraries for terminal hand
ii  libnet11.1.2.1-2 library for the construction and h
ii  libopenipmi0   2.0.1-1   Intelligent Platform Management In
ii  libsensors31:2.9.2-2 library to read temperature/voltag
ii  libsnmp9   5.2.1.2-3 NET SNMP (Simple Network Managemen
ii  libssl0.9.70.9.7e-3  SSL shared libraries
ii  libuuid1   1.38-2universally unique id library
ii  libwrap0   7.6.dbs-8 Wietse Venema's TCP wrappers libra
ii  libxml22.6.21-1  GNOME XML library
ii  netkit-ping0.10-10.2 The ping utility from netkit
ii  python 2.3.5-3   An interactive high-level object-o
ii  zlib1g 1:1.2.2-4.sarge.2 compression library - runtime

Versions of packages heartbeat-2 recommends:
ii  logrotate 3.7.1-2Log rotation utility
ii  sysklogd [system-log-daemon]  1.4.1-17   System Logging Daemon

-- no debconf information

*** /home/sneppef/Software/heartbeat-dirfix.diff
diff -urN heartbeat-2-orig/heartbeat-2-2.0.2/debian/heartbeat-2.dirs 
heartbeat-2/heartbeat-2-2.0.2/debian/heartbeat-2.dirs
--- heartbeat-2-orig/heartbeat-2-2.0.2/debian/heartbeat-2.dirs  2005-09-29 
02:00:02.0 +0200
+++ heartbeat-2/heartbeat-2-2.0.2/debian/heartbeat-2.dirs   2005-09-29 
01:37:18.0 +0200
@@ -28,3 +28,5 @@
 var/lib/heartbeat/ckpt
 var/lock/subsys
 var/run/heartbeat
+var/run/heartbeat/ccm
+var/run/heartbeat/crm
diff -urN heartbeat-2-orig/heartbeat-2-2.0.2/debian/heartbeat-2.postinst 
heartbeat-2/heartbeat-2-2.0.2/debian/heartbeat-2.postinst
--- heartbeat-2-orig/heartbeat-2-2.0.2/debian/heartbeat-2.postinst  
2005-08-11 10:23:41.0 +0200
+++ heartbeat-2/heartbeat-2-2.0.2/debian/heartbeat-2.postinst   2005-09-29 
01:55:46.0 +0200
@@ -30,6 +30,18 @@
 chown hacluster /var/lib/heartbeat/ccm
 chgrp haclient /var/lib/heartbeat/ccm
 
+   chmod 750 /var/lib/heartbeat/crm
+   chown hacluster /var/lib/heartbeat/crm
+   chgrp haclient /var/lib/heartbeat/crm
+
+   chmod 750 /var/run/heartbeat/ccm
+   chown hacluster /var/run/heartbeat/ccm
+   chgrp haclient /var/run/heartbeat/ccm
+
+   chmod 750 /var/run/heartbeat/crm
+   chown hacluster /var/run/heartbeat/crm
+   chgrp haclient /var/run/heartbeat/crm
+
chmod 2555 /usr/bin/cl_status
chgrp haclient /usr/bin/cl_status
 
diff -urN heartbeat-2-orig/heartbeat-2-2.0.2/debian/heartbeat-2.dirs 
heartbeat-2/heartbeat-2-2.0.2/debian/heartbeat-2.dirs
--- heartbeat-2-orig/heartbeat-2-2.0.2/debian/heartbeat-2.dirs  2005-09-29 
02:00:02.0 +0200
+++ heartbeat-2/heartbeat-2-2.0.2/debian/heartbeat-2.dirs   2005-09-29 
01:37:18.0 +0200
@@ -28,3 +28,5 @@
 var/lib/heartbeat/ckpt
 var/lock/subsys
 var/run/heartbeat
+var/run/heartbeat/ccm
+var/run/heartbeat/crm
diff -urN 

Bug#321245: Include /usr/lib/menu/windowlab in package

2005-08-04 Thread Filip Sneppe
Package: windowlab
Version: 1.32-1
Severity: wishlist


It would be nice to create a /usr/lib/menu/windowlab file
for this package, so that, after an update-menus, a
user can select this Window Manager from the normal Debian menus.

eg. I created this file:

?package(wmaker):needs=wm \
section=WindowManagers title=Windowlab \
command=/usr/bin/windowlab

Regards,
Filip


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.29-mppe
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages windowlab depends on:
ii  libc6  2.3.2.ds1-22  GNU C Library: Shared libraries an
ii  libfontconfig1 2.3.2-1   generic font configuration library
ii  libfreetype6   2.1.7-2.4 FreeType 2 font engine, shared lib
ii  libx11-6   4.3.0.dfsg.1-14   X Window System protocol client li
ii  libxext6   4.3.0.dfsg.1-14   X Window System miscellaneous exte
ii  libxft22.1.7-1   FreeType-based font drawing librar
ii  libxrender11:0.9.0-2 X Rendering Extension client libra
ii  xlibs  4.3.0.dfsg.1-14   X Keyboard Extension (XKB) configu
ii  zlib1g 1:1.2.2-4.sarge.2 compression library - runtime

windowlab recommends no packages.

-- no debconf information


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



Bug#291775: any progress on this?

2005-04-20 Thread Filip Sneppe
Hi Sean,

On Fri, 2005-04-15 at 19:34 -0400, sean finney wrote:
 i don't think i'd be making a gross assumption to assume that this can
 be distributed under the same terms as nagios (since the nagios is GPL'd
 and the GPL says it has to be), but it would be nice to have it from
 the author himself.  but anyway, i won't let that get in the way of
 including it in the package in the meantime.  

I've mailed the author about this, and this is his
anwser (email address protected):

Is this sufficient for this patch's inclusion ?

Regards,
Filip

From: Fredrik Wänglund [EMAIL PROTECTED]
To: Filip Sneppe 
Date: Apr 18, 2005 9:25 AM
Subject: Re: Is your grouplist patch licenced under the GPL ?

It's freeware. No license, no warranty. Use it As-Is.

/FredrikW
- Hide quoted text -


Filip Sneppe wrote:
 Hi,

 I have asked the Debian maintainers of the Nagios package to
 include your grouplist patch, as I, and potentially a lot of other
 Nagios users, find it very useful.

 See the Debian wishlist/bugreport at:

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291775

 The maintainer asked me if your patch is licenced under
 the GPL ? I see from the sourceforge page that APAN is
 GPL licenced, but it doesn't explicitly state that the grouplist
 patch is GPL licenced.

 Could you clear that out for me ?

 Thanks in advance,
 Filip




Bug#304795: nagios-common: 9999_nsca_pathfix patch - correct path to /usr/bin/printf

2005-04-15 Thread Filip Sneppe
Package: nagios-common
Version: 2:1.3-cvs.20050402-1
Severity: minor


I think this patch is needed so _nsca_pathfix.dpatch sets the
correct path to /usr/bin/printf:


--- orig/nagios-1.3-cvs.20050402/debian/patches/_nsca_pathfix.dpatch
2005-04-14 10:35:45.0 +0200
+++ finalmod/nagios-1.3-cvs.20050402/debian/patches/_nsca_pathfix.dpatch
2005-04-15 16:08:37.0 +0200
@@ -20,14 +20,17 @@
 diff -urNad 
nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
 
/home/seanius/tmp/dpep.VqnkWQ/nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
 --- 
nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
   2004-12-06 18:17:43.0 -0500
 +++ 
/home/seanius/tmp/dpep.VqnkWQ/nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
 2004-12-06 18:17:43.0 -0500
-@@ -28,8 +28,8 @@
+@@ -26,10 +26,10 @@
+ # IP address of the central server that has the nsca
+ # daemon running.
  
- printfcmd=/usr/bin/printf
+-printfcmd=/bin/printf
++printfcmd=/usr/bin/printf
  
 -NscaBin=/usr/local/nagios/libexec/send_nsca 
 -NscaCfg=/usr/local/nagios/etc/send_nsca.cfg
 +NscaBin=/usr/sbin/send_nsca 
-+NscaCfg=/etc/send_nsca.cfg
++NscaCfg=/etc/send_nsca.cfg 
  NagiosHost=nagioshost
  
  # Fire the data off to the NSCA daemon using the send_nsca script 

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.30-net-patches
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages nagios-common depends on:
ii  adduser  3.63Add and remove users and groups
ii  apache2-mpm-pref 2.0.53-5traditional model for Apache2
ii  coreutils [fileu 5.2.1-2 The GNU core utilities
ii  debconf [debconf 1.4.30.11   Debian configuration management sy
ii  mailx1:8.1.2-0.20040524cvs-4 A simple mail user agent
ii  nagios-plugins   1.3.1.0-12  Plugins for the nagios network mon
ii  nagios-text [nag 2:1.3-cvs.20050402-1A host/service/network monitoring 

-- debconf information:
* nagios/wwwsuid: true
  nagios/upgradefromnetsaint:
* nagios/configapache: Apache2
--- orig/nagios-1.3-cvs.20050402/debian/patches/_nsca_pathfix.dpatch
2005-04-14 10:35:45.0 +0200
+++ finalmod/nagios-1.3-cvs.20050402/debian/patches/_nsca_pathfix.dpatch
2005-04-15 16:08:37.0 +0200
@@ -20,14 +20,17 @@
 diff -urNad 
nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
 
/home/seanius/tmp/dpep.VqnkWQ/nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
 --- 
nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
   2004-12-06 18:17:43.0 -0500
 +++ 
/home/seanius/tmp/dpep.VqnkWQ/nagios-1.3/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
 2004-12-06 18:17:43.0 -0500
-@@ -28,8 +28,8 @@
+@@ -26,10 +26,10 @@
+ # IP address of the central server that has the nsca
+ # daemon running.
  
- printfcmd=/usr/bin/printf
+-printfcmd=/bin/printf
++printfcmd=/usr/bin/printf
  
 -NscaBin=/usr/local/nagios/libexec/send_nsca 
 -NscaCfg=/usr/local/nagios/etc/send_nsca.cfg
 +NscaBin=/usr/sbin/send_nsca 
-+NscaCfg=/etc/send_nsca.cfg
++NscaCfg=/etc/send_nsca.cfg 
  NagiosHost=nagioshost
  
  # Fire the data off to the NSCA daemon using the send_nsca script 


Bug#304796: nagios-common: apt-get remove --purge doesn't stop nagios daemon before package is removed

2005-04-15 Thread Filip Sneppe
Package: nagios-common
Version: 2:1.3-cvs.20050402-1
Severity: normal


Subject says it all - the nagios daemon isn't stopped when removing the
package ...

Regards,
Filip

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.30-net-patches
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages nagios-common depends on:
ii  adduser  3.63Add and remove users and groups
ii  apache2-mpm-pref 2.0.53-5traditional model for Apache2
ii  coreutils [fileu 5.2.1-2 The GNU core utilities
ii  debconf [debconf 1.4.30.11   Debian configuration management sy
ii  mailx1:8.1.2-0.20040524cvs-4 A simple mail user agent
ii  nagios-plugins   1.3.1.0-12  Plugins for the nagios network mon
ii  nagios-text [nag 2:1.3-cvs.20050402-1A host/service/network monitoring 

-- debconf information:
* nagios/wwwsuid: true
  nagios/upgradefromnetsaint:
* nagios/configapache: Apache2


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



Bug#291775: any progress on this?

2005-04-15 Thread Filip Sneppe
On Sat, 2005-04-02 at 19:12 -0500, sean finney wrote:
 hi filip,
 
 any progress on the side.cgi patch?
 
Sorry, I hadn't given this any of my attention lately...

How does the attached patch look ?

Regards,
Filip
diff -urN orig/nagios-1.3-cvs.20050402/debian/apache.conf finalmod/nagios-1.3-cvs.20050402/debian/apache.conf
--- orig/nagios-1.3-cvs.20050402/debian/apache.conf	2005-04-14 10:35:45.0 +0200
+++ finalmod/nagios-1.3-cvs.20050402/debian/apache.conf	2005-04-15 14:51:34.0 +0200
@@ -26,6 +26,12 @@
 # Where the stylesheets (config files) reside
 Alias /nagios/stylesheets /etc/nagios/stylesheets
 
+# Enable this ScriptAlias if you want to enable the grouplist patch.
+# See http://apan.sourceforge.net/download.html for more info
+# It allows you to see a clickable list of all hostgroups in the
+# left pane of the Nagios web interface
+#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios/grouplist.cgi
+
 # Where the HTML pages live(d)
 Alias /netsaint /usr/share/nagios/htdocs
 Alias /nagios /usr/share/nagios/htdocs
diff -urN orig/nagios-1.3-cvs.20050402/debian/patches/00list finalmod/nagios-1.3-cvs.20050402/debian/patches/00list
--- orig/nagios-1.3-cvs.20050402/debian/patches/00list	2005-04-14 10:35:45.0 +0200
+++ finalmod/nagios-1.3-cvs.20050402/debian/patches/00list	2005-04-15 14:51:34.0 +0200
@@ -6,5 +6,6 @@
 06_makefile.in_delete_defaults.dpatch
 07_fix_default_config.dpatch
 08_side.html_absolute_url_fix.dpatch
+09_use_grouplists.dpatch
 _nsca_pathfix.dpatch
 1_no-password-disclosure.dpatch
diff -urN orig/nagios-1.3-cvs.20050402/debian/patches/09_use_grouplists.dpatch finalmod/nagios-1.3-cvs.20050402/debian/patches/09_use_grouplists.dpatch
--- orig/nagios-1.3-cvs.20050402/debian/patches/09_use_grouplists.dpatch	1970-01-01 01:00:00.0 +0100
+++ finalmod/nagios-1.3-cvs.20050402/debian/patches/09_use_grouplists.dpatch	2005-04-15 14:50:59.0 +0200
@@ -0,0 +1,366 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 09_use_grouplists.dpatch by Filip Sneppe [EMAIL PROTECTED]
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Implements the grouplist changes described here:
+## DP: http://apan.sourceforge.net/download.html
+
[EMAIL PROTECTED]@
+diff -urN nagios-1.3-cvs.20050402/cgi/Makefile.in nagios-1.3-cvs.20050402/cgi/Makefile.in
+--- nagios-1.3-cvs.20050402/cgi/Makefile.in	2005-04-06 07:24:44.0 +0200
 nagios-1.3-cvs.20050402/cgi/Makefile.in	2005-04-15 10:41:26.0 +0200
+@@ -29,7 +29,7 @@
+ #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCGI
+ [EMAIL PROTECTED]@ @LIBS@
+ 
+-CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS)
++CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi grouplist.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS)
+ 
+ # External data I/O code and headers
+ [EMAIL PROTECTED]@
+@@ -94,6 +94,9 @@
+ 
+ $(COMMENTLIBS): $(COMMENTHDRS)
+ 
++grouplist.cgi: grouplist.cgi.in
++	cp grouplist.cgi.in grouplist.cgi
++
+ avail.cgi: avail.c $(CGIDEPS)
+ 	$(CC) $(CFLAGS) $(LDFLAGS) $(EXTRAFLAGS) avail.c $(CGILIBS) -o $@
+ 
+diff -urN nagios-1.3-cvs.20050402/cgi/grouplist.cgi.in nagios-1.3-cvs.20050402/cgi/grouplist.cgi.in
+--- nagios-1.3-cvs.20050402/cgi/grouplist.cgi.in	1970-01-01 01:00:00.0 +0100
 nagios-1.3-cvs.20050402/cgi/grouplist.cgi.in	2005-04-15 10:41:26.0 +0200
+@@ -0,0 +1,51 @@
++#!/bin/sh
++
++#Get files and dirs
++CFGFILES=`egrep -e ^cfg_file= /etc/nagios/nagios.cfg|cut -d = -f 2`
++CFGDIRS=`egrep -e ^cfg_dir= /etc/nagios/nagios.cfg|cut -d = -f 2`
++
++#add files in cfg_dir's to filelist
++for CFGDIR in $CFGDIRS; do
++	CFGFILES=$CFGFILES `ls $CFGDIR/*.cfg` 
++done
++
++GROUPLIST=
++
++# Get groupnames from files
++for CFGFILE in `echo $CFGFILES`; do
++	if [ -f $CFGFILE ]; then
++		HOSTGROUPS=`egrep -e ^[ 	]*hostgroup_name $CFGFILE|awk '{print $2}'| tr ,  `
++		GROUPLIST=$GROUPLIST $HOSTGROUPS
++	fi
++done
++
++#Sort and remove duplicated names
++GROUPLIST=`echo $GROUPLIST|tr   \n|sort|uniq`
++#echo Grouplist: $GROUPLIST
++
++#Begin the HTML-output
++
++echo Content-type: text/html
++echo 
++
++#Insert the top of the frame
++cat /usr/share/nagios/htdocs/side1.html
++
++#Generate HTML for group-list
++N=0
++for GRP in $GROUPLIST; do
++GRPNAME=`echo $GRP|sed -e 's/ /%2D/g'`
++printf trtd width=13img src=/nagios/images/greendot.gif
++printf  width=13 height=14 name=hostgroup$N-dot/td\n
++printf td nowrapa href=/nagios/cgi-bin/status.cgi?hostgroup=$GRPNAME
++printf style=detail target=main onMouseOver=switchdot('hostgroup$N-dot',1)
++printf  onMouseOut=switchdot('hostgroup$N-dot',0) class=NavBarItem
++#printf $N-dot
++#printf ',0) class=NavBarItem'
++printf $GRP/a/td\n
++echo /tr
++N=`echo $N+1|bc`
++done

Bug#291775: grouplist patch

2005-02-21 Thread Filip Sneppe
Hi Sean,

On Thu, 2005-02-17 at 16:41 -0500, sean finney wrote:
 hi filip,
 
 i'm not sure how i feel about replacing the standard .html side bar
 with the cgi script, but including this cgi would certainly be
 a useful feature for nagios. i'm thinking about alternative
 methods for including this feature, and these are a few that
 come to mind:
 
 - a seperate package, generated by the nagios source package,
   which provides either diversions to override the files provided
   by nagios
 - a seperate package, which provides an apache configuration directive
   that aliases side.html - side.cgi
 - providing the cgi as part of nagios-common, but having the side.cgi
   configuration de-activated by default (with commented out lines on
   how to activate it in /etc/nagios/apache.conf). 
 
 
 i think i like the third option the best, since it doesn't bloat the
 package archive or involve any changes to the core nagios stuff.  what
 do you think?

It would indeed be better to package Nagios with the files
that come with the original tarball as the defaults, but allow
users to select the grouplist feature with minimal effort.

I am also in favor of your third suggestion. Unless someone is already
working on this, I could try to work this out and send an updated patch
for review ?

Thanks for considering this!

Regards,
Filip



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