<html><body bgcolor="#FFFFFF"><div>Sorry for the previous<br><br>Ciao,<div><br></div><div>Giorgio</div></div><div><br>Il giorno 18/mag/2011, alle ore 15:26, Daniel Ceola <<a href="mailto:DCeola@twgi.net">DCeola@twgi.net</a>> ha scritto:<br><br></div><div></div><blockquote type="cite"><div><div class="WordSection1"><p class="MsoNormal">Hello all!<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I’ve recently been attempting to setup monitoring on my AIX 5.3 servers.  After some research, I determined that the best way to accomplish this is through using NRPE. I downloaded the package here: <a href="https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/AIX/AIX-5-3-NRPE-2-12-NSCA-2-7-2-Nagios-Plugins-1-4-11"><a href="https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/AIX/AIX-5-3-NRPE-2-12-NSCA-2-7-2-Nagios-Plugins-1-4-11">https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/AIX/AIX-5-3-NRPE-2-12-NSCA-2-7-2-Nagios-Plugins-1-4-11</a></a>  and followed instructions here <a href="http://nagioswiki.com/wiki/index.php/Installing_Nagios_NRPE_on_AIX"><a href="http://nagioswiki.com/wiki/index.php/Installing_Nagios_NRPE_on_AIX">http://nagioswiki.com/wiki/index.php/Installing_Nagios_NRPE_on_AIX</a></a>  to install NRPE on the AIX system.  I then found an item in the nagios-users archive that suggested that I needed to install sudo on the AIX system and change the NRPE config to use sudo for the commands.  <a href="http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31668.html"><a href="http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31668.html">http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31668.html</a></a><o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I have my nagios server’s IP in the allowed_hosts list within nrpe.cfg<o:p></o:p></p><p class="MsoNormal">I also have this set (per instructions in below link) command_prefix=/usr/bin/sudo<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">At this point – when I run one of the check (check_disk) scripts locally (on the AIX system) that the NRPE package installed, I am able to get a result<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"># check_disk -w 85 -c 95<o:p></o:p></p><p class="MsoNormal">DISK CRITICAL - free space: / 307 MB (79% inode=98%); (only copied the first item, but there was a lot of output)<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">However, I cannot seem to get my check from my Nagios system to work properly.<o:p></o:p></p><p class="MsoNormal">nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_nrpe -H 192.168.3.15 -n -c check_aix_disks<o:p></o:p></p><p class="MsoNormal">NRPE: Unable to read output<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">The corresponding command in the nrpe.cfg on the AIX system:  <br>command[check_aix_disks]=/usr/local/nagios/libexec/check_disk -w 10m -c 2m -x /proc<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">At this point, I’m unsure of what I need to do in order to get this working.  If anyone could provide a possible direction, I would be most grateful!<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Thanks,<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Daniel Ceola<o:p></o:p></p><p class="MsoNormal">Systems & DB Admin<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">The Wills Group<o:p></o:p></p><p class="MsoNormal">6355 Crain Hwy<o:p></o:p></p><p class="MsoNormal">La Plata, MD 20646<o:p></o:p></p><p class="MsoNormal">301-932-3600<o:p></o:p></p><p class="MsoNormal">301-932-3643 (direct line)<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p></div></div></blockquote><blockquote type="cite"><div><span>------------------------------------------------------------------------------</span><br><span>What Every C/C++ and Fortran developer Should Know!</span><br><span>Read this article and learn how Intel has extended the reach of its </span><br><span>next-generation tools to help Windows* and Linux* C/C++ and Fortran </span><br><span>developers boost performance applications - including clusters. </span><br><span><a href="http://p.sf.net/sfu/intel-dev2devmay">http://p.sf.net/sfu/intel-dev2devmay</a></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Nagios-users mailing list</span><br><span><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a></span><br><span><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></span><br><span>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </span><br><span>::: Messages without supporting info will risk being sent to /dev/null</span></div></blockquote></body></html>