Export to GitHub

nagios-riverbedstatus - issue #2

Error when defined peers. Variable not initialized


Posted on Jun 13, 2013 by Helpful Elephant

What steps will reproduce the problem? 1. execute check script with -p argument

What is the expected output? What do you see instead? Expected Output : OK: Riverbed CX555 (CX555H) status: Healthy, peers peer1, peer2 connected|RIVERBED:HEALTH=Healthy;OUTLAN=2696696710;OUTWAN=2099058073;INLAN=293975924;INWAN=1579474565;

Real Output: Use of uninitialized value in hash element at ./check_riverbed_status-0.0.1.pl line 165. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222. OK: Riverbed CX555 (CX555H) status: Healthy, peers peer1, peer2 connected|RIVERBED:HEALTH=Healthy;OUTLAN=2697105225;OUTWAN=2099313921;INLAN=294778550;INWAN=1579881661;

What version of the product are you using? On what operating system? I'm using version 0.0.1 on Centreon Enterprise Server (CentOS 5).

Please provide any additional information below. This is the output with use diagnostics;

Use of uninitialized value in hash element at ./check_riverbed_status-0.0.1.pl line 165 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables.

To help you figure out what was undefined, perl tells you what operation
you used the undefined value in.  Note, however, that perl optimizes your
program and the operation displayed in the warning may not necessarily
appear literally in your program.  For example, "that $foo" is
usually optimized into "that " . $foo, and the warning will refer to
the concatenation (.) operator, even though there is no . in your
program.

Use of uninitialized value in concatenation (.) or string at ./check_riverbed_status-0.0.1.pl line 222 (#1)

Status: New

Labels:
Type-Defect Priority-Medium