Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FIXED -- Using MRTG for memory monitoring only works locally
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dizzysaurus
n00b
n00b


Joined: 31 Jul 2003
Posts: 38
Location: MI, US

PostPosted: Tue Nov 25, 2003 7:17 pm    Post subject: FIXED -- Using MRTG for memory monitoring only works locally Reply with quote

Hi Guys/Gals,

From https://forums.gentoo.org/viewtopic.php?t=105865 I set up mrtg monitoring on my admin box. Now I want to do the same on my other boxes.

On each box I added an snmpd.conf that allows access from my admin box:
Code:
com2sec local     machine's IP Address        public
and on my admin box I created a new set of mrtg config scripts, with the details changed to point to the remote machines.

While CPU and traffic monitoring work OK (as far as I can tell - these new boxes have multiple processors). I can't get any details of free memory or used swap. The local machine's mrtg log file for memory has entries like:
Code:
1069787704 494680 494680 494680 494680
1069787404 503520 503520 503520 503520
1069787400 503362 503362 503520 503520
1069787100 491744 491744 494720 494720

The log files for the remote machines contain
Code:
1069787704 0 0 0 0
1069787403 0 0 0 0
1069787400 0 0 0 0
1069787100 0 0 0 0


Is there any way to tell where along the line things are going wrong? I used console output for the snmpd on the remote boxes and it certainly seems like the requests are getting through. How can I tell if the information is correct or not? How can I find out what mrtg thinks is happening?

Thanks!
----

D'oh! :oops:

It seems that my remote boxes have too much swap and memory for this to work with the default mrtg config files. I had to modify the line:
Code:
MaxBytes[hostnamegoeshere.mem]: 1000000

to
Code:
MaxBytes[hostnamegoeshere.swap]: 100000000

This allows mrtg to deal with the vast swathes of swap my boxes have (yes, I'm boasting)

Yet another case of asking for help and solving it oneself :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum