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.
Virtual Machines error messages
Re: Virtual Machines error messages
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.
"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: Virtual Machines error messages
I didn't do any changes
Re: Virtual Machines error messages
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.
$VERSION = '0.5.0';
regards,
-Yancy
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" regards,
-Yancy
Re: Virtual Machines error messages
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
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
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?
Can you show the plugin command for this service?
Re: Virtual Machines error messages
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 ~]#
[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
In your more recent thread you say that all your hosts are working fine except the two listed there, is this issue here resolved?
Re: Virtual Machines error messages
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 ~]#
[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
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.
Thread: http://support.nagios.com/forum/viewtop ... 71#p100171
We will continue to work on this there.