[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Error: WorkDir not specified in mrtg config

Cheshire Cat Computing

Software support and information
It is currently Sun Nov 09, 2025 4:01 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Feb 02, 2006 9:15 am 
Offline
Silver User

Joined: Thu Feb 02, 2006 9:02 am
Posts: 12
Hi,

Has anybody seen this message?
This is from mrtg.log c:\mrtg\mrtg.log

2006-02-01 01:16:59 -- Use of uninitialized value in pattern match (m//) at c:/mrtg/mrtg/bin\..\lib\mrtg2/MRTG_lib.pm line 491.
2006-02-01 01:16:59 -- ERROR: "WorkDir" not specified in mrtg config file

-----------------
Resolved some of the error by changing:
- workdir: c:\mrtg/wwwroot to
- workdir: c://mrtg//wwwroot under shellscript.sh

Now, I am only receiving the following error;
c:\mrtg\mrtg.log ; repeating everything when script update the devices
Error: "WorkDir" not specified in mrtg config file

System Information:
Dell 280 with 1g mem
tried on windows; 2K, XP and 2003 standard server
without IIS
rest, generic stuff;

Any suggestions how to resolve the error message?

Thanks,

DDemirchi


Top
 Profile Send private message  
 
 Post subject: RE:
PostPosted: Thu Feb 02, 2006 12:44 pm 
Offline
Silver User

Joined: Thu Feb 02, 2006 9:02 am
Posts: 12
Later on; I kept received the following messages;
2006-02-01 01:16:59 -- Use of uninitialized value in pattern match (m//) at c:/mrtg/mrtg/bin\..\lib\mrtg2/MRTG_lib.pm line 491

in a couple hours; c:\mrtg\mrtg.log 1meg +

Modified;
c:\mrtg\mrtg\lib\mrtg2\MRTG_lib.pm
-- from
( defined $$cfg{'nospacechar'} && $post{$first} =~ /(.*)\Q$$cfg{nospacechar}\E$/ ) ? $1 : "
-- to
to ( defined $$cfg{'nospacechar'} && $post{$first} =~ \\(.*)\Q$$cfg{nospacechar}\E$/ ) ? $1 : "

Been monitoring about 20 min. or so mrtg.log still 0kb.

Any thoughts, what is going on?

Thanks,
DDemirchi


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Feb 02, 2006 1:25 pm 
Offline
Silver User

Joined: Tue Jan 31, 2006 1:58 pm
Posts: 18
ddemirchi,
I've been getting the same errors, dude. tried the 'workdir' error on one .cfg but haven't had the time to see if it made a difference.

I just now replaced the \ with a \\ in the MRTG_lib file. Glad you figured it out as notepad isn't a line counter. neither am I.

I just started getting these when I added two Cisco 4506 switches, besides the two above.

2006-02-01 14:42:00 -- ERROR: I guess another mrtg is running. A lockfile (c:/mrtg/mrtg/bin/192.168.6.1.cfg_l)
aged 8 seconds is hanging around and I can't remove
it because another process is still using it. at c:/mrtg/mrtg/bin/mrtg line 1419.

DOS windows come atcha every time the CRON kicks off. Figure the errors above keep the files locked longer than necessary so mrtg can't do it's thing.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Feb 02, 2006 2:29 pm 
Offline
Silver User

Joined: Thu Feb 02, 2006 9:02 am
Posts: 12
Hi,

Get Free windows notepat with line numbers..etc.;
http://www.editpadlite.com/

- before I start do anything;
-=Step 1:
Make sure stop the all the MRTG bundle services;
1) Apache
2) Cron
3) Perl.exe (if any)

-=Step 2:

Delete all the pre-configured files from;
c:\mrtg\wwwroot (everything)
c:\mrtg\mrtg\bin\router-switch-pc.CFG leave only the original files.

-=Step 3:
- delete the files in c:\mrtg\mrtg.log
- if you have't, update you myrouters.txt
- run c:\mrtg\Update_MyRouters.bat
- run manually-run-apache.bat and manually-run-mrtg.bat or reboot the system

Have fun.

DDemirchi


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 12:14 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Mar 31, 2006 8:05 am 
Offline
Silver User

Joined: Tue Jan 31, 2006 1:58 pm
Posts: 18
We are using Windows Server 2000 SP4
have approx 10 switches and 5 routers, all cisco, being polled successfully for about 2 months
have followed the bundle instructions and upgraded as it suggests
have reviewed each .cfg file for a "/" in place of a "\" but all are corrected

have tried the above solution in the MRTG_lib.pm but continue to get these messages in the mrtg.log file.


2006-03-30 12:50:52 -- Use of uninitialized value in pattern match (m//) at c:/mrtg/mrtg/bin\..\lib\mrtg2/MRTG_lib.pm line 493.
2006-03-30 12:50:52 -- ERROR: "WorkDir" not specified in mrtg config file

Also, does the entry,
/mrtg/perl/bin/perl c:/mrtg/mrtg/bin/mrtg --logging=c:/mrtg/mrtg.log c:$CFGFILES
have additional param's that will include more information than it currently provides?

Thanx in advance!


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 3:44 pm 
Offline
Silver User

Joined: Tue Jan 31, 2006 1:58 pm
Posts: 18
Well, after watching the .cfg files and comparing the file sizes, those that had 0 bytes and were included in the crontab and myrouters.txt will cause the following errors,

2006-03-30 12:50:52 -- Use of uninitialized value in pattern match (m//) at c:/mrtg/mrtg/bin\..\lib\mrtg2/MRTG_lib.pm line 493.
2006-03-30 12:50:52 -- ERROR: "WorkDir" not specified in mrtg config file

Considering there is nothing in the .cfg including an entry for workdir: or rrdtool:, it's seems natural to fail. Once I excluded the 0 byte .cfg's from the crontab and myrouters.txt, the errors have disappeared.
...at least it worked for me.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 8:42 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The pattern match error is because of the null WorkDir.

The WorkDir error is because every MRTG .cfg files MUST have a WorkDir: line specifying the directory.

It appears that your generation code (this is part of the bundle, so Im not familiar with it) is generating blank files for some devices in your myrouters.txt, and since a blank file has no WorkDir line,it generates an error (probably not a fatal problem, though).

Looks like oyu have the right solution - remove the devices from myrouters.txt that generate a null file.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group