<form stylesheet="howto.css,ui_simple.css" script="modal.js" hideEdit="True" isVisible="true" version="1.1" theme="dark">
	<label>HOWTO LPAR: Generate stats and charts with Splunk Search Processing Language (SPL) for IBM Pseries micro-partitions</label>
	<description>This collection of request samples will help you generating your own reports, dashboards and alerts for Nmon Performance data using the native Search Processing Language</description>

	<row>
		<panel>

			<html>

				<div class="imgheader custom-modal">
					<img src="../../static/app/metricator-for-nmon/icons/dark_theme/cpu.png" alt="CPU"/>
					<h2><a data-modal-name="Help_modal">CPU Usage Statistics for IBM PSeries Micro-Partitions (click here for more information)</a></h2>
				</div>

                <!-- Modal -->
                <div class="modal custom-modal-60 fade" id="Help_modal" tabindex="-1" role="dialog" aria-labelledby="Help_modal_Label">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"></span></button>
                                <div style="text-align: left;">
                                    <h4 class="modal-title" id="Help_modal_Label">Integrated Navigation:</h4>
                                </div>
                            </div>
                            <div class="modal-body">

                                <div style="text-align: center;">
                                    <img src="../../static/app/metricator-for-nmon/icons/dark_theme/cpu.png" alt="CPU"/>
                                    <h1>CPU global percentage statistics for IBM AIX partitions
                                    <br />
                                    (metric_name=os.unix.nmon.cpu.lpar.*)
                                    </h1>
                                </div>

                                <div>
                                    <i>The LPAR monitor contains IBM Power partitions specific CPU statistics.</i>
                                    <br />
                                    <i>These metrics are available only for IBM Pseries and partitions running AIX or PowerLinux.</i>
                                </div>

                                <div style="text-align: left;">

                                    <h1>raw metrics:</h1>

                                    <div class="list">
                                        <lu>
                                            <li><b>entitled:</b> Entitled capacity of the partition</li>
                                            <li><b>virtualCPUs:</b> Number of virtual processors in the LPAR definition</li>
                                            <li><b>VP_Idle_PCT/EC_Idle_PCT:</b> % of CPU time free, meaning not having task to do</li>
                                        </lu>
                                    </div>

                                    <div class="list">
                                        <lu>
                                            <li><b>VP_Sys_PCT/EC_Sys_PCT:</b> % of CPU time spent in kernel mode</li>
                                            <li><b>VP_User_PCT/EC_User_PCT:</b> % of CPU time spent in user mode</li>
                                            <li><b>VP_Wait_PCT/VP_Wait_PCT:</b> % of CPU time spent in waiting for resources</li>
                                        </lu>
                                    </div>

                                    <h1>calculated metrics:</h1>

                                    <div class="list">
                                        <lu>
                                            <li><b>lpar_load_cores:</b> partition CPU cores usage versus VP/EC</li>
                                            <li><b>lpar_load_percent:</b> partition CPU percentage usage versus VP/EC</li>
                                        </lu>
                                    </div>

                                </div>

                                <div style="text-align:left;">
                                    <h1>Related links:</h1>
                                </div>

                                <div style="text-align: center;" class="cat_title">

                                    <a target="_blank" href="search?q=%7C%20mcatalog%20values(metric_name)%20as%20metrics%20where%20%60nmon_metrics_index%60%20metric_name%3D&quot;os.unix.nmon.cpu.lpar.*&quot;%20host%3D&quot;*&quot;" class="tryitbtnxl">mcatalog »
                                    </a>

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.*%20host%3D*%20by%20metric_name%2C%20host%20span%3D1m" class="tryitbtnxl">mstats raw query»
                                    </a>

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.*%20host%3D*%20by%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_load_vp_aix_cores%60" class="tryitbtnxl">mstats pre-built query »
                                    </a>

                                    <a target="_blank" href="Howto_LPAR_partitions_spl" class="tryitbtnxl">HOWTO Interface »
                                    </a>

                                    <a target="_blank" href="Nmon_Summary" class="tryitbtnxl">NMON SUMMARY Interface »
                                    </a>

                                    <a target="_blank" href="Nmon_ANALYSER_AIX" class="tryitbtnxl">NMON ANALYSER Interface »
                                    </a>

                                    <a target="_blank" href="UI_data_dictionary?&amp;form.itemfilter=CPU%20USAGE%20STATISTICS" class="tryitbtnxl">CPU Data Dictionary »
                                    </a>

                                </div>

                                <div style="text-align:left;">
                                    <h1>Related metrics:</h1>
                                </div>

                                <div style="text-align: center;" class="cat_title">

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.cpu_all.*%20host%3D*%20by%20metric_name%2C%20host%20span%3D1m" class="tryitbtnxl">os.unix.nmon.cpu.cpu_all.* »
                                    </a>

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.cpunn.*%20host%3D*%20by%20metric_name%2C%20host%20span%3D1m" class="tryitbtnxl">os.unix.nmon.cpu.cpunn.* »
                                    </a>

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.processes.top.*%20host%3D*%20by%20metric_name%2C%20host%2C%20dimension_Command%20span%3D1m" class="tryitbtnxl">os.unix.nmon.processes.top.* »
                                    </a>

                                    <a target="_blank" href="search?q=search%20eventtype%3Dnmon%3Aevents%20type%3DUARG" class="tryitbtnxl">UARG events »
                                    </a>

                                </div>

                            </div>

                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            </div>

                        </div>
                    </div>
                </div>

			</html>

		</panel>

		<panel>
			<title>Optionally preset host and press Enter:</title>

			<input type="text" token="host" searchWhenChanged="true">
				<label>Host:</label>
				<default>*</default>
			</input>

		</panel>

	</row>


	<row>
		<panel>
			<title>Time oriented and statistics oriented charts:</title>

			<html>

				<div>
					<i><h2>Time Oriented Charts:</h2></i>
				</div>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/minichart.png" alt="minichart"/>
					<br />
					<br />
					<br />
				</div>

				<div>
					<h2>AIX Micro-Partitions average CPU Usage in cores (calculated over VP) for the last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.cpu.lpar.PhysicalCPU host=$host$ by host span=1m
