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.
nagios check_esx
Re: nagios check_esx
Can you post the full service check and command definition? This error is usually due to a missing required field in the check.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: nagios check_esx
service definition:
command definition:
Thanks for answering my question:)
Code: Select all
define service {
use service
hostgroup_name ESXi Hypervisors
service_description VMware Runtime Issues
check_command check_esx_host_runtime_issues
use generic-service
}
Code: Select all
define command{
command_name check_esx_host_runtime_issues
command_line /usr/bin/perl $USER1$/check_esx -H $HOSTADDRESS$ -u nagiosusr -p ********* -l runtime -s issues
}
- Attachments
-
check_esx.txt- the full check
- (85.28 KiB) Downloaded 343 times
Last edited by sreinhardt on Thu Dec 19, 2013 3:36 pm, edited 1 time in total.
Reason: removed password
Reason: removed password
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nagios check_esx
Have you tried this with check_esx3? It is more up to date:
http://exchange.nagios.org/directory/Pl ... st/details
http://exchange.nagios.org/directory/Pl ... st/details