Monitoring FreeNAS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
glenlopez16
Posts: 14
Joined: Fri Aug 16, 2013 9:28 am

Monitoring FreeNAS

Post by glenlopez16 »

Hi,

Anyone, can you give me a solution on this error:


ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065

Thanks.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring FreeNAS

Post by abrist »

Are you monitoring a volume that does not exist? The line in question references freespace. We have seen this error before and it is usually due to the volume not existing.

Code: Select all

  my $value2 = simplify_number(convert_number($store->info->freeSpace) / convert_number($store->summary->capacity) * 100);
Also, you mention that this is a freeNAS device. check_esx3.pl is a script for checking vmware hosts/guests, not freeNAS. Are you sure you are monitoring a freeNAS device? If so, what is your reasoning for using check_esx3.pl?
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.
Locked