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
https://travis-ci.org/ralph-hm/nagios_check_paloalto.svg?branch=masterhttps://coveralls.io/repos/github/ralph-hm/nagios_check_paloalto/badge.svg?branch=masterhttps://badge.fury.io/py/check_paloalto.svg

快速启动

请确保您的计算机上安装了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)

0.1.2(2015-14-09)

0.1.1(2015-10-09)

  • 支持Python2.7、3.3、3.4。
  • 支持pypi。
  • 包括测试。
  • 提高了性能。
  • 改进了输出和调试。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何使用java向dropup html/css添加项目   如何从java中的向量向量打印   Java Maven库项目模板   java使用atmosphere api还是直接使用grizzly?   java JComponent仅部分显示   如何将动态值传递给自定义注释,以从Java数据进行映射。性质   java破解已实现方法的返回类型的最佳方法?   java Netbeans在JFrame Gui布局中覆盖图像   spring java仅向登录用户显示注销按钮   java如何对com进行身份验证。谷歌。云bigquery。带有服务帐户的BigQuery`   java禁止空字符串参数和抛出RuntimeException以阻止方法继续的利弊   java分析项目中的所有JAR以获取版本和许可证信息   Java,数据库为什么要分配一个新对象,而我们可以直接将它放入数据库