[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing Software support and information 2011-07-27T15:20:20+13:00 http://www.steveshipway.org/forum/feed.php?f=28&t=4203 2011-07-27T15:20:20+13:00 2011-07-27T15:20:20+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=12164#p12164 <![CDATA[Re: Strange return using check_vmware.pl]]>
Load is not relevant to VMWare, it is a function of the underlying OS so you need to get it there. The Load average is the number of processes in the guest OS scheduled to run at an average time; this is not equivalent to CPU usage since processes can be in run state but not heavy users of CPU.

It is worth noting that CPU usage by guest is not equivalent to CPU usage as reported by the guest OS itself; and the guest OS will LIE about CPU and Memory usage as it gets tricked by the virtualisation layer.

For a guest, the API reports the CPU usage (how many MHz are used), the Ready time (how many cycles it wants to run, but cannot due to VM resources being unavailable), the Wait time (how many MHz it doesnt want and so are used elsewhere). What matters to you is the Ready Time (if >10% you have serious resource problems) and the Usage (if too high then consider adding a vCPU to the guest). Note that Wait time also includes time waiting for virtualised IO.

Statistics: Posted by stevesh — Wed Jul 27, 2011 3:20 pm


]]>
2011-07-27T15:01:38+13:00 2011-07-27T15:01:38+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=12163#p12163 <![CDATA[Re: Strange return using check_vmware.pl]]>
At a guess, I wonder if I could use the API to scrape the total number and speed of the CPUs, and sum them up to create a "maximum possible cycles per second" number, for which the CPU tally returned by check_vmware is a percentage (since the unit is probably Hz).

CPU is probably a naive metric anyway, do you know offhand if the API provides system load? That's probably more reliable.

More work than I'm really authorized to do, since I'm only supposed to be evaluating Nagios and my manager is pushing for Hitachi Network Analyzer. Maybe I can do it in my off hours if I get approval.

Statistics: Posted by arrbos — Wed Jul 27, 2011 3:01 pm


]]>
2011-07-27T12:42:47+13:00 2011-07-27T12:42:47+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=12162#p12162 <![CDATA[Re: Strange return using check_vmware.pl]]>
I suspect the Network problem you report (which I've not had reported before) is related to the same issue.

Statistics: Posted by stevesh — Wed Jul 27, 2011 12:42 pm


]]>
2011-07-27T12:26:24+13:00 2011-07-27T12:26:24+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=12161#p12161 <![CDATA[Re: Strange return using check_vmware.pl]]>
[root@lib-systems plugins]# ./check_vmware.pl --config=XXXXX --report=cpu --debug
Starting.
Connecting
Connected
Server Time : 2011-07-26T23:21:23.342901Z
Report type requested is [cpu]
Base is ha-folder-root
Retrieving PerfMgr data
Selected interval is: 0
Retrieving list of hosts...
Making new propertyspec
Making new filterspec from
Retrieving vim_service
Retrieving properties from VimService
Checking faults on SoapResponse
Processing entities:
ha-host
Creating query for MORef ha-host
Start time: 2011-07-26T23:16:00Z
End time : 2011-07-26T23:21:00Z
Retrieving data...
Perfstats retrieved...
Results for value ha-host
Perfdata object: 2011-07-26T23:21:20Z
Disconnecting...
Exiting with status (2)
CRIT: CPU usage at 7825528.47% (need more CPU allocation?)|cpu=7825528.47%;80;90;0;100

(I realize that it's an error in the API)

And oddly, I'm getting a similar error for 'net'.

[root@lib-systems plugins]# ./check_vmware.pl --config=XXXXX --report=net --debug
Starting.
Connecting
Connected
Server Time : 2011-07-26T23:24:11.544703Z
Report type requested is [net]
Base is ha-folder-root
Running network report
Retrieving PerfMgr data
Selected interval is: 0
Retrieving list of hosts...
Making new propertyspec
Making new filterspec from
Retrieving vim_service
Retrieving properties from VimService
Checking faults on SoapResponse
Processing entities:
ha-host
Creating query for MORef ha-host
Start time: 2011-07-26T23:19:00Z
End time : 2011-07-26T23:24:00Z
Retrieving data...
Perfstats retrieved...
Results for value ha-host
Perfdata object: 2011-07-26T23:24:00Z
Disconnecting...
Exiting with status (2)
CRIT: Network usage at 242144808Kbps (need more resource shares or physical interfaces?)|net=242144808;7680;10240;0;


The other parameters (memory, disk) produce meaningful output and jibe with my understanding.

Statistics: Posted by arrbos — Wed Jul 27, 2011 12:26 pm


]]>
2010-12-01T09:52:52+13:00 2010-12-01T09:52:52+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11705#p11705 <![CDATA[Re: Strange return using check_vmware.pl]]>
Programmatically calculating the percentage from the MHz value would be technically possible, but would need to store the current value and calculate the differrence and time between invocations, which is awkward and inconsistent.

