<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:627659718;
mso-list-type:hybrid;
mso-list-template-ids:1403024078 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1
{mso-list-id:903414949;
mso-list-type:hybrid;
mso-list-template-ids:183559892 -1548830168 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
{mso-level-start-at:2;
mso-level-number-format:bullet;
mso-level-text:\F06E;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l2
{mso-list-id:905725932;
mso-list-type:hybrid;
mso-list-template-ids:-1682946696 1805813852 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
{mso-level-start-at:2;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
@list l3
{mso-list-id:1578242659;
mso-list-type:hybrid;
mso-list-template-ids:-500954446 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l3:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l4
{mso-list-id:2100634569;
mso-list-type:hybrid;
mso-list-template-ids:1520839740 2132053238 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l4:level1
{mso-level-start-at:2;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I recently built a nagios 3.0 server and having a bit of
problem getting remote hosts monitored correctly with nrpe. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>NRPE seems to be configured correctly on the local and
remote host. <o:p></o:p></p>
<p class=MsoNormal>[root@nagiosbox objects]#
/usr/local/nagios/libexec/check_nrpe -H nycplx01a -c check_load -t 30<o:p></o:p></p>
<p class=MsoNormal>OK - load average: 0.08, 0.02,
0.01|load1=0.080;15.000;30.000;0; load5=0.020;10.000;25.000;0;
load15=0.010;5.000;20.000;0;<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I added the following entries to nagios.cfg<o:p></o:p></p>
<p class=MsoListParagraph>cfg_file=/usr/local/nagios/etc/objects/linuxhosts.cfg<o:p></o:p></p>
<p class=MsoListParagraph>cfg_file=/usr/local/nagios/etc/objects/ballista-host.cfg<o:p></o:p></p>
<p class=MsoListParagraph><br>
<br>
<o:p></o:p></p>
<p class=MsoNormal>I created a template host definition file. <o:p></o:p></p>
<p class=MsoNormal>--- ballista-host.cfg --- <o:p></o:p></p>
<p class=MsoNormal>define host {<o:p></o:p></p>
<p class=MsoNormal> name ballista-host<o:p></o:p></p>
<p class=MsoNormal> use linux-server<o:p></o:p></p>
<p class=MsoNormal> check_period 24x7<o:p></o:p></p>
<p class=MsoNormal> retry_interval 5<o:p></o:p></p>
<p class=MsoNormal> max_check_attempts 10<o:p></o:p></p>
<p class=MsoNormal> check_command check-host-alive<o:p></o:p></p>
<p class=MsoNormal> notification_period 24x7<o:p></o:p></p>
<p class=MsoNormal> notification_interval 30<o:p></o:p></p>
<p class=MsoNormal> notification_options d,r<o:p></o:p></p>
<p class=MsoNormal> contact_groups admins<o:p></o:p></p>
<p class=MsoNormal> register 0<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here is the definition file I’m using to define my
hosts. <o:p></o:p></p>
<p class=MsoNormal>--- linux-hosts.cfg --- <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[root@nyadmlx01 objects]# cat linuxhosts.cfg<o:p></o:p></p>
<p class=MsoNormal>define host {<o:p></o:p></p>
<p class=MsoNormal> use ballista-host<o:p></o:p></p>
<p class=MsoNormal> host_name nycplx01a<o:p></o:p></p>
<p class=MsoNormal> alias nycplx01a-eth1<o:p></o:p></p>
<p class=MsoNormal> address 10.187.11.101<o:p></o:p></p>
<p class=MsoNormal> check_command check-host-alive<o:p></o:p></p>
<p class=MsoNormal> max_check_attempts 10<o:p></o:p></p>
<p class=MsoNormal> notification_interval 120<o:p></o:p></p>
<p class=MsoNormal> notification_period 24x7<o:p></o:p></p>
<p class=MsoNormal> notification_options d,u,r<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>define host {<o:p></o:p></p>
<p class=MsoNormal> use ballista-host<o:p></o:p></p>
<p class=MsoNormal> host_name nycplx01b<o:p></o:p></p>
<p class=MsoNormal> alias nycplx01b-eth1<o:p></o:p></p>
<p class=MsoNormal> address 10.187.11.201<o:p></o:p></p>
<p class=MsoNormal> check_command check-host-alive<o:p></o:p></p>
<p class=MsoNormal> max_check_attempts 10<o:p></o:p></p>
<p class=MsoNormal> notification_interval 120<o:p></o:p></p>
<p class=MsoNormal> notification_period 24x7<o:p></o:p></p>
<p class=MsoNormal> notification_options d,u,r<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>define hostgroup {<o:p></o:p></p>
<p class=MsoNormal> hostgroup_name Ballista_ECN<o:p></o:p></p>
<p class=MsoNormal> alias Ballista_ECN
Linux Servers ; Long name of the group<o:p></o:p></p>
<p class=MsoNormal> members nycplx01a,nycplx01b<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>define service {<o:p></o:p></p>
<p class=MsoNormal> use generic-service<o:p></o:p></p>
<p class=MsoNormal> host_name nycplx01a,nycplx01b<o:p></o:p></p>
<p class=MsoNormal> service_description CPU Load<o:p></o:p></p>
<p class=MsoNormal> check_command check_nrpe!check_load
<span style='font-family:Wingdings'>ß</span> No matter what check_nrpe I use
here I get configuration problems<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Checking services...<o:p></o:p></p>
<p class=MsoNormal>Error: Service check command 'check_nrpe' specified in
service 'CPU Load' for host 'nycplx01a' not defined anywhere!<o:p></o:p></p>
<p class=MsoNormal>Error: Service check command 'check_nrpe' specified in
service 'CPU Load' for host 'nycplx01b' not defined anywhere!<o:p></o:p></p>
<p class=MsoNormal> Checked 10 services.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>If anyone could help me with getting remote checks to work using
nrpe I would greatly appricate it thanks. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>---<o:p></o:p></p>
<p class=MsoNormal>Rodrick R. Brown <o:p></o:p></p>
<p class=MsoNormal>Director of Systems Engineering <o:p></o:p></p>
<p class=MsoNormal>Ballista Securities LLC<o:p></o:p></p>
<p class=MsoNormal>120 Wall St. Suite 2400 <o:p></o:p></p>
<p class=MsoNormal>C: 347 702 0012 | O: 646 307 4709<o:p></o:p></p>
<p class=MsoNormal>http://www.ballistasec.com<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>