check_palo alto是palo alto下一代防火墙的nagios/icinga插件。它是用python编写的,基于pa rest api。
check_paloalto的Python项目详细描述
nagios_check_palo alto是palo alto下一代防火墙的nagios/icinga插件。 它是用Python编写的,基于PA REST API
测试时间:
- PA-500 V6.0.1-V6.0.9
- PA-3050 v6.0.9-7.1.9
快速启动
请确保您的计算机上安装了python dev和libxslt1 dev
要安装nagios,请检查paloalto:
$ pip install check_paloalto --upgrade
或使用:
$ pip3 install check_paloalto --upgrade
插件需要一个令牌才能从pa-rest-api获取信息。有关详细信息,请参见以下链接: http://nagios-check-paloalto.readthedocs.org/en/latest/configuration.html#token
用法
命令行用法:
usage: check_paloalto [-h] -H HOST -T TOKEN [-v] [-t TIMEOUT] [--reset] [--version] {diskspace,certificates,load,useragent,environmental,sessinfo,thermal,throughput} ... positional arguments: {diskspace,certificates,load,useragent,environmental,sessinfo,thermal,throughput} diskspace check used diskspace. certificates check the certificate store for expiring certificates: Outputs is a warning, if a certificate is in range. load check the CPU load. useragent check for running useragents. environmental check if an alarm is found. sessinfo check important session parameters. thermal check the temperature. throughput check the throughput. optional arguments: -h, --help show this help message and exit Connection: -H HOST, --host HOST PaloAlto Server Hostname -T TOKEN, --token TOKEN Generated Token for REST-API access Debug: -v, --verbose increase output verbosity (use up to 3 times) -t TIMEOUT, --timeout TIMEOUT abort check execution after so many seconds (use 0 for no timeout) --reset Deletes the cookie file for the throughput check. Info: --version show program's version number and exit
历史
0.3.2(2017-16-05)
- 修正问题8:在多个相同配置的PA上测量吞吐量失败
0.3.1(2017-10-03)
- 改进:升级PA时不再需要重置内部cookie。
- 已重命名吞吐量命令的性能数据标签
- 删除吞吐量命令的度量单位(UOM)
0.3(2017-27-02)
- 增加了对Python3.5的支持
- 小代码改进
- 根据Nagios官方文档更改了计量单位(UOM)(感谢IOS77)
0.1.6(2016-06-05)
- 添加了脚本版本开关
- 改进了错误处理
- 更新的文档
- 升级的依赖项
0.1.5(2016-29-04)
- 修复了argparse错误
0.1.4(2016-29-04)
- 添加了监视用户代理状态的功能
- 添加了脚本超时开关
- 改进了错误处理
- sessionfo命令的改进功能
0.1.3(2015-14-09)
- 对支持旧安装的不安全请求禁用警告: https://urllib3.readthedocs.org/en/latest/security.html
0.1.2(2015-14-09)
- 修正了解析python3中参数的错误。
- 对不安全请求启用的警告: https://urllib3.readthedocs.org/en/latest/security.html
- 更改了setup.cfg的格式
- 更新的文档。
0.1.1(2015-10-09)
- 支持Python2.7、3.3、3.4。
- 支持pypi。
- 包括测试。
- 提高了性能。
- 改进了输出和调试。