He,YuanHui —— 业精于勤荒于嬉,行成于思毁于随

如果你喜欢一个事,又有这样的才干,那就把整个人都投入进去,就要象一把刀直扎下去直到刀柄一样,不要问为什么,也不要管会碰到什么。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年12月30日

摘要: 1: 软件包 syslogd2: /etc/syslog.conf 配置文件格式:facility.level action(设备.优先级 动作)2.1facility 如下:auth -用户授权authpriv -授权和安全cron -计划任务:at ,crondaemon -系统守护进程kern -与内核有关系的信息lpr -与打印服务有关的信息。mail -与电子邮件有关的信息news -来自新闻服务器的信息syslog -由 syslog 生成的信息user -用户的程序生成的信息,默认。uucp -由 uucp 生成的信息local0-local7 -来定义本地策略 2.2 leve 阅读全文
posted @ 2010-12-30 17:51 He,YuanHui 阅读(769) 评论(0) 推荐(0) 编辑

摘要: Very simple config -- starting point for modifications From rsyslog wiki Jump to: navigation, search I struggled a bit to figure out where to start with rsyslogd. I wanted to find a complete conf file that I could edit, but everything I found was either really complex or did not inclu 阅读全文
posted @ 2010-12-30 12:57 He,YuanHui 阅读(354) 评论(0) 推荐(0) 编辑

摘要: Log Router syslog with Dynamic File Names From rsyslog wiki Jump to: navigation, search 阅读全文
posted @ 2010-12-30 12:56 He,YuanHui 阅读(435) 评论(0) 推荐(0) 编辑

摘要: Writing Rsyslog Output Plugins This page is the begin of some developer documentation for writing output plugins. Doing so is quite easy (and that was a design goal), but there currently is only sparse documentation on the process available. I was tempted NOT to write this guide here because I know 阅读全文
posted @ 2010-12-30 12:49 He,YuanHui 阅读(601) 评论(0) 推荐(0) 编辑

摘要: Writing syslog messages to MySQL Written by Rainer Gerhards (2008-02-28) Abstract In this paper, I describe how to write syslog messages to a MySQL database. Having syslog messages in a database is often handy, especially when you intend to set up a front-end for viewing them. This paper describes a 阅读全文
posted @ 2010-12-30 12:48 He,YuanHui 阅读(463) 评论(0) 推荐(0) 编辑

摘要: Multiple Rulesets in rsyslog Starting with version 4.5.0 and 5.1.1, rsyslog supports multiple rulesets within a single configuration. This is especially useful for routing the recpetion of remote messages to a set of specific rules. Note that the input module must support binding to non-standard rul 阅读全文
posted @ 2010-12-30 12:47 He,YuanHui 阅读(583) 评论(0) 推荐(0) 编辑

摘要: 一 printf 和fprintf 的关系 1 printf() #include stdio.h int printf( const char *format, ... ); printf()函数根据format(格式)给出的格式打印输出到STDOUT(标准输出)和其它参数中.对于输出格式,有 %c 字符 %d 带符号整数 %i 带符号整数 %e 科学计数法, 使用小写"e" %E 科学计数法, 使用大写"E" %f 浮点数 %g 使用%e或%f中较短的一个 %G 使用%E或%f中较短的一个 %o 八进制 %s 一串字符 //后面对应的参数为字符串指针%u 无符号整数 %x 无符号十六进 阅读全文
posted @ 2010-12-30 10:55 He,YuanHui 阅读(463) 评论(0) 推荐(0) 编辑


Add to Google