No, this is definitely not normal output.

What version of the VCL are you using? And how are you invoking the script?

Aaron

On Apr 19, 2013, at 4:32 PM, Gary Trail <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Thanks Aaron -
> 
> I've been meaning to get health_check.pl running but each time I try
> I get the following warnings and after 10 minutes or so, no output so
> I deferred until I had more time to delve into the script.
> 
> Is this output normal?
> 
> Thanks
> Gary
> - ---------------
> Prototype mismatch: sub VCL::health_check::help: none vs () at
>        ./health_check.pl line 62 (#1)
>    (S prototype) The subroutine being declared or defined had
> previously been
>    declared or defined with a different function prototype.
> 
> Prototype mismatch: sub VCL::health_check::help: none vs () at
>        ./health_check.pl line 163 (#1)
> 
> Subroutine help redefined at ./health_check.pl line 152 (#2)
>    (W redefine) You redefined a subroutine.  To suppress this
> warning, say
> 
>        {
>        no warnings 'redefine';
>        eval "sub name { ... }";
>        }
> 
> Use of uninitialized value in concatenation (.) or string at
>        /usr/local/vcl/bin/../lib/VCL/utils.pm line 7651 (#3)
>    (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 string eq at
> 
> /usr/local/vcl/bin/../lib/VCL/Module/Provisioning/VMware/VMware.pm
> line 308 (#3)
> Use of uninitialized value in pattern match (m//) at
>        /usr/local/vcl/bin/../lib/VCL/healthcheck.pm line 480 (#3)
> Use of uninitialized value in concatenation (.) or string at
>        /usr/local/vcl/bin/../lib/VCL/healthcheck.pm line 494 (#3)
> Use of uninitialized value in pattern match (m//) at
>        /usr/local/vcl/bin/../lib/VCL/healthcheck.pm line 283 (#3)
> Use of uninitialized value in concatenation (.) or string at
>        /usr/local/vcl/bin/../lib/VCL/healthcheck.pm line 343 (#3)
> - ----------------
> 
> 
> Aaron Coburn wrote the following on 4/19/2013 11:41 AM:
>> Hi, Folks,
>> 
>> Many of you probably already use the 'health_check.pl' script to 
>> monitor your VCL system. If you are not familiar with it, it
>> resides in
>> 
>> $VCL_HOME/bin/health_check.pl
>> 
>> It can be run directly from the command line or set to run on a
>> cron job. It verifies that each computer (for a given management
>> node) is operating properly. It also can be used to power down
>> compute nodes (though I have never used it for this purpose).
>> 
>> The script is really solid, but it can take a long time to
>> complete, especially if your management nodes each control a large
>> number of machines. In my experience, it typically takes about 10
>> minutes for every 50 computers. This isn't necessarily a problem,
>> but if I want to just get a quick snapshot of the overall system
>> health, it is sometimes too long to wait.
>> 
>> So, I wrote a node.js module [1] that runs *significantly* faster
>> -- that is, it checks an entire system in only a few seconds. It is
>> also a comparatively much lighter load on the management node (no 
>> externally spawned processes, only a single database query, etc).
>> 
>> The module allows you to write a complete monitoring script like
>> so:
>> 
>> ============================== var health = 
>> require('vcl-utils').Health;
>> 
>> health.on('error', function(err) { console.log('ERROR :: ' + err);
>> });
>> 
>> health.on('info', function(msg) { console.log('INFO :: ' + msg);
>> });
>> 
>> health.check(); ==============================
>> 
>> Let me know if you have any questions or if you have ideas for 
>> improving this.
>> 
>> Best regards,
>> 
>> Aaron
>> 
>> 
>> [1] https://github.com/acoburn/vcl-utils
>> 
>> 
>> 
>> -- Aaron Coburn Systems Administrator and Programmer Academic 
>> Technology Services, Amherst College 
>> [email protected]<mailto:[email protected]>
>> 
>> 
>> 
>> 
> 
> - -- 
> Gary Trail
> Director of Network Services
> Rensselaer Hartford Graduate Center
> 860-548-7869
> [email protected]
> - ----------------------
> Go Green, Keep it on the Screen
> Please Consider the Environment
> Before Printing this Message.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> 
> iQEcBAEBAgAGBQJRcanuAAoJENG9onuHOfZFGUMIAMef6RPOdoWwsUdbPU3PSfK0
> N99XtHG3qNJPssZzDew2q2rZeS+oDReFvJIwzuX/Tc/gsYik9aC3LHepiZunouKY
> XFfi1246BXi2yNhY2XuuvtM+gI1w1QRGwvQ31jXKSUOq7KsLHVmYmxIvhh4wOPcz
> hjXr9P/EhbqWXns3s+rPBjpCRn9fa4C+rA1c0XDwFDaUzOn3+cjXV6SiKTOpDMR4
> NxkhJ0KkYu6R9+bEL2g7j+VL0oSiYSmDSAM+Mc6WG3TSFq9+rmwK0YD6cbkokQRE
> HvRqZ5E5bAqTx169a5OU26VldcJBvHa7GlBVem5zI7T1OCjjJV4+EQI9nG+jidA=
> =0nre
> -----END PGP SIGNATURE-----

Reply via email to