<div>hosts.cfg</div>
<p>define host{<br> use generic-host ; Name of host template to use</p>
<p> host_name localhost<br> alias Solaris Server<br> address <a href="http://127.0.0.1">127.0.0.1</a><br> check_command check-host-alive
<br> max_check_attempts 10<br> notification_interval 120<br> notification_period 24x7<br> notification_options d,u,r<br> }<br></p>
<div>services.cfg</div>
<div>
<p>define service{<br> use generic-service ; Name of service template to use</p>
<p> host_name localhost<br> service_description PING<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 nagios<br> notification_interval 120<br> notification_period 24x7
<br> notification_options c,r<br> check_command check_ping!100.0,20%!500.0,60%<br> }</p>
<p>define service{<br> use generic-service<br> host_name localhost<br> service_description NRPE - check_load<br> is_volatile 0
<br> check_period 24x7<br> max_check_attempts 4<br> normal_check_interval 5<br> retry_check_interval 5<br> contact_groups nagios
<br> notification_options w,u,c,r<br> notification_interval 960<br> notification_period 24x7<br> check_command check_nrpe!check_load<br> }
<br></p></div>
<div><br><br> </div>
<div><span class="gmail_quote">On 1/18/07, <b class="gmail_sendername">Chandresh Suthar</b> <<a href="mailto:chandresh.suthar@gmail.com">chandresh.suthar@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>as a nagios user:</div>
<div> </div><span class="q">
<div>bash-2.05$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load<br>OK - load average: 0.02, 0.02, 0.07|load1=0.016;15.000;30.000;0; load5=0.016;10.000;25.000;0; load15=0.066;5.000;20.000;0;<br> </div>
<div>working fine.</div><br><br></span>
<div><span class="e" id="q_1103607a59a899b9_2">
<div><span class="gmail_quote">On 1/18/07, <b class="gmail_sendername">Chandresh Suthar</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:chandresh.suthar@gmail.com" target="_blank">chandresh.suthar@gmail.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>I have one sun machine with Solaris 9. I have installed nagios and nrpe. Nrpe works perfect on command prompt.</div>
<div> </div>
<div><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:root@localhost" target="_blank">root@localhost</a># ./check_nrpe -H localhost -c check_load<br>OK - load average: 0.08, 0.19, 0.20|load1=0.082;15.000;30.000;0; load5=
0.188;10.000;25.000;0; load15=0.195;5.000;20.000;0; <br> </div>
<div>but on gui it shows "No output returned from plugin" .Also it doesn't show any thing in logs.</div>
<div> </div>
<div>nrpe.cfg:</div>
<div> </div>
<div>command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20</div>
<div> </div>
<div>services.cfg</div>
<div> </div>
<div>define service{<br> use generic-service<br> host_name localhost<br> service_description NRPE - check_load<br> is_volatile 0
<br> check_period 24x7<br> max_check_attempts 4<br> normal_check_interval 5<br> retry_check_interval 5<br> contact_groups nagios
<br> notification_options w,u,c,r<br> notification_interval 960<br> notification_period 24x7<br> check_command check_nrpe!check_load<br> }
<br> </div>
<div>I am not getting the problem.my nagios version is 1.3 and nrpe 2.6</div>
<div> </div>
<div>Thanks</div><span>
<div>Chandresh</div></span></blockquote></div><br></span></div></blockquote></div><br>