×

微信扫一扫,快捷登录!

Nagios plug-in development guidelines(1)

标签: 暂无标签
本帖最后由 monicazhang 于 2015-10-30 21:25 编辑


20151030   淡然


Table of Contents
1. Development platform requirements 开发平台要求

2. Plugin Output for Nagios Nagios插件输出
2.1. Print only one line of text 只输出一行文本
2.2. Verbose output 详细输出
2.3. Screen Output 屏幕输出
2.4. Plugin Return Codes plugin返回代码
2.5. Threshold and ranges 阀值和区间
2.6. Performance data 性能数据
2.7. Translations 翻译

3. System Commands and Auxiliary Files 系统命令和附录文件
3.1. Don't execute system commands without specifying their full path 不指定完整路径的情况下请不要执行系统命令
3.2. Use spopen() if external commands must be executed 使用spopen()执行外部命令
3.3. Don't make temp files unless absolutely required 如果不是绝对需要不要创建临时文件
3.4. Don't be tricked into following symlinks 不要被下面的符号连接欺骗
3.5. Validate all input 验证所有输入

4. Perl Plugins Perl插件

5. Runtime Timeouts 运行时超时
5.1. Use DEFAULT_SOCKET_TIMEOUT 使用DEFAULT_SOCKET_TIMEOUT
5.2. Add alarms to network plugins 添加报警到网络插件

6. Plugin Options 插件选项
6.1. Option Processing 选项处理
6.2. Plugins with more than one type of threshold, or with threshold ranges 有多个临界值或有临界值序列的插件

7. Test cases 测试用例
7.1. Test cases for plugins 插件测试用例
7.2. Testing the C library functions 测试C库函数

8. Coding guidelines 编码向导
8.1. C coding C编码
8.2. Crediting sources 认证源码
8.3. CVS comments CVS提交
8.4. Translations for developers 开发者翻译
8.5. Translations for translators 翻译人员翻译

9. Submission of new plugins and patches 提交新插件或补丁                                 nagios安装
9.1. Patches 补丁
9.2. Contributed plugins 分发插件
9.3. New plugins 新插件

List of Tables
1. Verbose output levels 详细输出级别
2. Plugin Return Codes 插件返回代码
3. Example ranges 系列实例
4. Command line examples 命令行实例


Preface
The purpose of this guidelines is to provide a reference for the plug-in developers and encourage the standarization of the different kind of plug-ins: C, shell, perl, python, etc.这个向导的目的是为插件开发者提供一个手册,并为不同类型插件(如:C, shell, perl, python等)提供一个标准。
Nagios Plug-in Development Guidelines Copyright (C) 2000-2009 (Nagios Plugins Team)
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
The plugins themselves are copyrighted by their respective authors.插件的版权归开发者个人。                    开源监控软件

Table of Contents

3.1. Don't execute system commands without specifying their full path                      nagios配置



6.2. Plugins with more than one type of threshold, or with threshold ranges                      监控软件



9.1. Patches

1. Development platform requirements
Nagios plugins are developed to the GNU standard, so any OS which is supported by GNU should run the plugins. While the requirements for compiling the Nagios plugins release are very basic, developing from the Git repository requires additional software to be installed. These are the minimum levels of software required: 下面是最基本软件环境要求:                               nagios实施
GNU make 3.79
GNU automake 1.9.2
GNU autoconf 2.59
GNU m4 1.4.2
GNU libtool 1.5
To compile from Git, after you have cloned the repository, run: 从Git编译,从库中复制了代码后,运行以下命令:
tools/setup
./configure                                    nagios培训
make
make install

待续: http://www.ITILxf.com/thread-53033-1-1.html
本帖关键字:Nagios





上一篇:各位大牛帮帮忙
下一篇:Nagios plug-in development guidelines(2)
monicazhang

写了 2297 篇文章,拥有财富 12859,被 21 人关注

您需要登录后才可以回帖 登录 | 立即注册
B Color Link Quote Code Smilies

成为第一个吐槽的人

返回顶部