Page 1 of 1

VMWare Wizard template bug

Posted: Tue Mar 06, 2012 4:16 pm
by kevev
The Template seems to have a bug in vmware.inc.php

The *.txt files created by the wizard places username and password all on one line. I have made a change that fixes this.

$username=grab_array_var($inargs,'username','');

change to:

$username=grab_array_var($inargs,'username','');
$username=($username."\n");

I am no php coder, so I could not figure out the correct string for newline input from an fputs. So what I did was just re-declare the $username variable with a newline. :D

CentOS 5.7 x86 Nagios XI 2011R1.9

Re: VMWare Wizard template bug

Posted: Tue Mar 06, 2012 4:30 pm
by lmiltchev
I thought this was fixed... We will look into it. Thanks for the feedback!