Virtual Machines error messages

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Virtual Machines error messages

Post by glenl »

What does this mean?
Error in DataStore usage for VMHost service:"ESX3 Critical-Illegal Division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065.

Line 1065 states the following message. "my $value2 = simplify_number(convert_number($store->info->freeSpace) / convert_number($store->summary->capacity) * 100);"
The service was working fine for the last 3months but yesterday, it is now giving this error

another question about the monitored Virtual Machine.
Error message for VMWare Host Current CPU Usage and VMWare Host Current Memory Usage services: "Return Code of 255 is out of bounds".
Thanks.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Virtual Machines error messages

Post by abrist »

Have you made any changes to the esx server, specifically DataStore, mount points, or disk related?
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.
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Re: Virtual Machines error messages

Post by glenl »

I didn't do any changes
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Virtual Machines error messages

Post by yancy »

glenl,

We had a similar post and it turned out a datastore had been disconnected. However, even so, the error should be caught before giving a division by zero message.

He was using on older verision of check_esx3 which may have been corrected in newer versions.

Can you check what version your using.

Code: Select all

 cat /usr/local/nagios/libexec/check_esx3.pl | grep "VERSION" 
$VERSION = '0.5.0';

regards,

-Yancy
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Virtual Machines error messages

Post by Rupender »

Hi,

I am getting same error from one of my Esxi Host in NagiosXI R1.0 server.

i run this command and found:
cat /usr/local/nagios/libexec/check_esx3.pl | grep "VERSION"

VERSION = '0.2.0';

Please help
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Virtual Machines error messages

Post by scottwilkerson »

Are you sure the datastore you are trying to get information on exists and is typed exactly correct?

Can you show the plugin command for this service?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Virtual Machines error messages

Post by Rupender »

Here you can see what is the different output from two Esxi Host:

[root@localhost ~]# /usr/local/nagios/libexec/check_esx3.pl -H 192.X.X.98 -f /usr/local/nagiosxi/etc/components/vmware/192_X_X_98_auth.txt -l VMFS
ESX3 OK - storages : PRT_DS_2=124816.00 MB (6.10%), RADSHARE=89640.00 MB (5.84%), mw-riverside-datastore-1=866480.00 MB (45.91%), prt-rapid-1=69817.00 MB (3.41%), hussman2=1985246.00 MB (37.87%), mw-ds1=2439960.00 MB (23.27%), prt-rapid-2=321096.00 MB (15.68%), prt-licg-1=135948.00 MB (6.64%), prt-cdc1=1351744.00 MB (66.01%), nj-ds1=2377336.00 MB (37.79%), mv-data-recovery=636976.00 MB (31.11%), prt-cdc-2=1534480.00 MB (74.94%), prt-sf-1=191648.00 MB (18.72%), gc-ds1=734132.00 MB (35.01%), hussman=1373304.00 MB (67.06%), PRT_DS_3=263344.00 MB (12.88%), p2t-01=236952.00 MB (12.18%), TEMPSTORAGE=2975801.00 MB (56.76%), prt-principal-datastore-1=168.00 MB (0.02%), gc-ds2=1782893.00 MB (34.01%), prt-exchange-store1=2097258.00 MB (40.00%), prt-1059=342591.00 MB (6.53%), prt-sf-2=1011608.00 MB (49.40%), gc-ds3=844361.00 MB (16.11%), NU-hc3=1432872.00 MB (69.97%), PRT_DS_1=605584.00 MB (29.62%), prt-mvr-datastore-1=3069512.00 MB (58.55%), prt-cdc3=27528.00 MB (1.34%) | PRT_DS_2=124816.00MB;; RADSHARE=89640.00MB;; mw-riverside-datastore-1=866480.00MB;; prt-rapid-1=69817.00MB;; hussman2=1985246.00MB;; mw-ds1=2439960.00MB;; prt-rapid-2=321096.00MB;; prt-licg-1=135948.00MB;; prt-cdc1=1351744.00MB;; nj-ds1=2377336.00MB;; mv-data-recovery=636976.00MB;; prt-cdc-2=1534480.00MB;; prt-sf-1=191648.00MB;; gc-ds1=734132.00MB;; hussman=1373304.00MB;; PRT_DS_3=263344.00MB;; p2t-01=236952.00MB;; TEMPSTORAGE=2975801.00MB;; prt-principal-datastore-1=168.00MB;; gc-ds2=1782893.00MB;; prt-exchange-store1=2097258.00MB;; prt-1059=342591.00MB;; prt-sf-2=1011608.00MB;; gc-ds3=844361.00MB;; NU-hc3=1432872.00MB;; PRT_DS_1=605584.00MB;; prt-mvr-datastore-1=3069512.00MB;; prt-cdc3=27528.00MB;;

