Package: argus-client
Version: 2.0.6.fixes.1-3
Severity: normal

rahistogram does not return an error message nor exits with a return
error code >=1 when the file specified with -r does not exists.

both would be nice.

this leads to a misleading error message when ragraph fails because of
that. :
unable to create `/tmp/filewwHBIW.rrd': start time: unparsable time
usage: ragraph metric (srcid | proto [daddr] | dport) [-title "title"] 
[ra-options]

here is a patch to ragraph to deal with it :

@@ -585,6 +614,12 @@
 sub RagraphGenerateRRD {
    my $data;
 
+   if ( -z $tmpfile )
+   {
+       &RagraphCleanUp;
+       die "rahistogram tmpfile $tmpfile was empty, exiting ragraph\n";
+   }
+
    open(SESAME, $tmpfile);
     
    for (1 .. 7) {
 

thanks

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (600, 'unstable'), (549, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-3-686-smp
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages argus-client depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libncurses5                   5.5-2      Shared libraries for terminal hand

Versions of packages argus-client recommends:
ii  argus-server          1:2.0.6.fixes.1-11 IP network transaction auditing to

-- no debconf information


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

Reply via email to