Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line with no vSphere version 5.5.0 #37

Open
pchamo opened this issue Jul 25, 2017 · 1 comment
Open

Line with no vSphere version 5.5.0 #37

pchamo opened this issue Jul 25, 2017 · 1 comment

Comments

@pchamo
Copy link

pchamo commented Jul 25, 2017

I found a line with no vSphere version 5.5.0. I mean, these are lines 817 to 821 of the vmwarevSphereHealthCheck.pl version 6.0.0:

if($aversion eq '4.1.0' || ($aversion eq '5.0.0' || $aversion eq '5.1.0')) {
## UPTIME ##
$vmstateString .= "".($vm->summary->quickStats->uptimeSeconds ? &getUptime($vm->summary->quickStats->uptimeSeconds) : "N/A")."";
}

I wonder why the version number 5.5.0 is not included. And also, some lines don't include the versio number 6.0.0. Those lines are identified running this command:

[user]$ grep 5.1.0 vmwarevSphereHealthCheck.pl -n|grep -v 6.0

Is all of that ok? Thank you.

@pchamo
Copy link
Author

pchamo commented Jul 25, 2017

The whole section is (lines 802 to 821):

                            ######################
                            # VM STATE
                            ######################
                            if($VM_STATE eq "yes") {
                                    $vmstateString .= "<tr>";

                                    ## ESX/ESXi host ##
                                    $vmstateString .= "<td>".$host_name."</td>";

                                    ## DISPLAY NAME ##
                                    $vmstateString .= "<td>".$vm->name."</td>";

                                    ## BOOT TIME ##
                                    $vmstateString .= "<td>".($vm->runtime->bootTime ? $vm->runtime->bootTime : "N/A")."</td>";

                                    if($aversion eq '4.1.0' || ($aversion eq '5.0.0' || $aversion eq '5.1.0')) {
                                            ## UPTIME ##
                                            $vmstateString .= "<td>".($vm->summary->quickStats->uptimeSeconds ? &getUptime($vm->summary->quickStats->uptimeSeconds) : "N/A")."</td>";
                                    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant