expr計算指令
作者:cross 日期:2006-12-30 20:45
MRTG + sysstat + cpu loading on linux
作者:cross 日期:2006-12-30 20:10
[1] apt-get install sysstat
[2] mkdir /var/www/mrtg/cpu
[3] 利用sysstat 的 sar程式,來作監測CPU的script
安裝套件
apt-get install sysstat
vi mrtg-sar.sh
#!/bin/bash
cpuusr=`/usr/bin/sar -u 1 3 | grep Average | awk '{print $3}'`
cpusys=`/usr/bin/sar -u 1 3 | grep Average | awk '{print $5}'`
echo $cpuusr
echo $cpusys
測式
MRTG + lm_sensors + CPU溫度 on linux
作者:cross 日期:2006-12-30 20:10
[1] apt-get install lm_sensors
[2] 執行 sensors-detect指令
此用來偵測設定值,全Enter即可,
之後它自已會將該要的module放於/etc/sysconfig/lm_sensors裡
[3] 載入/etc/sysconfig/lm_sensors裡的模組
指令如下
modprobe module1
modprobe module2
如果是 RPM安裝
service lm_sensors start
執行 sensors指令可看到溫度資訊
MRTG + net-snmp MIBs + cpu loading on linux
作者:cross 日期:2006-12-30 20:10
ssCpuUser & ssCpuSystem
vi mrtg-cpu.cfg
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
WorkDir: /var/www/mrtg/cpu
Target[10.1.1.254_sscpu]: ssCpuUser.0&ssCpuSystem.0:cross@10.1.1.254
RouterUptime[10.1.1.254_sscpu]: cross@10.1.1.254
MaxBytes[10.1.1.254_sscpu]: 100
Unscaled[10.1.1.254_sscpu]: dwmy
Directory[10.1.1.254_sscpu]: ssCpu
Options[10.1.1.254_sscpu]: growright, nopercent, gauge
YLegend[10.1.1.254_sscpu]: percentages.
ShortLegend[10.1.1.254_sscpu]: %
Legend1[10.1.1.254_sscpu]: percentages of user CPU time.
Legend2[10.1.1.254_sscpu]: percentages of system CPU time.
LegendI[10.1.1.254_sscpu]: User:
LegendO[10.1.1.254_sscpu]: System:
f2blog + 發表文章時標題不可加單引號
作者:cross 日期:2006-12-30 12:13
MySQL + FQA 常見問題
作者:cross 日期:2006-12-30 12:13
。cant find any matching row in the user table
當將資料庫整個匯出入到另一系統時,存取資料庫連不上?
帳號密碼都在,想說是不是 old_password的問題,
指令一執行下去,出現can't find any matching row in the user table訊息,
原來要 flush privileges;
。MySQL如何升級
http://freesf.tnc.edu.tw/modules/newbb/viewtopic.php?topic_id=13&forum=1
。total memory等於
total memory = key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections
。匯入資料庫出現MySQL server has gone away錯誤訊息
修正方式
vi /etc/my.cnf
snort-inline 2005/12/09 記錄
作者:cross 日期:2006-12-28 16:01
官網放出用 snort-2.4.3.tar.gz加上 patch方式,編譯 snort_inline-2.4.3RC2.diff
Quote:
Hi everyone!
Today is the day Will is getting married with his bride Lindsay. Thats
why todays release is dubbed "The Wedding Release". Before i tell you
guys about the release i want to wish William and Lindsay all the best
together! Congratulations and have fun on your honeymoon!




