<font face="tahoma,sans-serif">Hi Guy,<br><br>I tried all the changes as per your suggestion, however, I still come up with the same errors as before, that is;<br><br></font><font face="tahoma,sans-serif"><div class="im">"NRPE: Command 'check_ora' not defined"<br>
</div></font><div class="im"><font face="tahoma,sans-serif">"NRPE: Command 'check_server1' not defined"<br></font><font face="tahoma,sans-serif">"NRPE: Command 'check_var' not defined"<br>
<br><br>Where else in the configuration files on the monitoring server are commands defined? <br><br><br>Regards,<br>Juki<br></font></div><br><br><br><br><div class="gmail_quote">2009/7/15 Guy Waugh <span dir="ltr"><<a href="mailto:guidosh@gmail.com">guidosh@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Juki,<br><br><div class="gmail_quote"><div class="im">On Wed, Jul 15, 2009 at 10:24 AM, Juki <span dir="ltr"><<a href="mailto:juki.emma@gmail.com" target="_blank">juki.emma@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font face="tahoma,sans-serif">Hi Guy,<br><br>Many thanks for your post. <br><br>I decided to go with Option (1) as per your description and did the following in the nrpe.cfg file on the monitored host:<br><br>command[check_disk]=/usr/local/nagios/libexec/check_disk -w 30% -c 20% -p /<br>
command[check_var]=/usr/local/nagios/libexec/check_disk -w 30% -c 20% -p /var<br>command[check_server1]=/usr/local/nagios/libexec/check_disk -w 30% -c 20% -p /var/opt/BGw/Server1<br>command[check_ora]=/usr/local/nagios/libexec/check_disk -w 30% -c 20% -p /var/opt/mediation/ora</font></blockquote>
</div><div><br>Looks good, except the first one... call it 'check_root' like this:<br><br><font face="tahoma,sans-serif">command[check_root]=/usr/local/nagios/libexec/check_disk -w 30% -c 20% -p /</font><br> </div>
<div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font face="tahoma,sans-serif"><br>
<br><br>And then on the nagios monitoring server I have this:<br><br>define service{<br> use generic-service ; Name of service template to use<br> host_name emm4<br>
service_description Root Partition<br> check_command check_nrpe!check_disk!15%!10%!<br> }<br><br>define service{<br> use generic-service ; Name of service template to use<br>
host_name emm4<br> service_description var Partition<br> check_command check_nrpe!check_var!30%!20%!<br> }<br><br>define service{<br> use generic-service ; Name of service template to use<br>
host_name emm4<br> service_description server1 Partition<br> check_command check_nrpe!check_server1!30%!20%!<br> }<br><br>define service{<br>
use generic-service ; Name of service template to use<br> host_name emm4<br> service_description ora Partition<br> check_command check_nrpe!check_ora!30%!20%!<br>
}</font></blockquote></div><div><br>You're still half way between the two approaches with your service definitions, because you're passing arguments :-)<br><br>Try this instead:<div class="im"><br><br><font face="tahoma,sans-serif">define service{<br>
use generic-service ; Name of service template to use<br> host_name emm4<br>
service_description Root Partition<br> check_command check_nrpe!check_root<br> }</font><br> <br></div><font face="tahoma,sans-serif"><div class="im">define service{<br>
use generic-service ; Name of service template to use<br>
host_name emm4<br> service_description var Partition<br> check_command check_nrpe!check_var<br> }<br><br></div><div class="im">define service{<br>
use generic-service ; Name of service template to use<br>
host_name emm4<br> service_description server1 Partition<br> check_command check_nrpe!check_server1<br> }<br><br></div><div class="im">define service{<br>
use generic-service ; Name of service template to use<br> host_name emm4<br> service_description ora Partition<br> check_command check_nrpe!check_ora<br>
}</div></font><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font face="tahoma,sans-serif"><br></font><br><font face="tahoma,sans-serif"><br>
<div class="im">
When I log into the nagios Web GUI, the services for the ora, server1 and var partition have been successfully created. However, looking at the "status information" column, I have the following errors:<br>
<br>"NRPE: Command 'check_ora' not defined"<br></div></font><div class="im"><font face="tahoma,sans-serif">"NRPE: Command 'check_server1' not defined"<br></font><font face="tahoma,sans-serif">"NRPE: Command 'check_var' not defined"</font></div>
</blockquote>
<div><br>Try my changes suggested above and see if these errors persist. They might be happening because you're passing arguments to the remote NRPE daemon, I'm not sure...<br><br>Regards,<br><font color="#888888">Guy.</font><br>
</div></div></blockquote></div><br>