Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Another snapmirror uninitialized value error (similar to closed issues but not quite) #105

@kfiresmith

Description

@kfiresmith

Issue Type

Bug report

Issue Detail
snapmirror_health check returns a false OK value after emitting a warning for each of the 10 relationships checked:

Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/check_netapp_ontap.pl line 1139.
OK - No problem found (10 checked)

I absolutely DO happen to have unhealthy relationships at the moment so the false negative is a bit worrisome.

For example from the trace:

                                                                                            'name' => 'last-transfer-error',
                                                                                            'children' => [],
                                                                                            'content' => 'Transfer for volume "vsphere_redact_01" failed. Reason: Transfer failed. (Volume access error (No space left on device)).
Execute "snapmirror show -destination-vserver vsphere-redact-dr -fields last-transfer-error,unhealthy-reason -expand" to check if the constituent volumes have encountered errors.',
                                                                                            'attrkeys' => [],
                                                                                            'attrvals' => []
                                                                                          }, 'NaElement' ),
  • check_netapp_ontap version: Latest

  • NetApp Ontap version: 9.13.1

  • Monitoring solution: Nagios Core 4x

Expected Behavior
Check should result in critical due to unhealthy snapmirror relationships

Actual Behavior
Perl warnings + false report of OK

How to reproduce Behavior
Monitor an unhealthy snapmirror relationship

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions