Unknown states in Nagios when too many alarms fired

Bug #1517917 reported by Simon Pasquier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Fix Released
High
Simon Pasquier

Bug Description

Service states may be UNKNOWN in Nagios when the check's description is getting too long. The length of the data posted to the Nagios CGI is limited to 1024 bytes [0] so we need to account for that in the Nagios encoder.

[0] http://tracker.nagios.org/view.php?id=564

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-lma-collector (master)

Fix proposed to branch: master
Review: https://review.openstack.org/247663

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-lma-collector (master)

Reviewed: https://review.openstack.org/247663
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-lma-collector/commit/?id=ca031a41aab0d0df092a327058a94df965543999
Submitter: Jenkins
Branch: master

commit ca031a41aab0d0df092a327058a94df965543999
Author: Simon Pasquier <email address hidden>
Date: Thu Nov 19 16:55:25 2015 +0100

    Truncate Nagios plugin output to 1024 bytes max

    It appears that Nagios cannot ingest output which is larger than 1024
    bytes so this change makes sure that the Nagios encoder complies with
    this requirement.

    Change-Id: I22c7186f0dc6edabe8c3372a8c06197b276a9d4d
    Closes-Bug: #1517917

Changed in lma-toolchain:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-lma-collector (stable/0.8)

Fix proposed to branch: stable/0.8
Review: https://review.openstack.org/248044

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-lma-collector (stable/0.8)

Reviewed: https://review.openstack.org/248044
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-lma-collector/commit/?id=a53053b5703f7c0b597dbaf27f5647e4b50c0491
Submitter: Jenkins
Branch: stable/0.8

commit a53053b5703f7c0b597dbaf27f5647e4b50c0491
Author: Simon Pasquier <email address hidden>
Date: Thu Nov 19 16:55:25 2015 +0100

    Truncate Nagios plugin output to 1024 bytes max

    It appears that Nagios cannot ingest output which is larger than 1024
    bytes so this change makes sure that the Nagios encoder complies with
    this requirement.

    Change-Id: I22c7186f0dc6edabe8c3372a8c06197b276a9d4d
    Closes-Bug: #1517917
    (cherry picked from commit ca031a41aab0d0df092a327058a94df965543999)

Changed in lma-toolchain:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-plugin-lma-collector (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/315930

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-plugin-lma-collector (master)

Reviewed: https://review.openstack.org/315930
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-lma-collector/commit/?id=b09ed976bd4f4d210c75f0201084ce57b0ae788f
Submitter: Jenkins
Branch: master

commit b09ed976bd4f4d210c75f0201084ce57b0ae788f
Author: Swann Croiset <email address hidden>
Date: Fri May 13 09:30:36 2016 +0200

    Increase the limit size enforced by the Nagios encoder

    Related to blueprint scalable-nagios-api
    Related-Bug: #1517917

    Change-Id: Ibeeb8de9847d80f0abab9cd3ccbb986963a4f735

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.