[mrtg] SLAMon problem

Istvan Farkas istvan at sztaki.hu
Tue Dec 12 10:19:19 MET 2000


Hi,


I downloaded the SLAMon-0.2.1.tar.gz (second alpha version).
I have Debian linux, and (mrtg-2.9.4, rrdtool 1.0.27-5, librrd0 1.0.27-5).

RRD is working fine!

I modify the SLAMon.cfg.

My librrds:

/usr/lib/librrd.so.0.0.0
/usr/lib/librrd.la

(or: /usr/lib/perl5/5.005/i386-linux/auto/RRDs/RRDs.so
     /usr/lib/perl5/5.005/i386-linux/auto/RRDs/RRDs.bs
     /usr/lib/perl5/5.005/i386-linux/RRDs.pm)
 
# The directory which contains the RRD libraries
$::rrdLib = "/usr/lib/";

That's ok ?

And:

# A list of directories containing the RRD files you want to monitor
# SLAMon will recursively search all sub directories for RRD files.
@::inputRRDdirs = (
   "/var/www/mrtg",
);

# The directory to which SLAMon data will be written.
$::outputDataDir = '/var/www/SLAMon';

# The directory to which graphics files will be written.
$::graphicsOutputDir = '/var/www/SLAMon/graphics';

# The web directory from which graphics files will be read.
$::imgSrc = '/SLAMon/graphics';


So i running the SLAMod:

./SLAMon -d 1
setGlobals:
  time=976311544:
  ::start=976305900:
  ::end=976309200:
SLAMon 0.2.1
The ouput data directory is
  /var/www/SLAMon/
24-by-7 measurements will be written to
  /var/www/SLAMon/24h
RRD data will be recursively read from /var/www/mrtg
  start=Fri Dec  8 21:05:00 2000 (976305900)
  end  =Fri Dec  8 22:00:00 2000 (976309200)
Created RRD /var/www/SLAMon/24h/vh76.iif.hu_fa3_0_0.rrd
  start=Fri Dec  8 21:05:00 2000 (976305900)
  end  =Fri Dec  8 22:00:00 2000 (976309200)

That's ok! SLAMon working fine!?


I running the SLAMonWorkingHours:

./SLAMonWorkingHours -d 1
setGlobals:
  time=976312148:
  ::start=976143900:
  ::end=976230000:
SLAMonWorkingHours 0.2.1
Working hours availability data will be read from 24h availability
RRD files in the directory tree:
 /var/www/SLAMon/24h
and  written to RRD files in the working hours availability
directory tree:
 /var/www/SLAMon/workingHours

The availability datasource is ds0
The holidays configured are 25.12
  1
  02.06.2000
  1
  08.05
  1
  01.01
  1
  01.11
  1
  01.06.2000
  1
  24.04.2000
  1
  12.06.2000
  1
  14.07
  1
Start:       Thu Dec  7 00:05:00 2000 (976143900)
Step size:   300 seconds
DS names:    ds0
Data points: 288

#############Just comming the errors!#####

Use of uninitialized value in string ne at ./SLAMonWorkingHours line 92.
Use of uninitialized value in addition (+) at ./SLAMonWorkingHours line 93.
Use of uninitialized value in string ne at ./SLAMonWorkingHours line 92.
Use of uninitialized value in addition (+) at ./SLAMonWorkingHours line 93.
Use of uninitialized value in string ne at ./SLAMonWorkingHours line 92.
Use of uninitialized value in addition (+) at ./SLAMonWorkingHours line 93.
.
.
.
.
Use of uninitialized value in addition (+) at ./SLAMonWorkingHours line 93.
updateWorkingHourAvailability: outputRRD=/var/www/SLAMon/workingHours/vh76.iif.hu_fa3_0_0.rrd
Fri Dec  8 00:05:00 2000 (976230300):0
Created RRD /var/www/SLAMon/workingHours/vh76.iif.hu_fa3_0_0.rrd
ERROR while updating
/var/www/SLAMon/workingHours/vh76.iif.hu_fa3_0_0.rrd: illegal attempt to
update using time 976187100 when last update time is 976230000 (minimum
one second step)


The SLAMonWorkingHours line 92:

      if( isWorkingHour($time) && $val ne "NaN") {

and the 93. line:   $sum += $val;

Hmm, what's the problem ?


Thanks!

Kind Regards,
----------------------------------------------------------------------------
   Istvan FARKAS                                e-mail : istvan at sztaki.hu
   Computer and Automation Research Institute   phone  : (361) 349-7532
   H-1132. Budapest, Victor Hugo u 18-22        fax    : (361) 329-7866





--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list