[root@ns1 objects]# yum install net-snmp* -y
[root@ns1 objects]# yum install mrtg* -y
[root@ns1 objects]# yum install httpd* -y
[root@ns1 objects]# chkconfig snmpd on
[root@ns1 objects]# chkconfig httpd on
[root@ns1 objects]# /etc/init.d/snmpd restart
Stopping snmpd: [FAILED]
Starting snmpd: [ OK ]
[root@ns1 objects]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost ~]# mkdir -p /var/www/html/nms
[root@ns1 objects]# cfgmaker --global 'WorkDir: /var/www/html/nms' --global 'Options[_]: bits,growright' --output /etc/mrtg/nms.cfg public@172.30.10.81
[root@ns1 objects]# indexmaker --output=/var/www/html/nms/index.html /etc/mrtg/nms.cfg
[root@ns1 objects]# mrtg /etc/mrtg/nms.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
-----------------------------------------------------------------------
[root@ns1 objects]# env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
[root@ns1 objects]# env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
[root@ns1 objects]# env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
[root@ns1 objects]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 objects]# crontab -e
*/5 * * * * /usr/bin/mrtg /etc/mrtg/mymrtg.cfg --logging /var/log/mrtg.log
[root@ns1 objects]# chkconfig crond on
[root@ns1 objects]# /etc/init.d/crond restart
Stopping crond: [ OK ]
Starting crond: [ OK ]
[root@ns1 html]# vim /etc/snmp/snmpd.conf
rocommunity public
rocommunity Canopy
[root@ns1 html]# /etc/init.d/snmpd restart
Stopping snmpd: [ OK ]
Starting snmpd: [ OK ]
[root@ns1 html]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 html]# mkdir -p /var/www/html/ulania
[root@ns1 html]# cfgmaker --global 'WorkDir: /var/www/html/ulania' --global 'Optlania.cfg public@172.30.5.144
[root@ns1 html]# indexmaker --output=/var/www/html/ulania/index.html /etc/mrtg/ulania.cfg
[root@ns1 html]# mrtg /etc/mrtg/ulania.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
-----------------------------------------------------------------------
[root@ns1 html]# env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
[root@ns1 html]# env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
[root@ns1 html]# env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
[root@ns1 html]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 mm]# mkdir mm
[root@ns1 mm]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 mm]# cd /var/www/html/mm/
[root@ns1 mm]# ls
index.html main.html menu.html
[root@ns1 mm]# vim menu.html
<br><A href="http://192.168.50.30/nms" target="right">Confidence Switch</A>
<br><A href="http://192.168.50.30/ulania" target="right">Ulania Switch</A>
[root@ns1 mm]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost saiful]# vim main.html
[root@localhost saiful]# vim menu.html
<HTML>
<HEAD>
<TITLE>Menu</TITLE>
</HEAD>
<BODY bgcolor="#BFE1E7">
<A href="main.html" target="right">Home</A>
<br><A href="http://192.168.50.30/nms" target="right">Confidence Tower</A>
<br><A href="https://202.84.64.45/edge-dhk31" target="right">EDGE DHK31</A>
<br><A href="https://202.84.64.45/napsw-dhk31" target="right">NAP Switch</A>
<br><A href="https://202.84.64.45/edge-dhk01" target="right">EDGE DHK01</A>
<br><A href="https://202.84.64.45/edge-dhk02" target="right">EDGE DHK02</A>
<br><A href="https://202.84.64.45/edge-dhk07" target="right">EDGE DHK07</A>
<br><A href="https://202.84.64.45/edge-dhk08" target="right">EDGE DHK08</A>
<br><A href="https://202.84.64.45/bh-dhk39" target="right">BH DHK39</A>
<br><A href="https://202.84.64.45/bhsw-dhk02" target="right">BH DHK02</A>
<br><A href="https://202.84.64.45/bh-dhk15" target="right">BH DHK15</A>
<br><A href="https://202.84.64.45/yz_graphics" target="right">Y&Z Graphics</A>
<br><A href="https://202.84.64.45/ruhit" target="right">RUHIT.NET</A>
<br><A href="https://202.84.64.45/shilamoni" target="right">Shila Moni</A>
<br><A href="https://202.84.64.45/jsknit" target="right">MK FASHION</A>
<br><A href="https://202.84.64.45/gtg" target="right">ISL 13th Floor</A>
<br><A href="https://202.84.64.45/dns1" target="right">DNS1</A>
<br><A href="https://202.84.64.45/dns2" target="right">DNS2</A>
<br><A href="https://202.84.64.45/boss" target="right">BOSS</A>
<br><A href="https://202.84.64.45/axsmanager" target="right">AXS Manager</A>
<br><A href="https://202.84.64.45/mail" target="right">MAIL</A>
<br><A href="https://202.84.64.45/mrtg" target="right">MRTG</A>
<br><A href="https://202.84.64.45/nocmtusw1" target="right">NOCMTUSW1</A>
<br><A href="https://202.84.64.45/nocmtusw2" target="right">NOCMTUSW2</A>
<br><A href="https://202.84.64.45/abc_net" target="right">ABC.NET</A>
<br><A href="https://202.84.64.45/hkfish" target="right">HKFISH</A>
<br><A href="https://202.84.64.45/stremcomm" target="right">STREMCOMM</A>
<br><A href="https://202.84.64.45/uploadnw" target="right">UPLOADNW</A>
<br><A href="https://202.84.64.45/asus_10th" target="right">TECHSUPPORT</A>
</BODY>
</HTML>
[root@localhost nagios-plugins-1.4.15]# vim /var/www/html/saiful/.htaccess
AuthName "Resticted Users"
AuthType Basic
AuthUserFile /var/www/html/.htpasswd
require valid-user
[root@localhost nagios-plugins-1.4.15]# htpasswd -bc /var/www/html/saiful/.htpasswd admin 123456
Adding password for user admin
[root@localhost nagios-plugins-1.4.15]# chgrp apache /var/www/html/saiful/.htpasswd
[root@localhost nagios-plugins-1.4.15]# chmod g+r /var/www/html/saiful/.htpasswd
[root@localhost nagios-plugins-1.4.15]# vim /etc/httpd/conf/httpd.conf
<Directory /var/www/html/saiful>
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>
[root@localhost nagios-plugins-1.4.15]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 objects]# yum install mrtg* -y
[root@ns1 objects]# yum install httpd* -y
[root@ns1 objects]# chkconfig snmpd on
[root@ns1 objects]# chkconfig httpd on
[root@ns1 objects]# /etc/init.d/snmpd restart
Stopping snmpd: [FAILED]
Starting snmpd: [ OK ]
[root@ns1 objects]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost ~]# mkdir -p /var/www/html/nms
[root@ns1 objects]# cfgmaker --global 'WorkDir: /var/www/html/nms' --global 'Options[_]: bits,growright' --output /etc/mrtg/nms.cfg public@172.30.10.81
[root@ns1 objects]# indexmaker --output=/var/www/html/nms/index.html /etc/mrtg/nms.cfg
[root@ns1 objects]# mrtg /etc/mrtg/nms.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
-----------------------------------------------------------------------
[root@ns1 objects]# env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
[root@ns1 objects]# env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
[root@ns1 objects]# env LANG=C /usr/bin/mrtg /etc/mrtg/nms.cfg
[root@ns1 objects]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 objects]# crontab -e
*/5 * * * * /usr/bin/mrtg /etc/mrtg/mymrtg.cfg --logging /var/log/mrtg.log
[root@ns1 objects]# chkconfig crond on
[root@ns1 objects]# /etc/init.d/crond restart
Stopping crond: [ OK ]
Starting crond: [ OK ]
[root@ns1 html]# vim /etc/snmp/snmpd.conf
rocommunity public
rocommunity Canopy
[root@ns1 html]# /etc/init.d/snmpd restart
Stopping snmpd: [ OK ]
Starting snmpd: [ OK ]
[root@ns1 html]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 html]# mkdir -p /var/www/html/ulania
[root@ns1 html]# cfgmaker --global 'WorkDir: /var/www/html/ulania' --global 'Optlania.cfg public@172.30.5.144
[root@ns1 html]# indexmaker --output=/var/www/html/ulania/index.html /etc/mrtg/ulania.cfg
[root@ns1 html]# mrtg /etc/mrtg/ulania.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
-----------------------------------------------------------------------
[root@ns1 html]# env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
[root@ns1 html]# env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
[root@ns1 html]# env LANG=C /usr/bin/mrtg /etc/mrtg/ulania.cfg
[root@ns1 html]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 mm]# mkdir mm
[root@ns1 mm]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns1 mm]# cd /var/www/html/mm/
[root@ns1 mm]# ls
index.html main.html menu.html
[root@ns1 mm]# vim menu.html
<br><A href="http://192.168.50.30/nms" target="right">Confidence Switch</A>
<br><A href="http://192.168.50.30/ulania" target="right">Ulania Switch</A>
[root@ns1 mm]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@localhost saiful]# vim index.html
<HTML>
<HEAD>
<TITLE>MRTG XpressBD</TITLE>
</HEAD>
<FRAMESET cols="150, *">
<FRAME src="menu.html" marginheight="5" marginwidth="5" noresize scrolling="auto">
<FRAME src="main.html" name="right" marginheight="15" marginwidth="15" noresize scrolling="auto">
</FRAMESET>
</HTML>
[root@localhost saiful]# vim main.html
<HTML>
<HEAD>
<TITLE>About Page</TITLE>
</HEAD>
<BODY>
<P>
<BR><BR>
<P>Welcome to XpressBD NMS.</BODY>
</HTML>
<HEAD>
<TITLE>About Page</TITLE>
</HEAD>
<BODY>
<P>
<BR><BR>
<P>Welcome to XpressBD NMS.</BODY>
</HTML>
[root@localhost saiful]# vim menu.html
<HTML>
<HEAD>
<TITLE>Menu</TITLE>
</HEAD>
<BODY bgcolor="#BFE1E7">
<A href="main.html" target="right">Home</A>
<br><A href="http://192.168.50.30/nms" target="right">Confidence Tower</A>
<br><A href="https://202.84.64.45/edge-dhk31" target="right">EDGE DHK31</A>
<br><A href="https://202.84.64.45/napsw-dhk31" target="right">NAP Switch</A>
<br><A href="https://202.84.64.45/edge-dhk01" target="right">EDGE DHK01</A>
<br><A href="https://202.84.64.45/edge-dhk02" target="right">EDGE DHK02</A>
<br><A href="https://202.84.64.45/edge-dhk07" target="right">EDGE DHK07</A>
<br><A href="https://202.84.64.45/edge-dhk08" target="right">EDGE DHK08</A>
<br><A href="https://202.84.64.45/bh-dhk39" target="right">BH DHK39</A>
<br><A href="https://202.84.64.45/bhsw-dhk02" target="right">BH DHK02</A>
<br><A href="https://202.84.64.45/bh-dhk15" target="right">BH DHK15</A>
<br><A href="https://202.84.64.45/yz_graphics" target="right">Y&Z Graphics</A>
<br><A href="https://202.84.64.45/ruhit" target="right">RUHIT.NET</A>
<br><A href="https://202.84.64.45/shilamoni" target="right">Shila Moni</A>
<br><A href="https://202.84.64.45/jsknit" target="right">MK FASHION</A>
<br><A href="https://202.84.64.45/gtg" target="right">ISL 13th Floor</A>
<br><A href="https://202.84.64.45/dns1" target="right">DNS1</A>
<br><A href="https://202.84.64.45/dns2" target="right">DNS2</A>
<br><A href="https://202.84.64.45/boss" target="right">BOSS</A>
<br><A href="https://202.84.64.45/axsmanager" target="right">AXS Manager</A>
<br><A href="https://202.84.64.45/mail" target="right">MAIL</A>
<br><A href="https://202.84.64.45/mrtg" target="right">MRTG</A>
<br><A href="https://202.84.64.45/nocmtusw1" target="right">NOCMTUSW1</A>
<br><A href="https://202.84.64.45/nocmtusw2" target="right">NOCMTUSW2</A>
<br><A href="https://202.84.64.45/abc_net" target="right">ABC.NET</A>
<br><A href="https://202.84.64.45/hkfish" target="right">HKFISH</A>
<br><A href="https://202.84.64.45/stremcomm" target="right">STREMCOMM</A>
<br><A href="https://202.84.64.45/uploadnw" target="right">UPLOADNW</A>
<br><A href="https://202.84.64.45/asus_10th" target="right">TECHSUPPORT</A>
</BODY>
</HTML>
[root@localhost nagios-plugins-1.4.15]# vim /var/www/html/saiful/.htaccess
AuthName "Resticted Users"
AuthType Basic
AuthUserFile /var/www/html/.htpasswd
require valid-user
[root@localhost nagios-plugins-1.4.15]# htpasswd -bc /var/www/html/saiful/.htpasswd admin 123456
Adding password for user admin
[root@localhost nagios-plugins-1.4.15]# chgrp apache /var/www/html/saiful/.htpasswd
[root@localhost nagios-plugins-1.4.15]# chmod g+r /var/www/html/saiful/.htpasswd
[root@localhost nagios-plugins-1.4.15]# vim /etc/httpd/conf/httpd.conf
<Directory /var/www/html/saiful>
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>
[root@localhost nagios-plugins-1.4.15]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
No comments:
Post a Comment