| timechart `nmon_span` useother=f limit=0 avg(PhysicalCPU) as lpar_load_cores by host</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.PhysicalCPU%20host%3D$host$%20by%20host%20span%3D1m%0A%7C%20timechart%20%60nmon_span%60%20useother%3Df%20limit%3D0%20avg(value)%20as%20lpar_load_cores%20by%20host&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>AIX Micro-Partitions average CPU Usage in cores with entitlement and virtualCPUs (calculated over VP) for the last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.cpu.lpar.VP_Sys_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_User_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Wait_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Idle_PCT OR metric_name=os.unix.nmon.cpu.lpar.entitled  OR metric_name=os.unix.nmon.cpu.lpar.virtualCPUs host=$host$ by metric_name, host span=1m
| `def_lpar_load_vp_aix_cores`
| timechart `nmon_span` useother=f limit=0 max(lpar_load_cores) as lpar_load_cores max(entitled) as entitled max(virtualCPUs) as virtualCPUs by host</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Sys_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_User_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Wait_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Idle_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.entitled%20%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.virtualCPUs%20host%3D$host$%20by%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_load_vp_aix_cores%60%0A%7C%20timechart%20%60nmon_span%60%20useother%3Df%20limit%3D0%20max(lpar_load_cores)%20as%20lpar_load_cores%20max(entitled)%20as%20entitled%20max(virtualCPUs)%20as%20virtualCPUs%20by%20host&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>AIX Micro-Partitions average CPU Usage percentage (calculated over VP against partition capacity) for the last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.cpu.lpar.VP_Sys_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_User_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Wait_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Idle_PCT OR metric_name=os.unix.nmon.cpu.lpar.entitled  OR metric_name=os.unix.nmon.cpu.lpar.virtualCPUs host=$host$ by metric_name, host span=1m
| `def_lpar_load_vp_aix_percent`
| timechart `nmon_span` useother=f limit=0 avg(lpar_load_percent) as lpar_load_percent by host</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Sys_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_User_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Wait_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Idle_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.entitled%20%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.virtualCPUs%20host%3D$host$%20by%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_load_vp_aix_percent%60%0A%7C%20timechart%20%60nmon_span%60%20useother%3Df%20limit%3D0%20avg(lpar_load_percent)%20as%20lpar_load_percent%20by%20host&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>AIX Pool average CPU Usage in cores with number of CPUs in pool for the last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` (metric_name=os.unix.nmon.cpu.lpar.poolCPUs OR metric_name=os.unix.nmon.cpu.lpar.Pool_id OR metric_name=os.unix.nmon.cpu.lpar.PoolIdle) host=$host$ by metric_name, OStype, host span=1m
| `def_lpar_pool_load_aix_cores`
| timechart useother=f limit=0 `nmon_span` max(lpar_pool_usage) as lpar_pool_usage max(poolCPUs) AS poolCPUs by host</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20(metric_name%3Dos.unix.nmon.cpu.lpar.poolCPUs%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.Pool_id%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.PoolIdle)%20host%3D$host$%20by%20metric_name%2C%20OStype%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_pool_load_aix_cores%60%0A%7C%20timechart%20useother%3Df%20limit%3D0%20%60nmon_span%60%20max(lpar_pool_usage)%20as%20lpar_pool_usage%20max(poolCPUs)%20AS%20poolCPUs%20by%20host&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<i><h2>Stats oriented Charts:</h2></i>
				</div>

				<div style="text-align: left;">
					<img src="../../static/app/metricator-for-nmon/various/mini/minigauge.png" alt="minichart"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Gauge chart of AIX Micro-Partitions average CPU percentage Usage (percentage evaluated over VP usage and capacity) over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.cpu.lpar.VP_Sys_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_User_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Wait_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Idle_PCT OR metric_name=os.unix.nmon.cpu.lpar.entitled  OR metric_name=os.unix.nmon.cpu.lpar.virtualCPUs host=$host$ by metric_name, host span=1m
| `def_lpar_load_vp_aix_percent`
| stats avg(lpar_load_percent) AS value | eval value=round(value,2)</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.PhysicalCPU%20host%3D$host$%20by%20host%20span%3D1m%0A%7C%20stats%20avg(value)%20AS%20value%20%7C%20eval%20value%3Dround(value%2C2)&amp;earliest=-24h&amp;latest=now&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Gauge chart of AIX Pool average CPU percentage Usage (percentage evaluated over VP usage and capacity) over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` (metric_name=os.unix.nmon.cpu.lpar.poolCPUs OR metric_name=os.unix.nmon.cpu.lpar.Pool_id OR metric_name=os.unix.nmon.cpu.lpar.PoolIdle) host=$host$ by metric_name, OStype, host span=1m
| `def_lpar_pool_load_aix_percent` | rename lpar_pool_usage_percent as lpar_pool_usage
| stats avg(lpar_pool_usage) AS lpar_pool_usage | eval lpar_pool_usage=round(lpar_pool_usage,2)</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20(metric_name%3Dos.unix.nmon.cpu.lpar.poolCPUs%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.Pool_id%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.PoolIdle)%20host%3D$host$%20by%20metric_name%2C%20OStype%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_pool_load_aix_percent%60%20%7C%20rename%20lpar_pool_usage_percent%20as%20lpar_pool_usage%0A%7C%20stats%20avg(lpar_pool_usage)%20AS%20lpar_pool_usage%20%7C%20eval%20lpar_pool_usage%3Dround(lpar_pool_usage%2C2)&amp;earliest=-24h&amp;latest=now&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div style="text-align: left;">
					<img src="../../static/app/metricator-for-nmon/various/mini/minicolumn.png" alt="minicolumn"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Column chart of TOP 10 average CPU Percentage Usage (Percentage evaluated over VP usage and capacity) over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.cpu.lpar.VP_Sys_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_User_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Wait_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Idle_PCT OR metric_name=os.unix.nmon.cpu.lpar.entitled  OR metric_name=os.unix.nmon.cpu.lpar.virtualCPUs host=SPH0073B by metric_name, host span=1m
