Hi Juki,<br><br><div class="gmail_quote">On Wed, Jul 15, 2009 at 12:46 PM, Juki <span dir="ltr"><<a href="mailto:juki.emma@gmail.com">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>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>"NRPE: Command 'check_ora' not defined"<br>
</div></font><div><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?</font></div></blockquote><div><br>They should only be defined in one place. From those errors, it sounds like NRPE on the monitored host doesn't have those commands defined, which suggests that it's not reading your nrpe.cfg config file. I would check out NRPE on the monitored host... do any checks on that host work at all? Is the nrpe.cfg file in /usr/local/nagios/etc? Is either the NRPE daemon running or xinetd is handling the NRPE connections? Is the host listening on port 5666? Are the permissions on the nrpe.cfg file correct? What happens when you run an NRPE service check for that host manually, from the nagios server?<br>
<br>If none of that give you any joy, post the nrpe.cfg file to this list if you like, suitably obfuscated of course.<br><br>Regards,<br>Guy.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font face="tahoma,sans-serif"><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" target="_blank">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>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><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><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>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>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>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>
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><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>
</blockquote></div><br>