The problem seems to be in the API on the esx *servers* rather than *virtualcentre*, so maybe you can point the check_vmware script at the virtualcentre rather than at the ESX server itself?

Statistics: Posted by stevesh — Wed Dec 01, 2010 9:52 am


]]>
2010-11-30T13:19:52+13:00 2010-11-30T13:19:52+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11702#p11702 <![CDATA[Re: Strange return using check_vmware.pl]]>
I think it maybe possible to get good enough cpu % using a different calculation hower I am not all that familiar with perl so it could be in the too hard basket for me.

Inside the SDK is this file /vmware-vsphere-cli-distrib/doc/samples/performance/utilization_report.pl

If you do a --countertype cpu when pointed at a server then the 3 usage lines appear;

Usage : 3.17 Percent
Usage : 1.9 Percent
Usage : 5.21 Percent

Fairly sure these are

Usage : 3.17 Percent (Latest)
Usage : 1.96 Percent (Average)
Usage : 5.21 Percent (Maximum)


I gather there is a logical explanation why it does not make sense to use these counters?

Does this help?


Thank You

Statistics: Posted by techio — Tue Nov 30, 2010 1:19 pm


]]>
2010-11-23T20:42:30+13:00 2010-11-23T20:42:30+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11690#p11690 <![CDATA[Re: Strange return using check_vmware.pl]]>
The cpu statistic pulled form virtualcentre, which is supposed to be in percent, is instead returning the value in MHz -- although the corresponding memory percentage is returned correctly. All other versions of virtualcentre return the value correctly as a percentage.

There is nothing I can do about this! The VC API is returning incorrect data, and the correct data is not available anywhere else.

Statistics: Posted by stevesh — Tue Nov 23, 2010 8:42 pm


]]>
2010-11-23T18:44:41+13:00 2010-11-23T18:44:41+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11688#p11688 <![CDATA[Re: Strange return using check_vmware.pl]]>
I am seeing the same issue as this when I do this command;

/check_vmware.pl --config=/usr/local/nagios/etc/vmconfig --server vm3 --report=cpu
CRIT: CPU usage at 48822148.28% (need more CPU allocation?)<BR> (No CPU fairness data)|cpu=48822148.28%;80;90;0;100

To my knowledge I am running the latest of everything

Check-vmware.pl = 0.12
SDK = VMware-vSphere-Perl-SDK-4.1.0-254719.x86_64.tar.gz
Running VMware ESXi Version 4.1.0 Build 260247

I realise after skimming the forums that you do not run a similar system but I was wondering if you had any suggestions on how I could figure out what was wrong with the calculations of CPU?

Cheers

Statistics: Posted by techio — Tue Nov 23, 2010 6:44 pm


]]>
2010-09-28T11:59:51+13:00 2010-09-28T11:59:51+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11617#p11617 <![CDATA[Re: Strange return using check_vmware.pl]]>
Our virtualcentre is v4.0.0, build 162856 (get this from the help menu on the VC client)

Can you let me know what version/build your experiencing the problem on?

Steve

Statistics: Posted by stevesh — Tue Sep 28, 2010 11:59 am


]]>
2010-09-25T05:15:47+13:00 2010-09-25T05:15:47+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11615#p11615 <![CDATA[Re: Strange return using check_vmware.pl]]> Statistics: Posted by dballing — Sat Sep 25, 2010 5:15 am


]]>
2010-08-11T16:42:35+13:00 2010-08-11T16:42:35+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11533#p11533 <![CDATA[Re: Strange return using check_vmware.pl]]> Statistics: Posted by stevesh — Wed Aug 11, 2010 4:42 pm


]]>
2010-08-11T16:22:09+13:00 2010-08-11T16:22:09+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11532#p11532 <![CDATA[Re: Strange return using check_vmware.pl]]> Statistics: Posted by Cyber-Wizard — Wed Aug 11, 2010 4:22 pm


]]>
2010-08-11T11:13:38+13:00 2010-08-11T11:13:38+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11531#p11531 <![CDATA[Re: Strange return using check_vmware.pl]]> Statistics: Posted by stevesh — Wed Aug 11, 2010 11:13 am


]]>
2010-08-11T04:41:41+13:00 2010-08-11T04:41:41+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11530#p11530 <![CDATA[Re: Strange return using check_vmware.pl]]> Statistics: Posted by Cyber-Wizard — Wed Aug 11, 2010 4:41 am


]]>
2010-08-11T04:23:06+13:00 2010-08-11T04:23:06+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=4203&p=11529#p11529 <![CDATA[Re: Strange return using check_vmware.pl]]> Statistics: Posted by Cyber-Wizard — Wed Aug 11, 2010 4:23 am


]]>