Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >System Management


    

Blue Forest http://www.lslnet.com at 20:18 on April 6, 2006


FreeBSD mrtg monitoring using the machine, the entire network flow, sharing a bit :)

Finally we can know which kid in the occupied bandwidth, Oh

1 : Installation snmp

Cd /usr/ports/net-mgmt/p5-SNMP

Make install clean

These will tell you to fill in your email, operating systems, etc., can direct the transport.

Snmp can start with the following orders, /usr/local/etc/rc.d/snmpd.sh start

2 : Installation mrtg

Cd /usr/ports/net-mgmt/mrtg

Make install clean

3 : Flow Control Server Configuration document index.cfg

/usr/local/bin/cfgmaker --output=/usr/www/mrtg/index.cfg Public@192.168.0.1
Index.cfg then amend the document, the following major changes to conform to the actual situation you

WorkDir : /usr/www/mrtg

Options[_] : growright, bits

Language:GB2312

He got five minutes for the implementation of a ############## ########################
RunAsDaemon : Yes
Refresh:300
################################# ###### Or can do :
Crontab-e
* * * * /usr/local/bin/mrtg /usr/www/mrtg/index.cfg */5
Behind the proposal to use the method because the former does not make use MRTG RunAsDaemon switched on the automatic operation mode
################################################


Now then :
/usr/local/bin/mrtg /usr/www/mrtg/index.cfg

This operation needs three times, twice before being given the will, do not have to pay attention to him, it should be no mistake 3rd, but
If there are problems, then we need to change index.cfg, and the implementation date until no errors.

Produced the first page index.html :

/usr/local/bin/indexmaker --output=/usr/www/mrtg/index.html /usr/www/mrtg/index.cfg


After this you can see through : http://******/mrtg/index.html the flow of the agent.

And then talk about how to monitor all port 6509

In 6509 the two-story runs :
Set snmp rmon enable
Set snmp community read-only mrtg
In FreeBSD machine :
  
/usr/local/bin/cfgmaker --output=/usr/www/mrtg/6509.cfg Mrtg@10.0.0.1
6509.cfg then amend the document, the following major changes to conform to the actual situation you
Ee /usr/www/mrtg/6509.cfg
WorkDir : /usr/www/mrtg
Options[_] : growright, bits
Language:Chinese

/usr/local/bin/mrtg /usr/www/mrtg/6509.cfg
This operation needs three times, twice before being given the will, do not have to pay attention to him, it should be no mistake 3rd, but
If there are problems, then we need to change 6509.cfg, and the implementation date until no errors.

Produced the first page index.html :
/usr/local/bin/indexmaker --output=/usr/www/mrtg/6509.html /usr/www/mrtg/6509.cfg

It running about every five minutes :
Crontab-e
* * * * /usr/local/bin/mrtg /usr/www/mrtg/6509.cfg */5

For example, the exchange control 10.0.0.2 other classes, we are cisco3524 method is similar to 6509, is somewhat different order :
Snmp-server community mrtg RO, in the name of some other copy diverted there.

FAQ :

################Q1############################
Q1 : I am under English
Max In : 935.6 kbps (0.9%)
Max Out : 5306.4 kbps (5.3%).
But only under the Chinese show
1$2/ largest inflows : $ 935.6 seconds (0.9%)
1$2/ second largest outflow : $ 5306.4 (5.3%).
This is how it all about?
A1 : Editor /usr/local/lib/perl5/site_perl/5.8.5/locales_mrtg.pm

Now to find the sub gb2312
Was this :
Code :

'([kMG]?) ([bB]) /s' =>;' $ 1$2/ seconds'
'([kMG]?) ([bB]) Min' =>; '$ 1$2/ hours'
'([kMG]?) ([bB]) Per hour' =>; '$ 1$2/ time'

Changed to this :
Code :

'([kMG]?) ([bB]) /s' =>;' $ 1$2/ seconds'
'([kMG]?) ([bB]) Min' =>; '$ 1$2/ hours'
'([kMG]?) ([bB]) Per hour' =>; '$ 1$2/ time'
A2 : mrtg.cfg amend your documents. A Chinese language changed :
Is :
Language:Chinese
##########################################

#######################Q2##################
Q2 : I operated /usr/local/bin/cfgmaker --output=/usr/mrtg/6509.cfg mrtg@10.0.0.1
Traffic Analysis for the generation after more than 40 1 -- 6509 and so on, we added a 48 to the 6509 population is the plank.
Should have a total of more than 50, there are now just over 40 in the implementation of this order is not because I was the only time more than 40 aircraft
The device is driving? The time will come after them to be monitoring? I will be automatically generated Traffic Analysis for 1 -- 6509
This table?
A : No connected at the port are unable to grasp the cfgmaker. To realize the flow is not switched to 0, switched began after monitoring traffic flow
Need to manually change their cfg document, a footnote to remove all unused ports, and the attention of the ballots blank lines, and must cfgmaker generation is the same,
Otherwise it is not caught, then /usr/local/bin/mrtg /usr/www/mrtg/6509.cfg be implemented. #######################################################

####################Q3################################
Q3 : In this machine, I can only control the flow of all the switches, does not control the flow, because it is there and then 6509.
It is not operating snmpd?
A : SNMP module in the switch is done, and your server does not matter, it will not be your natural mainframe operating SNMPD.
But caught in the switches you have this flow against the hosts (that is the opposite of inflows and outflows, this is obviously a)
#########################################################



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com