[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
http://steveshipway.org/forum/

Error: WorkDir not specified in mrtg config
http://steveshipway.org/forum/viewtopic.php?f=21&t=801
Page 1 of 1

Author:  ddemirchi [ Thu Feb 02, 2006 9:15 am ]
Post subject:  Error: WorkDir not specified in mrtg config

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

Author:  ddemirchi [ Thu Feb 02, 2006 12:44 pm ]
Post subject:  RE:

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

Author:  technicalx [ Thu Feb 02, 2006 1:25 pm ]
Post subject: 

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.

Author:  ddemirchi [ Thu Feb 02, 2006 2:29 pm ]
Post subject: 

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

Author:  stevesh [ Tue Mar 21, 2006 12:14 am ]
Post subject: 


Author:  technicalx [ Fri Mar 31, 2006 8:05 am ]
Post subject: 

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!

Author:  technicalx [ Wed Apr 05, 2006 3:44 pm ]
Post subject: 

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.

Author:  stevesh [ Wed Apr 05, 2006 8:42 pm ]
Post subject: 

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.

Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/