4.14.2009

telnet 25/110测试mail服务器

telnet test.com 25
R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready
S: HELO MIT-MC.ARPA
R: 250 SU-SCORE.ARPA
S: VRFY Crispin
R: 250 Mark Crispin
S: SEND FROM:
R: 250 OK
S: RCPT TO:
R: 250 OK

S: DATA
R: 354 Start mail input; end with .
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 SU-SCORE.ARPA Service closing transmission channel


telnet test.com 110

POP3 Commands:

USER name valid in the AUTHORIZATION state
PASS string
QUIT

STAT valid in the TRANSACTION state
LIST [msg]
RETR msg
DELE msg
NOOP
RSET
QUIT

Optional POP3 Commands:

APOP name digest valid in the AUTHORIZATION state

TOP msg n valid in the TRANSACTION state
UIDL [msg]

POP3 Replies:
+OK
-ERR

More Details
http://www.ietf.org/rfc/rfc1939.txt
http://www.ietf.org/rfc/rfc0821.txt

4.10.2009

zabbix系统监控首选

最近研究了一下zabbix,它在监控上确实做得很不错

可以监控一下内容。
system.localtime
system.run 远程执行系统命令
web.page.get[localhost,,80]
Date:
Server:
Last-Modified:
ETag:
Accept-Ranges:
Content-Length:
Vary:
Connection:
Content-Type:
web.page.perf[localhost,,80]
web.page.regexp[localhost,,80,OK]
vfs.file.exists[/etc/passwd]
vfs.file.time[/etc/passwd,modify]
vfs.file.size[/etc/passwd]
vfs.file.regexp[/etc/passwd,root]
vfs.file.regmatch[/etc/passwd,root] 搜索文件中内容
vfs.file.cksum[/etc/passwd]
vfs.file.md5sum[/etc/passwd]
net.tcp.dns[127.0.0.1,localhost]
net.tcp.port[,80]
system.hostname
system.uname
system.users.num
log[logfile]
eventlog[system]
kernel.maxfiles
kernel.maxproc

文件系统监控
vfs.fs.size[/,free]
vfs.fs.inode[/,free]
vfs.dev.read[sda,operations]
vfs.dev.write[sda,sectors]
net.tcp.listen[80]

网络流量监控
net.if.in[lo,bytes]
net.if.out[lo,bytes]
net.if.total[lo,bytes]
net.if.collisions[lo]

CPU/内存使用监控
vm.memory.size[total]
proc.num[inetd,,,]
proc.mem[inetd,,]
system.cpu.switches
system.cpu.intr
system.cpu.util[all,user,avg1]
system.cpu.load[all,avg1]
system.cpu.num[online]
system.swap.size[all,free]
system.swap.in[all]
system.swap.out[all]
system.uptime
system.boottime

服务监控
net.tcp.service[ssh,127.0.0.1,22]
net.tcp.service.perf[ssh,127.0.0.1,22]

推荐Linux系统管理员使用

网址:http://www.zabbix.com/

Labels:

4.07.2009

自动部署之Puppet

Puppet在自动部署上是一个很不错的选择,可以定义不同的节点。
并且在不同节点上进行各种操作,包括软件安装,配置文件修改,服务管理等

具体参考:
http://www.howtoforge.com/installing_puppet_on_ubuntu

更多应用:
http://reductivelabs.com/trac/puppet

Labels: