IceskYsl@1sters!

程序员…

Archive for the ‘Tips’ Category

Munin LogoIf your running Munin in WHM they you may have noticed the passive netstat connections have been rising steadily over the last couple of weeks. This isn’t a problem with your server, its a Munin bug that can be easily fixed.

Passive netstat  connection - Munin

Apparently the problem stemms from Munin counting the passive connections rejected. You can fix this problem quite easily by following the instructions below

Edit the following file:
/usr/share/munin/plugins/netstat

and change the line

netstat -s | awk ‘/active connections/ { print “active.value ” $1 } /passive connection/ { print “passive.value ” $1 } /failed connection/ { print “failed.value ” $1 } /connection resets/ { print “resets.value ” $1 } /connections established/ { print “established.value ” $1 }’
to
netstat -s | awk ‘/active connections/ { print “active.value ” $1 } /passive connection openings/ { print “passive.value ” $1 } /failed connection/ { print “failed.value ” $1 } /connection resets/ { print “resets.value ” $1 } /connections established/ { print “established.value ” $1 }’

ref:

http://markmaunder.com/2008/how-to-fix-munins-netstat-passive-connections-increasing-constantly/

http://www.silverark.co.uk/knowledge/hosting/fix-the-passive-netstat-connections-in-munin

  • 0 Comments
  • Filed under: *UNIX & Mac, Tips
  • MO,MT,Linkid的关系

    做移动互联网的过程中,有这样一些词是必须知道的,如MO,MT,GSM,LINKID
    上行(MO)上行的意思就是短信发送到服务器端 MO又称 Mobile Original
    下行(MT)下行的意思就是短信从服务器端发回到手机上,MT又称Mobile Terminated
    简单的说,从手机发起一个的过程叫上行(MO),到手机结束的过程叫下行(MT),比如,平时给你的朋友发送一条短信,对你来说就是上行(MO),而对你的朋友来说,就是下行(MT)。在企业、行业应用中,从系统给手机发送信息的过程叫下行(MT),而手机发送信息给系统的过程叫上行(MO)。

    所有用户点播的业务,用户MO(上行)消息通过网关送到MISC鉴权批价后,MISC会自动生成一个随机数linkid随后通过网关传给SP,当SP收到MO(上行)消息后下发MT(下行)消息给用户时必须在Submit包的linkid字段填上MO(上行)消息包里面带的linkid信息(Reserve值:设定的回复内容)。

  • 0 Comments
  • Filed under: Tips
  • The Git TextMate Bundle

    TextMate中已经集成了SVN的Bundle,使用起来非常方便,要用Git的话也可以装Bundle,方法如下:

    Installation

    mkdir -p ~/Library/Application\ Support/TextMate/Bundles
    cd ~/Library/Application\ Support/TextMate/Bundles
    git clone git://github.com/jcf/git-tmbundle Git.tmbundle

    restart teatmate and it’s done!

    In the TextMate preferences, advanced tab, shell variables, set the TM_GIT variable to point to your installation of git (ie /usr/local/bin/git)
    Many shortcuts are available from the Git-shortcut (Ctrl-Shift-G). Subversion commands are Command-Option-g. Less frequent commands are accessed via the menu.
    Update your bundle by running the “Update Git Bundle” command.

    Installing a New Textmate Theme

    To install a new theme, select one of the .tmTheme links listed below, download it to your desktop and double-click on the file. This will place it in ~/Library/Application Support/TextMate/Themes, at which point the new theme will appear in the list found in Preferences → Fonts & Colors. This will also set it as the active theme. (Once the theme is installed, you may remove the .tmTheme from your desktop.)

    Rails Envy TextMate Theme
    http://railsenvy.com/2008/9/18/rails-envy-textmate-theme

    User Submitted Themes
    http://wiki.macromates.com/Themes/UserSubmittedThemes

  • 1 Comment
  • Filed under: Tips
  • Page::页面

    Calendar::日历

    September 2010
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  

    RSSTwitter: iceskysl