Ticket #1 (closed defect: fixed)

Opened 6 years ago

Last modified 3 months ago

Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1193,resulting in graphs broken

Reported by: mrtg@… Owned by: somebody
Version: 2.x Keywords: graphs broken on X86_64
Cc:

Description (last modified by oetiker) (diff)

Hello,

Since an upgrade of the hardware platform, we see these errormessages showing up in the log every 10 or 20 minutes.

- Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1184.
- Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1193.

MRTG worked fine for over 2 years on the old system.

The new server is a PentiumD x86_64 architecture (Dell SC830). Current MRTG version: mrtg-2.11.1-3, OS is FC 4.

The old server used to be Pentium4, RH9, mrtg-2.9.17-13

Configuration file has stayed the same.

When looking at /usr/bin/MRTG at these lines, I see:

1183     foreach $peri (qw(d w m y)) {
1184         print HTML <<"TEXT";                                    <<<<<<<<<<<<<<<
1185 <!-- maxin $peri $$maxin{$peri}{$router} -->
1186 <!-- maxout $peri $$maxout{$peri}{$router} -->
1187 TEXT
1188         if ($$rcfg{'options'}{'dorelpercent'}{$router} and defined $$maxpercent{$peri}{$router}) {
1189             print HTML <<"TEXT";
1190 <!-- maxpercent $peri $$maxpercent{$peri}{$router} -->
1191 TEXT
1192         }
1193         print HTML <<"TEXT";                                     <<<<<<<<<<<<<<<
1194 <!-- avin $peri $$avin{$peri}{$router} -->

The problem her is now that the graphs get broken and start rebuilding from scratch every few hours.

Anyone got any advice here please ? Thanks.

Change History

comment:1 Changed 6 years ago by oetiker

  • Description modified (diff)

comment:2 Changed 6 years ago by oetiker

  • Status changed from new to closed
  • Resolution set to worksforme

Please use the latest version of mrtg ... Could it be that your disk is full ?

comment:3 Changed 20 months ago by oetiker

  • milestone milestone1 deleted

Milestone milestone1 deleted

comment:4 Changed 6 months ago by human

  • Status changed from closed to reopened
  • Version changed from 1.x to 2.x
  • Resolution worksforme deleted

Hello,

I am with mrtg version 2.15.0 and had threshold values set for alerting but from the day it was added it gives the error. There is not problem in graph and threshold alerts are also working fine. Had same errors with 2.17.2.

error:

Use of uninitialized value in concatenation (.) or string at /usr/local/mrtg-2/bin/mrtg line 1885.
Use of uninitialized value in concatenation (.) or string at /usr/local/mrtg-2/bin/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at /usr/local/mrtg-2/bin/mrtg line 1879.
Use of uninitialized value in substitution (s/) at /usr/local/mrtg-2/bin/mrtg line 1881.
Use of uninitialized value in substitution (s
/) at /usr/local/mrtg-2/bin/mrtg line 1882.
Use of uninitialized value in substitution (s/) at /usr/local/mrtg-2/bin/mrtg line 1883.

comment:5 Changed 3 months ago by oetiker

  • Status changed from reopened to closed
  • Resolution set to fixed

the problem has not changed probably, but the symptom ... depending on whether warnings are on, perl will complain about non defined variables ... there will be some more fixes for this in 2.17.4

Note: See TracTickets for help on using tickets.
 

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example.