| `def_lpar_load_vp_aix_percent`
| stats avg(lpar_load_percent) as lpar_load_percent by host
| sort - lpar_load_percent | head 10
| eval xlabel=""
| chart useother=f limit=0 values(lpar_load_percent) AS "Avg CPU %" by xlabel,host | rename xlabel AS "TOP 10 CPU % usage"</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Sys_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_User_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Wait_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Idle_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.entitled%20%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.virtualCPUs%20host%3D$host$%20by%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_load_vp_aix_percent%60%0A%7C%20stats%20avg(lpar_load_percent)%20as%20lpar_load_percent%20by%20host%0A%7C%20sort%20-%20lpar_load_percent%20%7C%20head%2010%0A%7C%20eval%20xlabel%3D&quot;&quot;%0A%7C%20chart%20useother%3Df%20limit%3D0%20values(lpar_load_percent)%20AS%20&quot;Avg%20CPU%20%25&quot;%20by%20xlabel%2Chost%20%7C%20rename%20xlabel%20AS%20&quot;TOP%2010%20CPU%20%25%20usage&quot;&amp;earliest=-24h%40h&amp;latest=now&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.chart=column&amp;display.visualizations.charting.legend.placement=top&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.axisY.maximumNumber=" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

			</html>

		</panel>
	</row>

	<row>
		<panel>
			<title>Table Statistics:</title>

			<html>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/minitable.png" alt="minitable"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Min / Average / Max CPU Usage in VP (evaluated over VP) over last 24 hours ordered and sorted by frame ID, host</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.cpu.lpar.VP_Sys_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_User_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Wait_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Idle_PCT OR metric_name=os.unix.nmon.cpu.lpar.entitled  OR metric_name=os.unix.nmon.cpu.lpar.virtualCPUs host=$host$ by metric_name, host span=1m
| `def_lpar_load_vp_aix_cores`
| `mapping_frameID`
| where lpar_load_cores>0
| stats min(lpar_load_cores) As min_lpar_load_cores, avg(lpar_load_cores) As avg_lpar_load_cores, max(lpar_load_cores) As max_lpar_load_cores, max(entitled) As entitled, max(virtualCPUs) As virtualCPUs, sparkline(max(lpar_load_cores)) As sparkline by frameID,host
| sort limit=0 frameID | eval avg_lpar_load_cores=round(avg_lpar_load_cores,3) | foreach max_lpar_load_cores,avg_lpar_load_cores,min_lpar_load_cores [ eval "&lt;&lt;FIELD&gt;&gt;"=round('&lt;&lt;FIELD&gt;&gt;', 3) ] | fields frameID,host,max_lpar_load_cores,avg_lpar_load_cores,min_lpar_load_cores,entitled,virtualCPUs,sparkline</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Sys_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_User_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Wait_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Idle_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.entitled%20%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.virtualCPUs%20host%3D$host$%20by%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_load_vp_aix_cores%60%0A%7C%20%60mapping_frameID%60%0A%7C%20where%20lpar_load_cores&gt;0%0A%7C%20stats%20min(lpar_load_cores)%20As%20min_lpar_load_cores%2C%20avg(lpar_load_cores)%20As%20avg_lpar_load_cores%2C%20max(lpar_load_cores)%20As%20max_lpar_load_cores%2C%20max(entitled)%20As%20entitled%2C%20max(virtualCPUs)%20As%20virtualCPUs%2C%20sparkline(max(lpar_load_cores))%20As%20sparkline%20by%20frameID%2Chost%0A%7C%20sort%20limit%3D0%20frameID%20%7C%20eval%20avg_lpar_load_cores%3Dround(avg_lpar_load_cores%2C3)%20%7C%20foreach%20max_lpar_load_cores%2Cavg_lpar_load_cores%2Cmin_lpar_load_cores%20%5B%20eval%20&quot;&lt;&lt;FIELD&gt;&gt;&quot;%3Dround(%27&lt;&lt;FIELD&gt;&gt;%27%2C%203)%20%5D%20%7C%20fields%20frameID%2Chost%2Cmax_lpar_load_cores%2Cavg_lpar_load_cores%2Cmin_lpar_load_cores%2Centitled%2CvirtualCPUs%2Csparkline&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

			</html>

		</panel>
	</row>

	<row>
		<panel>
			<title>Alerting:</title>

			<html>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/minisingle.png" alt="minisingle"/>
					<br />
					<br />
				</div>

				<div>
					<h2>IBM Micro-Partitions having an average CPU usage higher than 90% for a minimal contiguous period of 5 minutes</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.cpu.lpar.VP_Sys_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_User_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Wait_PCT OR metric_name=os.unix.nmon.cpu.lpar.VP_Idle_PCT OR metric_name=os.unix.nmon.cpu.lpar.entitled  OR metric_name=os.unix.nmon.cpu.lpar.virtualCPUs host=$host$ by metric_name, host span=1m
| `def_lpar_load_vp_aix_percent`
| where lpar_load_percent>90
| stats latest(_time) as _time range(_time) as duration latest(lpar_load_percent) as latest_lpar_load_percent by host
| where (latest_lpar_load_percent>=90) AND (duration >= 300)
| eval "duration (hh:mm:ss)"=tostring(duration,"duration")
| fields host,_time,duration,"duration (hh:mm:ss)",latest_lpar_load_percent</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Sys_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_User_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Wait_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.VP_Idle_PCT%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.entitled%20%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.virtualCPUs%20host%3D$host$%20by%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_lpar_load_vp_aix_percent%60%0A%7C%20where%20lpar_load_percent&gt;90%0A%7C%20stats%20latest(_time)%20as%20_time%20range(_time)%20as%20duration%20latest(lpar_load_percent)%20as%20latest_lpar_load_percent%20by%20host%0A%7C%20where%20(latest_lpar_load_percent&gt;%3D90)%20AND%20(duration%20&gt;%3D%20300)%0A%7C%20eval%20&quot;duration%20(hh%3Amm%3Ass)&quot;%3Dtostring(duration%2C&quot;duration&quot;)%0A%7C%20fields%20host%2C_time%2Cduration%2C&quot;duration%20(hh%3Amm%3Ass)&quot;%2Clatest_lpar_load_percent&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>IBM Pools having an average CPU usage higher than 90% for a minimal contiguous period of 5 minutes</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` (metric_name=os.unix.nmon.cpu.lpar.poolCPUs OR metric_name=os.unix.nmon.cpu.lpar.PoolIdle OR metric_name=os.unix.nmon.cpu.lpar.pool_idle_time OR metric_name=os.unix.nmon.cpu.lpar.pool_capacity OR metric_name=os.unix.nmon.cpu.lpar.smt_mode OR metric_name=os.unix.nmon.cpu.lpar.Pool_id) (host=$host$) by metric_name, OStype, host span=1m
| `def_all_os_lpar_pool_load_percent`
| where PoolIdle>0
| fields _time, host, lpar_pool_vp_usage_PCT
| where lpar_pool_vp_usage_PCT>90
| lookup nmon_frameID_mapping host as host OUTPUT frameID
| eval frameID=if(isnull(frameID),host,frameID)
| lookup nmon_inventory hostname as host OUTPUT AIX_PoolID as PoolID
| search frameID="*" PoolID="0"
| stats latest(_time) as _time range(_time) as duration latest(lpar_pool_vp_usage_PCT) as latest_lpar_pool_vp_usage_percent, latest(PoolID) as Pool_id by frameID,host
| where (latest_lpar_pool_vp_usage_percent>=90) AND (duration >= 300)
| dedup frameID, Pool_id
| eval "duration (hh:mm:ss)"=tostring(duration,"duration")
| fields frameID,host,_time,Pool_id,duration,"duration (hh:mm:ss)",latest_lpar_pool_vp_usage_percent</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20(metric_name%3Dos.unix.nmon.cpu.lpar.poolCPUs%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.PoolIdle%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.pool_idle_time%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.pool_capacity%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.smt_mode%20OR%20metric_name%3Dos.unix.nmon.cpu.lpar.Pool_id)%20(host%3D$host$)%20by%20metric_name%2C%20OStype%2C%20host%20span%3D1m%0A%7C%20%60def_all_os_lpar_pool_load_percent%60%0A%7C%20where%20PoolIdle&gt;0%0A%7C%20fields%20_time%2C%20host%2C%20lpar_pool_vp_usage_PCT%0A%7C%20where%20lpar_pool_vp_usage_PCT&gt;90%0A%7C%20lookup%20nmon_frameID_mapping%20host%20as%20host%20OUTPUT%20frameID%0A%7C%20eval%20frameID%3Dif(isnull(frameID)%2Chost%2CframeID)%0A%7C%20lookup%20nmon_inventory%20hostname%20as%20host%20OUTPUT%20AIX_PoolID%20as%20PoolID%0A%7C%20search%20frameID%3D&quot;*&quot;%20PoolID%3D&quot;0&quot;%0A%7C%20stats%20latest(_time)%20as%20_time%20range(_time)%20as%20duration%20latest(lpar_pool_vp_usage_PCT)%20as%20latest_lpar_pool_vp_usage_percent%2C%20latest(PoolID)%20as%20Pool_id%20by%20frameID%2Chost%0A%7C%20where%20(latest_lpar_pool_vp_usage_percent&gt;%3D90)%20AND%20(duration%20&gt;%3D%20300)%0A%7C%20dedup%20frameID%2C%20Pool_id%0A%7C%20eval%20&quot;duration%20(hh%3Amm%3Ass)&quot;%3Dtostring(duration%2C&quot;duration&quot;)%0A%7C%20fields%20frameID%2Chost%2C_time%2CPool_id%2Cduration%2C&quot;duration%20(hh%3Amm%3Ass)&quot;%2Clatest_lpar_pool_vp_usage_percent&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h%40h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

			</html>

		</panel>

	</row>

</form>
