nagios check_esx
Posted: Wed Dec 18, 2013 11:46 am
Hi,
I have a problem with "VMware Runtime Issues" in check_esx.
Nagios shows that:
CHECK_ESX CRITICAL - Can't call method "name" on an undefined value at /usr/local/nagios/libexec/check_esx line 1292.
So I checked this line and there is a piece of code:
elsif (uc($subcommand) eq "ISSUES")
{
my $issues = $host_view->configIssue;
if (defined($issues))
{
$output = '';
foreach (@$issues)
{
/*line 1292*/ $output .= $_->vm->name . ": " . $_->fu$
}
}
else
{
$res = 'OK';
$output = 'No config issues';
}
}
thanks for any help.
I have a problem with "VMware Runtime Issues" in check_esx.
Nagios shows that:
CHECK_ESX CRITICAL - Can't call method "name" on an undefined value at /usr/local/nagios/libexec/check_esx line 1292.
So I checked this line and there is a piece of code:
elsif (uc($subcommand) eq "ISSUES")
{
my $issues = $host_view->configIssue;
if (defined($issues))
{
$output = '';
foreach (@$issues)
{
/*line 1292*/ $output .= $_->vm->name . ": " . $_->fu$
}
}
else
{
$res = 'OK';
$output = 'No config issues';
}
}
thanks for any help.