Skip to content

Plugin(network::paloalto::ssh) - Mode(ipsec): Fail parsing XML with PAN-OS 12.x #5955

Description

@tizianosartori

Bug report

Quick description

The centreon_paloalto_ssh.pl plugin fails to parse valid XML output when monitoring Palo Alto firewalls running PAN‑OS 12.x, due to additional security messages printed in the SSH CLI stdout.

How to reproduce

  • Environment:

    Linux centreon 5.15.x #1 SMP x86_64 GNU/Linux
    Rocky Linux release 9.x
    
  • Version of the plugin:
    centreon-plugins package including centreon_paloalto_ssh.pl
    (issue reproducible with current packaged version and recent repository clones).

  • Information about the monitored resource:
    Palo Alto Networks firewall running PAN‑OS 12.x
    Monitoring performed via SSH backend (libssh).

  • Command line:

    /usr/lib/centreon/plugins/centreon_paloalto_ssh.pl \
      --mode ipsec \
      --hostname 192.168.1.1 \
      --ssh-username=monitoring \
      --ssh-password=****** \
      --ssh-backend=libssh \
      --filter-name tunnel05 \
      --critical-ipsec-total 1:

Expected result

The plugin should correctly parse the XML response returned by the Palo Alto firewall and report the IPsec tunnel status (OK/WARNING/CRITICAL) as expected.

Actual result

The plugin exits with:

UNKNOWN: Cannot find xml response

even though the firewall returns a valid XML response.

With PAN‑OS 12.x, the SSH CLI output includes additional security messages such as:

Number of failed attempts since last successful login: 0

These messages are printed before or after the <response>...</response> XML block, causing the plugin to fail XML detection and parsing.
``

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions