Error: database disk image is malformed
Fixed:
you just run this cmd yum clean dbcacheor yum clean all
Done !
Nguyen Si Nhan
Services
---------------------------
Windows could not start the Windows Audio Endpoint Builder service on Local Computer.
Error 1722: The RPC server is unavailable.
---------------------------
OK
---------------------------
#!/bin/bash
#Writed by nhanns[@]vng[dot]com[dot]vn -nhannguyen[@]0937686468[dot]com
#skype: nguyen_si_nhan
#Program'll send alert status to zabbix
#Check number controller
[ ! -f "/opt/dell/srvadmin/bin/omreport" ] && { echo "omreport:file not found-please install hardware monitor for Dell"; exit 1; }
Controller=0
/opt/dell/srvadmin/bin/omreport storage controller >/tmp/controller.tmp
_file1="/tmp/controller.tmp"
#check empty file
if [ ! -s "$_file1" ]
then
echo "Can not run on this server"
exit 2
fi
while read line; do
Bool=0
if [[ "$line" = ID* ]]; then
Bool=1
(( Controller++ ))
# do something with ?
fi
done < /tmp/controller.tmp
#Export to file status of physical disk
i=0
rm -f /tmp/dellstatus.log;
while (( i < Controller )) ; do
/opt/dell/srvadmin/bin/omreport storage pdisk controller=$i >> /tmp/dellstatus.log
(( ++i ))
done
_file2="/tmp/dellstatus.log"
if [ ! -s "$_file2" ]
then
echo "Can not run on this server"
exit 3
fi
Failstatus=0
statusOK=0
while read line; do
BoolSt=0
BoolOk=0
if [[ "$line" = Status* ]]; then
BoolSt=1
(( Failstatus++ ))
# do something with ... ?
fi
if [[ "$line" = *Ok* ]]; then
BoolOk=1
(( statusOk++ ))
# do something with ...?
fi
if [[ "$line" = *Non-Critical* ]]; then
BoolOk=1
(( statusOk++ ))
# do something with ...?
fi
done < /tmp/dellstatus.log
#echo "There were Failstatus $Failstatus Status ."
#echo "There were statusOk $statusOk Ok ."
# Problem = ` $Failstatus - $statusOk `
#let Problem=$Failstatus - $statusOk
#echo 'There are'
#echo `expr $Failstatus - $statusOk `
/opt/zabbix/bin/zabbix_sender -c /opt/check.conf -k hddstatus -o `expr $Failstatus - $statusOk`
<interface><name>Get IOSTAT Devices</name><description>Queries a host for a list of monitorable devices from iostat</description><oid_index>.1.3.6.1.3.1</oid_index><index_order>ioDescr:ioName:ioIndex</index_order>Change this line: <index_order>ioDescr:ioName:ioIndex</index_order>to : <index_order>ioDescr:ioIndex</index_order>DoneNguyen Si Nhan
yum -y install avahi /etc/init.d/messagebus restart /etc/init.d/avahi-daemon restart /etc/init.d/libvirtd restart /sbin/chkconfig messagebus on /sbin/chkconfig avahi-daemon on
Source: http://quags.net/archives/53
cd /etc/pki/rpm-gpg/ wget http://www.crc.id.au/repo/RPM-GPG-KEY-kernel-xen
ssh [email protected]
# vi /etc/my.cnf
[mysqld]
bind-address=YOUR-SERVER-IP
[mysqld] user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/English bind-address = 65.55.55.2 # skip-networking .... .. ....
# /etc/init.d/mysql restart
$ mysql -u root -p mysql
mysql> CREATE DATABASE foo;
mysql> GRANT ALL ON foo.* TO bar@'202.54.10.20' IDENTIFIED BY 'PASSWORD';
mysql> update db set Host='202.54.10.20' where Db='webdb';
mysql> update user set Host='202.54.10.20' where user='webadmin';
mysql> exit
/sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -s 10.5.1.3 -p tcp --destination-port 3306 -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp --destination-port 3306 -j ACCEPT
# service iptables save
pass in on $ext_if proto tcp from any to any port 3306
pass in on $ext_if proto tcp from 10.5.1.3 to any port 3306 flags S/SA synproxy state
[admin] secret = secret123password deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user
AMPMGRUSER=admin AMPMGRPASS=secret123password
http://www3.cmcinfosec.com/downloads/tools/CMC.CleanFakeUnikey.zip
for i in $(ls /var/cpanel/users)
do /scripts/pkgacct $i
done
Solution:================================================================vim +231 /etc/httpd/conf/httpd.conf
change User apache and Group apache to User asterisk and Group asterisk.vim +327 /etc/httpd/conf/httpd.conf
change None to All.
or use sed to replace.sed -i '231,232s/apache/asterisk/i;327s/none/All/i' /etc/httpd/conf/httpd.conf
Restart apache service.service httpd restart
you just run this cmd:
# yum install gcc-c++
Nguyen Si Nhan