check_netapp_ontap
check_netapp_ontap copied to clipboard
Another snapmirror uninitialized value error (similar to closed issues but not quite)
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