Cheshire Cat Computing

Software support and information
It is currently Sun May 19, 2013 11:35 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 175 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 18  Next
Author Message
PostPosted: Thu Mar 05, 2009 1:40 am 
Offline
User

Joined: Sat Jan 31, 2009 12:33 am
Posts: 6
Hello Steve,
I just tried version 0.9. All works but I do get the "No Fairness.." msg.
I deleted it from the source code, and now it is better.
Also about the disk i was able to get the instance name by doing a --verbose
<val xsi:type="DatastoreSummary">
<datastore type="Datastore">datastore-42</datastore>
<name>CX300-H-1</name>
<url>sanfs://vmfs_uuid:468d22c0-18e2777d-338f-001aa01ca921/</url>
<capacity>536602476544</capacity>
<freeSpace>222202691584</freeSpace>
<accessible>true</accessible>
<multipleHostAccess>true</multipleHostAccess>
<type>VMFS</type>

Then I used:
./check_vm.pl --config=configvm.txt --report=disks --instance="CX300-H-0"
All filesystems within parameters|free=32489078784;;;0; total=557540442112;;;0;
I was wondering if the Used bytes exists ? and the Crit/Warn could be set?

Saddly still from my Centreon/Nagios interface I get no output.
/usr/local/nagios/libexec/check_vm.pl --version
VI Perl Toolkit version: 1.6
Script 'check_vm.pl' version: 1.0
I know it localy it works, even under user nagios. Any ideas what it could be? I have many other perl scripts that works fine.

Anyways, thx very much for the great work!


Top
 Profile  
 
PostPosted: Thu Mar 05, 2009 12:49 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
No Fairness - this is a problem with the VI API, hopefully it will be fixed in v3.5.4 or later. Just ignore the problem for now.

Disk used bytes - these exist of course, but are not (yet) reported in the perfinfo string. I can add this. You can set thresholds ion the check_vmware command line with --warn and --crit, see the help text.

What happens when you run it with --debug on the Nagios server? Do you get any output at all?

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Mon May 25, 2009 9:18 pm 
Offline
User

Joined: Thu Oct 02, 2008 8:00 pm
Posts: 5
Location: Hamburg (Germany)
Hi Steve,

just for your information. We migrated to vSphere 4 during this weekend. Your Plugin is still working! :) It was not necessary to do any changes to the API and the Plugin Config.

Regards from Germany.

Dennis


Top
 Profile  
 
PostPosted: Tue May 26, 2009 8:34 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Thanks for the info! We're not getting vSphere4 for another few weeks so its good to have the advance info. Im hoping the 'No Fairness' problem and performance speed issues are fixed in the vS4 API as well...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Tue May 26, 2009 9:15 pm 
Offline
User

Joined: Thu Oct 02, 2008 8:00 pm
Posts: 5
Location: Hamburg (Germany)
Hi Steve,

i didn't upgraded the Perl API Toolkit yet. It's still Version 1.6 which seems to be the latest.

attached you find a screenshot of your esx nagios checks.

Image

So the "No Fairness" problem is still there.

Regards

Dennis


Top
 Profile  
 
PostPosted: Wed May 27, 2009 2:19 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Just to be sure, you won't ever get Fairness data unless you have a cluster configured with HA and DRS enabled (this is what the fairness is used for). In the VC client interface you should see fairness charts showing the loading split between the members of the cluster in this case.

The next version of the agent should probably not display this warning since it causes so many worries and is not really a problem...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Fri May 29, 2009 1:55 am 
Offline
User

Joined: Fri May 29, 2009 1:46 am
Posts: 2
Hi,

I tried out check_vmware today. All I can check on an ESX 3.5 Host is the whole error status and the datastore of the ESX Server. If I want to check for example CPU, RAM, NET from a guest system, I only get the following result:

Code:
 ./check_vmware.pl --mode=nagios --server=IPADDRESS --username=USER --password=PASSWORD --guest=GEUSTNAME --debug --report=disk
Starting.
Connecting
Connected
Server Time : 2009-05-28T12:50:18.451543Z
Trying to locate IPADDRESS
Now trying as hostname...
Now trying as IP address...
Guest is poweredOn
Report type requested is [disk]
Base is ha-folder-root
Running disk report
Identifying datastores...
N=ha-folder-root
Identifying children for ha-folder-root
 N=ha-datacenter
Extracting disks
Illegal division by zero at ./check_vmware.pl line 998.

End Disconnect


The user I use is a root user. I don`t want to install NSClient++ on all guests so it would be great if it is possible just to check the ESX 3.5 Servers.

THX, hambuergaer.


Top
 Profile  
 
PostPosted: Thu Jun 04, 2009 12:06 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Which version are you using? The /0 error appeared in the previous version and was killed off (I think). I may not have properly updated all the online repositories due to having to leave work at short notice for my father's funeral :(( . Will be back in NZ in a week and hopefully can catch up with things then. Can you confirm you have v0.9?

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Fri Jun 05, 2009 2:22 am 
Offline
User

Joined: Fri May 29, 2009 1:46 am
Posts: 2
Yes, I`m using V09.b


Top
 Profile  
 
PostPosted: Thu Jun 25, 2009 10:26 pm 
Offline
User

Joined: Thu Oct 02, 2008 8:00 pm
Posts: 5
Location: Hamburg (Germany)
Hi Steve,

sorry for my late reply. Yes, we have a HA and DRS Cluster. :)

Today i found some time to play with the vSphere Management Assistante Appliance: http://www.vmware.com/appliances/directory/178973

I copied your plugin to the Appliance and started testing.....

First I tested checking the cpu and memory data of a single esx host over the vCenter Server.
Code:
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=memory --host=esx1.votg.global
Memory usage at 12%<BR>(No MEM fairness data)|mem=12%;80;90;0;100

[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=cpu --host=esx1.votg.global
CPU usage at 20.42%<BR>(No CPU fairness data)|cpu=20.42%;80;90;0;100


At the second test i did the same query for our HA & DRS Cluster over the vCenter Server.
Code:
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=memory --cluster="HA Cluster #1"
Memory usage at 47.65%<BR>(No MEM fairness data)|mem=47.65%;80;90;0;100

[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=cpu --cluster="HA Cluster #1"
CPU usage at 32.01%<BR>(No CPU fairness data)|cpu=32.0166666666667%;80;90;0;100


We also have a single esx 4.0 host here, which is not in a cluster. I ran these checks also to this host.
Code:
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_esx0.cfg --mode=nagios --report=memory --host=esx0.votg.global
Memory usage at 34.36%<BR>(No MEM fairness data)|mem=34.36%;80;90;0;100

[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_esx0.cfg --mode=nagios --report=cpu --host=esx0.votg.global
CPU usage at 2.78%<BR>(No CPU fairness data)|cpu=2.78%;80;90;0;100


The No Fairness data problem is still there and VMWare didn't fixed it in vSphere 4. :( So we have to wait again....

Best wished from Germany

Dennis


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 175 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 18  Next

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group