[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    [Nagios-users] RV: check_snmp : External command error with no
From:       "Ricardo Melendez" <rmelendez () utep ! com ! mx>
Date:       2009-10-28 17:00:34
Message-ID: 000801ca57f0$2bace880$8306b980$ () com ! mx
[Download RAW message or body]

Este es un mensaje con varias partes en formato MIME.

[Attachment #2 (multipart/alternative)]
Este es un mensaje con varias partes en formato MIME.


Thanks, that was the problem.

 

I compile the plugins with "--with-snmpget-command=/usr/local/bin"  instead
of "with-snmpget-command=/usr/local/bin/snmpget"

 

Now, check_snmp and check_hpjd work.

 

 

 

 

> From: Ricardo Melendez [mailto:rmelendez@utep.com.mx]

> Sent: Wednesday, 28 October 2009 10:35

> To: Stuart Browne; nagios-users@lists.sourceforge.net

> Subject: RE: [Nagios-users] RV: check_snmp : External command error 

> with no output (return code: 3)

> 

> Hi, Stuart

> 

> Well, I download and install "net-snmp-5.4.2.1",  and run:

> 

> ./configure

> make

> make install

> 

> No more config in net-snmp.

> 

> 

> Next, I launch compilation for nagios-plugins with quickstart 

> instructions but the "check_hpjd" and "check_snmp" do not compile.

> 

> Then I launch the ./configure script for nagios-plugins with 

> "--with-snmpget-command=/usr/local/bin" , because the snmpget binary 

> lies here.

> 

> All my snmp enabled host work fine with snmpwalk.

 

The switch '--with-snmpget-command' needs the full path to the binary, not
just the directory name.. So try compiling the plugins with:

 

--with-snmpget-command=/usr/local/bin/snmpget

 

This will populate the PATH_TO_SNMPGET in the Makefile, which will then
compile it into 'check_snmp'.

 

Stuart Browne

 


[Attachment #5 (text/html)]

<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=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Texto sin formato Car";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.5pt;
	font-family:Consolas;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Texto de globo Car";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EstiloCorreo17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.TextosinformatoCar
	{mso-style-name:"Texto sin formato Car";
	mso-style-priority:99;
	mso-style-link:"Texto sin formato";
	font-family:Consolas;}
span.TextodegloboCar
	{mso-style-name:"Texto de globo Car";
	mso-style-priority:99;
	mso-style-link:"Texto de globo";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
	{page:Section1;}
-->
</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=ES link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText><span lang=EN-US>Thanks, that was the \
problem.<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>I compile the plugins with \
&#8220;--with-snmpget-command=/usr/local/bin&quot;&nbsp; instead of \
&#8220;with-snmpget-command=/usr/local/bin/snmpget&quot;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>Now, check_snmp and check_hpjd \
work.<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; From: Ricardo Melendez
[mailto:rmelendez@utep.com.mx]<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; Sent: Wednesday, 28 October 2009
10:35<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; To: Stuart Browne;
nagios-users@lists.sourceforge.net<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; Subject: RE: [Nagios-users] RV:
check_snmp : External command error <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; with no output (return code: \
3)<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; Hi, Stuart<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; Well, I download and install
&quot;net-snmp-5.4.2.1&quot;,&nbsp; and run:<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; ./configure<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; make<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; make install<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; No more config in \
net-snmp.<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; Next, I launch compilation for
nagios-plugins with quickstart <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; instructions but the
&quot;check_hpjd&quot; and &quot;check_snmp&quot; do not \
compile.<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; Then I launch the ./configure
script for nagios-plugins with <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt;
&quot;--with-snmpget-command=/usr/local/bin&quot; , because the snmpget binary \
<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; lies here.<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; <o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>&gt; All my snmp enabled host work fine
with snmpwalk.<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>The switch '--with-snmpget-command'
needs the full path to the binary, not just the directory name.. So try
compiling the plugins with:<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span \
lang=EN-US>--with-snmpget-command=/usr/local/bin/snmpget<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>This will populate the PATH_TO_SNMPGET
in the Makefile, which will then compile it into 'check_snmp'.<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText>Stuart Browne<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic