<div>For Checking the Average CPU Load over the past Hour use the following:</div>
<div> </div>
<div>check_command check_nt_cpuload!60,80,90,90,80,90<br> </div>
<div>your command definition should be something like this:</div>
<div>define command{<br> command_name check_nt_cpuload<br> command_line $USER1$/check_nt -H $HOSTADDRESS$ -t 5 -p 1248 -v CPULOAD -l $ARG1$<br> }<br>The way this command works is the -l is in sets of three (triplet) separated by a comma
</div>
<div>the first is the # of minutes to check, then the warning percent, last the critical percent value do not use % in the command,</div>
<div>Ns_client and NC_Net can check more than one average at a time so the above command will check the load over the last hour and the last 1.5 hours.</div>
<div> </div>
<div>NS_Client and NC_net check the CPU Load several times a minute and then calculate the average when it receives the check_nt command.<br>If using NC_Net make sure to increase the Parameter Cpu_max_interval to larger than the maximum minutes you will be checking.
<br> </div>
<div>Hope this helps,</div>
<div> </div>
<div>Tony</div>
<div> </div>
<div> </div>
<div><span class="gmail_quote">On 9/8/05, <b class="gmail_sendername">Sudheer Muddappa</b> <<a href="mailto:sudheer@tgs-solutions.com">sudheer@tgs-solutions.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi guys,<br><br>In my services.cfg file I have for check_nt_cpuload as<br><br>define service{<br> host_name stealth
<br> service_description CPU LOAD<br> is_volatile 0<br> check_period 24x7<br> max_check_attempts 3<br> normal_check_interval 5
<br> retry_check_interval 1<br> contact_groups server-admins<br> notification_interval 240<br> notification_period 24x7<br> notification_options u,c,r
<br> check_command<br>check_nt_cpuload!60!80%!90%!90!80%!90!<br> }<br><br>Is this is correct?<br><br>Just want to check the cpu load every 60 minutes.<br><br>On the web page I see a message saying<br><br>not enough values for -l parameters
<br><br><br>check_disk is workgin properly for the same server.<br><br>Thanks,<br><br>--<br>Sudheer Muddappa<br><br><br><br><br><br>-------------------------------------------------------<br>SF.Net email is Sponsored by the Better Software Conference & EXPO
<br>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices<br>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA<br>Security * Process Improvement & Measurement *
<a href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net
</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>