nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

MRTG stops logging

This is a discussion on MRTG stops logging within the Linux software forums, part of the Linux Getting Started category; Hi I've got MRTG running for a while now but after 4 ÃÂ* 5 days it stops logging to the ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 03-09-2005, 12:29 PM
nathan86
Guest
 
Posts: n/a
Default MRTG stops logging

Hi

I've got MRTG running for a while now but after 4 ÃÂ* 5 days it stops logging to the graph.
We used to run MRTG on a NT4 workstation but after a network migration to windows server 2003 we transfered MRTG to a windows XP workstation.
Since then MRTG stops logging after several days
We've been spending much time trying to solve this problem
any Idea's what the cause of this problem could be????

I'd appreciate it
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-09-2005, 06:32 PM
Administrator
Site Admin
 
Join Date: Jan 1970
Posts: 43
Rep Power: 10
vivek has disabled reputation
Default

1) Make sure it is running in background. What software you use to run mrtg in background or else add following line to your mrtg.cfg file
Code:
RunAsDaemon: yes
And start service as follows:
Code:
start /Dc:\mrtg-xxx.xxx\bin wperl mrtg --logging=eventlog mrtg.cfg
2) Assuming that you have atleast following installed correctly
mrtg
Perl (ActivePerl)

3) In order to debug it following options you need to pass to mrtg
Option to pass mrtg:
--logging=c:\mrtg.log

c:\mrtg.log will log all messages.

--debug="snpo,cfg"
Where,
snpo – will display you snmp polling
cfg – will log the config file reading

For example here is full command to mrtg debug at C:\ dos prompt (cmd.exe)
Code:
perl mrtg  yourmrtg.cfg --logging c:\mrtg.log --debug="snpo,cfg"
Make sure you point correct cfg file (yourmrtg.cfg)

This will trace your snmp polling and log them to file c:\mrtg.log

This is the only way to find out what's goint wron with it. Once you got it paste back here your file so that can we can find out more. Also note other debug options

cfg - watch the config file reading
dir - directory mangeling
base - basic program flow
tarp - target parser
snpo - snmp polling
fork - forking view
time - some timing info
log - logging of data via rateup or rrdtool


I have not used mrtg much on windows but used a lot on UNIX like os. Hope this helps.
Reply With Quote
  #3 (permalink)  
Old 03-09-2005, 06:44 PM
nathan86
Guest
 
Posts: n/a
Default MRTG stops logging

I used the runAsDaemon: yes option
And the following commandline to start the service

start /Dc:\mrtg-2.0.13\bin wperl mrtg --logging=eventlog cpu.cfg
Or for my test enviroment i first got to the bin dir and then typed
start wperl mrtg --logging=eventlog cpu.cfg

It logs fine for a couple of days but then it stops

I checked out my OID's and they where al correct
My graphs didn't seem to show strange values or something
except for the CPU load in %
It gives a pink line in the weekly monthly an yearly graph
but that just has to do with the "withpeak" command
Reply With Quote
  #4 (permalink)  
Old 03-11-2005, 12:22 PM
Administrator
Site Admin
 
Join Date: Jan 1970
Posts: 43
Rep Power: 10
vivek has disabled reputation
Default

Okay try one command and open NT/XP logviewer tool and see what it logs:

Code:
start /Dc:\mrtg-xxx.xxx\bin wperl mrtg --debug="snpo,cfg" --logging=eventlog mrtg.cfg
Reply With Quote
  #5 (permalink)  
Old 03-14-2005, 02:24 PM
nathan86
Guest
 
Posts: n/a
Default Stops logging

It didn't log anything wrong

But...

I got this error in eventview after 2 days of logging it said.

Warning: rateup died from signal 0
with exit value 1 when doing router xxxxx_xxxxxx
Signal was 0, Returncode was 1.

And this:

SNMP Error:
no response received
SNMPV1_Session (remote host: "IP.xxx.xx.xx. [xxx.xxx.xxx.xxx].161)
Community: "xxxxxxx"
request ID: 994981897
PDU bufsize: 8000 bytes
Timeout: 2s
retries 5
backoff : 1

And this:

SNMPGET Problem for ifInOctets.65539 ifOutOctets.65539 sysuptime
Sysname on community@IPadress::::::::::V4only

And another thing

When I trie to get value's from a HDD that's in the fileserver
with GetIf it gives only 2 values and it should give 4 values
it has 3 partitions so it should display C: D: E: and total
But I only get 2 values.
Reply With Quote
  #6 (permalink)  
Old 03-14-2005, 04:57 PM
nathan86
Guest
 
Posts: n/a
Default

I'm now trying it with the debug option given to me in the last reply

In about 2 days i'll know what it has to say about mrtg when it stops logging then i'll post a copy of the errors on this forum

thanks for ur hellp
Reply With Quote
  #7 (permalink)  
Old 03-21-2005, 01:44 PM
MRTG MAN
Guest
 
Posts: n/a
Default

I tried it with the debug options

No errors appeared in the log files

Everything seemed fine but on the saturday it was interupted

No errors
Log file just stopped
At the time MRTG stopped logging
It kept daemonizing but doesn't log anything to the graphs or the log file
Reply With Quote
  #8 (permalink)  
Old 03-21-2005, 02:20 PM
MRTG Mediocre
Guest
 
Posts: n/a
Default

It stopped logging again saturday night
with the following error message in eventlog

Windows cannot acces file gpt.ini
for GPO CN={31b2f340-016d-11d2-945f-00c04fb984f9}
CN=Policies,CN=System,DC=Domain, DC=Local
<\\domain.local\sysvol\domail.local\Policies\{31b2 f340-016d-11d2-945f-00c04fb984f9}\gpt.ini>
(Configuration information could not be read from the domain controller, either because the machine in unavailable, or acces has been denied.).
Group policy processing aborted

I don't know what i can do about this problem or if it is causing the problems with mrtg but maybe someone knows the problem

Or can help me with it.
Reply With Quote
  #9 (permalink)  
Old 03-21-2005, 08:26 PM
Guest
 
Posts: n/a
Default

Quote:
for GPO CN={31b2f340-016d-11d2-945f-00c04fb984f9}
CN=Policies,CN=System,DC=Domain, DC=Local
<\\domain.local\sysvol\domail.local\Policies\{31b2 f340-016d-11d2-945f-00c04fb984f9}\gpt.ini>
Looks like it is NT/2000/XP policy problem
Reply With Quote
  #10 (permalink)  
Old 03-22-2005, 04:35 PM
MRTG Mediocre
Guest
 
Posts: n/a
Default

Yes I got it solved
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
MRTG help Pili Getting started tutorials 0 12-17-2007 06:20 PM
Fedora 8 Installation Hangs / Stops at maria_88 Linux software 2 12-13-2007 06:01 PM
Error while logging in the linux system vaibhav.kanchan Getting started tutorials 2 07-19-2007 10:27 PM
Call Logging and Asset Mgmnt SW ricc Linux software 1 06-29-2007 02:45 AM
Logging File Accesses madz Shell scripting 2 11-08-2006 02:54 AM


All times are GMT +5.5. The time now is 06:10 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36