<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Do you have something of the form:<br>
<br>
define command {<br>
command_name check_nrpe<br>
command_line /usr/lib64/nagios/plugins/check_nrpe
-H $HOSTADDRESS$ -c $ARG1$ -t 20<br>
}<br>
<br>
\<br>
<br>
Roger Dierauer wrote:
<blockquote
cite="mide5603d7f0804061311m2fbcd3d5ne3cf0c3ea8ab7f5@mail.gmail.com"
type="cite">
<div>hi </div>
<div>you have to configure (normaly) /usr/local/nagios/etc/nrpe.cfg
file... there is the config for the check commands</div>
<div> </div>
<div>kind regards Roger<br>
<br>
</div>
<div><span class="gmail_quote">2008/4/4, Rodrick Brown <<a
href="mailto:rbrown@ballistasec.com">rbrown@ballistasec.com</a>>:</span>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div vlink="purple" link="blue" lang="EN-US">
<div>
<p>I recently built a nagios 3.0 server and having a bit of problem
getting remote hosts monitored correctly with nrpe. </p>
<p> </p>
<p>NRPE seems to be configured correctly on the local and remote
host. </p>
<p>[root@nagiosbox objects]# /usr/local/nagios/libexec/check_nrpe
-H nycplx01a -c check_load -t 30</p>
<p>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;</p>
<p> </p>
<p>I added the following entries to nagios.cfg</p>
<p>cfg_file=/usr/local/nagios/etc/objects/linuxhosts.cfg</p>
<p>cfg_file=/usr/local/nagios/etc/objects/ballista-host.cfg</p>
<p><br>
<br>
</p>
<p>I created a template host definition file. </p>
<p>--- ballista-host.cfg --- </p>
<p>define host {</p>
<p> name ballista-host</p>
<p> use linux-server</p>
<p> check_period 24x7</p>
<p> retry_interval 5</p>
<p> max_check_attempts 10</p>
<p> check_command check-host-alive</p>
<p> notification_period 24x7</p>
<p> notification_interval 30</p>
<p> notification_options d,r</p>
<p> contact_groups admins</p>
<p> register 0</p>
<p>}</p>
<p> </p>
<p>Here is the definition file I'm using to define my hosts. </p>
<p>--- linux-hosts.cfg --- </p>
<p> </p>
<p>[root@nyadmlx01 objects]# cat linuxhosts.cfg</p>
<p>define host {</p>
<p> use ballista-host</p>
<p> host_name nycplx01a</p>
<p> alias nycplx01a-eth1</p>
<p> address <a
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://10.187.11.101/" target="_blank">10.187.11.101</a></p>
<p> check_command check-host-alive</p>
<p> max_check_attempts 10</p>
<p> notification_interval 120</p>
<p> notification_period 24x7</p>
<p> notification_options d,u,r</p>
<p>}</p>
<p> </p>
<p>define host {</p>
<p> use
ballista-host</p>
<p> host_name nycplx01b</p>
<p> alias
nycplx01b-eth1</p>
<p> address <a
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://10.187.11.201/" target="_blank">10.187.11.201</a></p>
<p> check_command check-host-alive</p>
<p> max_check_attempts 10</p>
<p> notification_interval 120</p>
<p> notification_period 24x7</p>
<p> notification_options d,u,r</p>
<p>}</p>
<p> </p>
<p>define hostgroup {</p>
<p> hostgroup_name Ballista_ECN</p>
<p> alias Ballista_ECN Linux
Servers ; Long name of the group</p>
<p> members nycplx01a,nycplx01b</p>
<p>}</p>
<p> </p>
<p>define service {</p>
<p> use
generic-service</p>
<p> host_name
nycplx01a,nycplx01b</p>
<p> service_description CPU Load</p>
<p> check_command check_nrpe!check_load
<span style="font-family: Wingdings;">ß</span> No matter what
check_nrpe I use here I get configuration problems</p>
<p>}</p>
<p> </p>
<p>Checking services...</p>
<p>Error: Service check command 'check_nrpe' specified in service
'CPU Load' for host 'nycplx01a' not defined anywhere!</p>
<p>Error: Service check command 'check_nrpe' specified in service
'CPU Load' for host 'nycplx01b' not defined anywhere!</p>
<p> Checked 10 services.</p>
<p> </p>
<p>If anyone could help me with getting remote checks to work using
nrpe I would greatly appricate it thanks. </p>
<p> </p>
<p>---</p>
<p>Rodrick R. Brown </p>
<p>Director of Systems Engineering </p>
<p>Ballista Securities LLC</p>
<p>120 Wall St. Suite 2400 </p>
<p>C: 347 702 0012 | O: 646 307 4709</p>
<p><a onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.ballistasec.com/" target="_blank">http://www.ballistasec.com</a></p>
<p> </p>
</div>
</div>
<br>
-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It's the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a onclick="return top.js.OpenExtLink(window,event,this)"
href="http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace"
target="_blank">http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
ThurGroup Informatik Dierauer<br>
<br>
Roger Dierauer<br>
eidg. Informatiker mit FA<br>
VMware Certified Professional<br>
Egelsee Strasse 20a <br>
9535 Wilen bei Wil<br>
<br>
Mobile: +41 79 216 34 86<br>
Fax: +41 71 911 81 80<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:info@thurgroup.ch">info@thurgroup.ch</a><br>
<a href="http://thurgroup.ch">http://thurgroup.ch</a><br>
<br>
==> Online-Shop mit IT - Bedarf zu fairen Preisen und schneller
Lieferung<br>
<a href="http://shop.thurgroup.ch">http://shop.thurgroup.ch</a><br>
<==
<pre wrap="">
<hr size="4" width="90%">
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
<a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a></pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
<br>
</body>
</html>