Skip to content

Multi-line Error Messages get Cut Off #59

@lolocho

Description

@lolocho

When an error message is "short enough" to be found by check_puppet_agent but is also multi-lines long, the script spits out the multi-lines which nagios cuts off.

Output: CRITICAL: Last run had 1 or more errors. Check the logs. FIRST_ERROR ('change from purged to present failed: Execution of ''/bin/yum -d 0
-e 0 -y list '' returned 1: Error: No matching Packages
to list')

Expected: CRITICAL: Last run had 1 or more errors. Check the logs. FIRST_ERROR ('change from purged to present failed: Execution of ''/bin/yum -d 0 -e 0 -y list '' returned 1: Error: No matching Packages to list')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions