Mrtg à ¿Ø» úâ **********************************************************

Source: Internet
Author: User
Tags mrtg

Mrtg à ¿Ø» úâ **********************************************************
1. Authentication» úransomé zookeeper snmp ****é
2. ° ² × ° mrtg

Yum-y install mrtg
3. Å äöw.mrtg
(1) ''¨ ¨ äöã ä ä¼ þ, {0}, {0}, {0} ~äö~~ä ~~~~
Mkdir-p/usr/local/mrtg
Export maker-output =/usr/local/mrtg/switch. cfg public @ resolve» úip

'Commandid ±éú***äswitchw. cfg Å äöã ä ä£ £%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%× zookeeper and zookeeper have been added to the zookeeper vlan, And the vlan has been set?
~Â µ~~~~~~~~» ~â £%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(2) ''¨ Emy · Ã Î Ê ± ámámámímímäweb ä¿ Â ¼
Mkdir-p/usr/local/mrtg/share
(3) ~~~äzúgou» ² *************************************************************** Ë *********************************************************
Vim/usr/local/mrtg/switch. cfg
# For UNIX
WorkDir:/usr/local/mrtg/share
(4) ~ú~~~×~ä~â ~~~~â ****************************
Env LANG = C/usr/bin/mrtg/usr/local/mrtg/switch. cfg
Ö '****************************************************************** ö± öáþ ±?
[Root @ srv10100173 share] # ls
10.10.15.20.1794-day.png 10.10.15.1 _ 1795.log 10.10.15.1 _ 1796.old 10.15.20.257-year.png 10.10.15.20.513.html 10.15.20.514-month.png 10.10.15.20.515-week.png index.html
10.10.15.20.1794.html 10.10.15.20.1795-month.png 10.10.15.20.1796-week.png 10.10.15.255.258-day.png 10.10.15.1 _ 513.log 10.15.1 _ 514.old 10.15.20.515-year.png mrtg-l.png
10.10.15.1 _ 1794.log 10.10.15.1 _ 1795.old 10.15.20.1796-year.png 10.10.15.255.258.html 10.10.15.20.513-month.png 10.10.15.20.514-week.png 10.10.1-15.day.png mrtg-m.png
10.10.15.20.1794-month.png 10.10.15.20.1795-week.png 10.10.15.255.257-day.png 10.10.15.1 _ 258.log 10.10.15.1 _ 513.old 10.15.20.514-year.png 10.10.15.1.html mrtg-r.png
10.10.15.1 _ 1794.old 10.10.15.20.1795-year.png 10.10.15.255.257.html 10.15.255.258-month.png 10.10.15.20.513-week.png 10.10.15.20.515-day.png 10.10.10.1.15.log
10.10.15.20.1794-week.png 10.10.15.20.1796-day.png 10.10.15.1 _ 257.log 10.15.1 _ 258.old 10.10.15.20.513-year.png 10.10.15.20.515.html 10.15.1-month.png
10.10.15.20.1794-year.png 10.10.15.20.1796.html 10.15.255.257-month.png 10.10.15.255.258-week.png 10.10.15.20.514-day.png 10.10.15.1 _ 515.log 10.10.1.15.old
10.10.15.20.1795-day.png 10.10.15.1 _ 1796.log 10.10.15.1 _ 257.old 10.15.20.258-year.png 10.10.15.20.514.html 10.15.20.515-month.png 10.10.15.1-week.png
10.10.15.20.1795.html 10.10.15.20.1796-month.png 10.10.15.255.257-week.png 10.10.15.20.513-day.png 10.10.15.1 _ 514.log 10.15.1 _ 515.old 10.15.1-year.png
(5) ************************************************************************» Â ********************************************************************* ü U Ð Â Ò» 'snapshot
Vim/etc/crontab
*/5 */usr/bin/env LANG = C/usr/bin/mrtg/usr/local/mrtg/switch. cfg>/dev/null> 2 & 1
(6)éúé»indexüê××òò³index.html
Indexmaker-output =/usr/local/mrtg/share/index.html-title = "MainSwitch Traffic Monitoring"/usr/local/mrtg/switch. cfg


4. Å äöw.apache £;*******» web-based zookeeper
Yum ° ² × ° Í ê É ° óró» áyangúapache É Ï éúé Å äöã ä ä¼ þ/etc/httpd/conf. d/mrtg. conf £;**äö *****************************************************************
[Root @ srv10100173 mrtg] # cat/etc/httpd/conf. d/mrtg. conf
#
# This configuration file maps the mrtg output (generated daily)
# Into the URL space. By default these results are only accessible
# From the local host.
#
Alias/mrtg/usr/local/mrtg/share


<Location/mrtg>
Order deny, allow
# Deny from all
Allow from all
Allow from 127.0.0.1
Allow from: 1
# Allow from .example.com
</Location>
Î Ò Ã çé Ò Ô Í "¹ ý http: // ip/mrtg · Ã Î Ê áë £ ££ § ¹ ~~~â £°


Íâ ý ********************************************************************* Ï antáchantproprobe? guímaguíräguírááè {mrtg }à Ø µäámámámírámírámírámírán '{µrámámámán}
Ô úzdhjvbmc + MS7K18/large "http://www.bkjia.com/kf/ware/vc/" target = "_ blank" class = "keylink"> export/qOssqLH0s/gudiyzsr90tG + export + CjxzdHJvbmc + MS7K18/empty + rrNvOC/2Lf + zvE8L3N0cm9uZz48YnI + Cs7Sw8e/weight + Weight = "re giving to this switch
Alias huawei-ER-3100; A longer name associated with the switch
Address 10.10.15.1; IP address of the switch
Hostgroups switches; Host groups this switch is associated
}
Define service {
Use generic-service; Inherit values from a template
Host_name huawei-ER-3100
Service_description Interface 1794 Bandwidth Usage
Check_command check_local_mrtgtraf! /Usr/local/mrtg/share/10.10.15.1 _ 1794.log! AVG! 000000,000000! RMB, RMB! 10
}
~Äögou 10. 10.15.1 _ 1794. log maid 1794» úzäcäcäcäcäcäcācú£;{ç Ç ??????é ¸ ù mrmrtg =€2 â µäó ~~~~~~~~%ø ~~~~~~£
"AVG" ² too many µ ää â ?~~~~~~=' ø ************************************************** ý çömámámímāzä¸ æ ¾ ¯ à Ż (Ò Ô Ö × µ ») £ "usd,5000000" Ç çê ämöámámámím=¼ ± 'Ì ¬ à Šϻ (Ò ô ×ömúî ª µ μ ¥») £;10 "Ç çö~%%%%mrtg %%%%%%%%%%%%%10 · ööó %» Ó %%%%%%%%%%%%% · μ» Ø limit» ö ö½ ¼ ± × 'Ì ¬ (Ó ¦ à ¿5 · ööó ¸ ü Ð Â Ò» 'î)


2. ~~~² é nagios ~äö~~~~ä~~öø ~~~~
/Usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios. cfg
Service nagios restart



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.