Installing Admin Panel in Red5

1). Install Red5 version 0.9.0
2). Download & Install Admin Plugin

# cd /usr/local/red5
# mkdir plugins
# cd plugins
# wget http://red5.googlecode.com/files/AdminPlugin-1.0.zip
# unzip -d /usr/local/red5/plugins AdminPlugin-1.0.zip

3). Download admin.jsp file.

cd /usr/local/red5/webapps
cd root
wget http://216.144.249.2/admin.jsp

4). Restart Red5

# pkill -9 java
# cd /usr/local/red5
# ./red5.sh &

5). Register a new admin user here

http://ip:5080/admin/admin.jsp

6). Login to admin panel

http://ip:5080/demos/adminPanel.html

Advertisements

OpenVz: Migrating Vps from one Hard disk to another

*First copy the contents from old directory to new disk directory

cp -a /var/lib/vz/private/109/* /disk3/private/109/

*Once the copying is over stop the vps

vzctl stop 109

*Drop the quota file

vzquota drop 109

*Then edit the config file and enter the new VE_PRIVATE value,

nano /etc/vz/conf/109.conf

VE_PRIVATE=”/disk3/private/119″

mv /var/lib/vz/private/109 /var/lib/vz/private/109.bak //taking backup to restore if needed, once successful you can remove this file

*Start the vps

vzctl start 109

MRTG installation on linux server

1 Checking for snmp server

rpm -qa | grep snmp

yum install net-snmp-utils net-snmp

2 Checking Snmpd service running or not in the server

ps -aux | grep snmp

or

lsof -i :199

or

netstat -natv | grep ‘:199’

service snmpd start

chkconfig –add snmpd

chkconfig snmpd on

3 Checking snmp server configured properly

vi /etc/snmp/snmpd.conf

find

com2sec notConfigUser default public

replace

com2sec local localhost public
com2sec mynetwork 192.168.0.0/24 public (here replace with your network)

find
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser

Replace with:

group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
Again scroll down a bit and locate the following line:

Find line:

view systemview included system
Replace with:

view all included .1 80
Again scroll down a bit and change the following line:

Find line:

access notConfigGroup “” any noauth exact systemview none none
Replace with:

access MyROGroup “” any noauth exact all none none
access MyRWGroup “” any noauth exact all all none
Scroll down a bit and change the following lines:

Find lines:

syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root (configure /etc/snmp/snmp.local.conf)

Replcaec with

syslocation Linux (OS Name), Linux Router.
syscontact YourNameHere

chkconfig snmpd on
service snmpd start

snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex

Sample outputs:
ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.127.0.0.1 = 1
ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.192.168.0.3 = 2

4 Install mrtg

yum install mrtg

5 Configure mrtg

mkdir -p /usr/local/apache/htdocs/mrtg
cfgmaker –global ‘WorkDir: /usr/local/apache/htdocs/mrtg’ –output /etc/mrtg/mrtg.cfg public@localhost

indexmaker –output=/usr/local/apache/htdocs/mrtg/index.html /etc/mrtg/mrtg.cfg

6 checking cron

cat /etc/cron.d/mrtg

7 Access mrtg using http://your-ip.add.ress/mrtg/