【问题标题】:nagios/icinga logwarn pluginnagios/icinga 日志警告插件
【发布时间】:2014-06-02 10:44:59
【问题描述】:

我正在使用 Icinga 和 logworn 在 tomcat 日志中查找“错误”。问题是当它发现错误时,它会将其标记为警告而不是错误。 我关注了这个tutorial。我收到这条消息:Log errors: 13:31:47,092 ERROR [LoggingAspect] Unhandled exception caught: com.xxx.filter.AuthenticationProvider authenticat 我可以更改它以返回错误吗?

【问题讨论】:

    标签: plugins nagios error-logging


    【解决方案1】:

    如果有匹配的日志错误,插件会向 Nagios 返回 WARNING。如果您希望它返回 ERROR,只需编辑脚本的最后一行。 (更改为 STATE_CRITICAL='2')

    【讨论】:

      【解决方案2】:

      我推荐 labs.consol.de/nagios/check_logfiles/ check_logfiles --criticalpattern "ERROR" --logfile .../tomcat.log

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-02-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-10-07
        • 1970-01-01
        相关资源
        最近更新 更多