[root@localhost ~]# /usr/local/nagios/libexec/check_esx3.pl -H 192.X.X.96 -f /usr/local/nagiosxi/etc/components/vmware/192_X_X_96_auth.txt -l VMFS
ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065. | RADSHARE=89648.00MB;; TEMPSTORAGE=864534.00MB;; prt-sf-1=191672.00MB;; p2t-01=240984.00MB;; hussman=1373328.00MB;; hussman2=1965774.00MB;; prt-rapid-2=321160.00MB;; PRT_DS_3=263408.00MB;; prt-1059=342586.00MB;; mv-data-recovery=637024.00MB;; prt-cdc-2=1534504.00MB;; prt-mvr-datastore-1=949776.00MB;; PRT_DS_1=605560.00MB;; NU-hc3=1435704.00MB;; prt-sf-2=1011672.00MB;; gc-ds2=1782963.00MB;; prt-principal-datastore-1=168.00MB;; gc-ds1=734154.00MB;; datastore1=121386.00MB;; prt-cdc1=1351848.00MB;; mw-riverside-datastore-1=866556.00MB;; mw-ds1=2440009.00MB;; prt-rapid-1=69809.00MB;; prt-licg-1=136028.00MB;; nj-ds1=2377443.00MB;; prt-exchange-store1=2097281.00MB;; PRT_DS_2=124848.00MB;; gc-ds3=844414.00MB;; prt-cdc3=27528.00MB;;
[root@localhost ~]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Virtual Machines error messages

Post by slansing »

In your more recent thread you say that all your hosts are working fine except the two listed there, is this issue here resolved?
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Virtual Machines error messages

Post by Rupender »

No, issue still exist.. find below output as you guys required.


[root@localhost ~]# /usr/local/nagios/libexec/check_esx3.pl -H 192.X.X.96 -f /usr/local/nagiosxi/etc/components/vmware/192_X_X_96_auth.txt -l VMFS
ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065. | RADSHARE=89648.00MB;; TEMPSTORAGE=864534.00MB;; prt-sf-1=191672.00MB;; p2t-01=240984.00MB;; hussman=1373328.00MB;; hussman2=1965774.00MB;; prt-rapid-2=321160.00MB;; PRT_DS_3=263408.00MB;; prt-1059=342586.00MB;; mv-data-recovery=637024.00MB;; prt-cdc-2=1534504.00MB;; prt-mvr-datastore-1=949776.00MB;; PRT_DS_1=605560.00MB;; NU-hc3=1435704.00MB;; prt-sf-2=1011672.00MB;; gc-ds2=1782963.00MB;; prt-principal-datastore-1=168.00MB;; gc-ds1=734154.00MB;; datastore1=121386.00MB;; prt-cdc1=1351848.00MB;; mw-riverside-datastore-1=866556.00MB;; mw-ds1=2440009.00MB;; prt-rapid-1=69809.00MB;; prt-licg-1=136028.00MB;; nj-ds1=2377443.00MB;; prt-exchange-store1=2097281.00MB;; PRT_DS_2=124848.00MB;; gc-ds3=844414.00MB;; prt-cdc3=27528.00MB;;
[root@localhost ~]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Virtual Machines error messages

Post by slansing »

Closing this as your other thread shows the same issue...

Thread: http://support.nagios.com/forum/viewtop ... 71#p100171

We will continue to work on this there.
Locked