<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 14 (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";
color:black;
mso-fareast-language:EN-US;}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;
mso-fareast-language:EN-US;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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 bgcolor="white" lang="EN-IE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">I brought the sqlplus binary across from the db server but I get the following error..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># ldd /usr/local/instantclient_10_2/sqlplus<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">/usr/local/instantclient_10_2/sqlplus: error while loading shared libraries: /usr/lib/libclntsh.so.10.1: ELF file data encoding not little-endian<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Is there any way to load these shared libraries onto the nagios server?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-IE">
Ismael Puerto [mailto:ismael.puerto@seres.es] <br>
<b>Sent:</b> 17 November 2011 16:30<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Nagios-users] Oracle plugin<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For your info:<br>
<br>
This is the library necessary for execute sqlplus<br>
<br>
[root@openbravo ~]# ldd /usr/oracle/product/11.2.0/bin/sqlplus <br>
linux-vdso.so.1 => (0x00007fffe74b3000)<br>
libsqlplus.so => /usr/oracle/product/11.2.0/lib/libsqlplus.so (0x00002b93dc626000)<br>
libclntsh.so.11.1 => /usr/oracle/product/11.2.0/lib/libclntsh.so.11.1 (0x00002b93dc80d000)<br>
libnnz11.so => /usr/oracle/product/11.2.0/lib/libnnz11.so (0x00002b93df148000)<br>
libdl.so.2 => /lib64/libdl.so.2 (0x000000312f200000)<br>
libm.so.6 => /lib64/libm.so.6 (0x000000312f600000)<br>
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000312fa00000)<br>
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003132a00000)<br>
libc.so.6 => /lib64/libc.so.6 (0x000000312ee00000)<br>
libaio.so.1 => /usr/lib64/libaio.so.1 (0x00002b93df521000)<br>
/lib64/ld-linux-x86-64.so.2 (0x000000312ea00000)<br>
<br>
<br>
On 11/17/2011 05:05 PM, Dermot Duffy wrote: <o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">No, oracle is not installed on this box. Am trying to connect from the nagios server to the oracle db server via sqlplus.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-IE">
Ismael Puerto [<a href="mailto:ismael.puerto@seres.es">mailto:ismael.puerto@seres.es</a>]
<br>
<b>Sent:</b> 17 November 2011 15:57<br>
<b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> Re: [Nagios-users] Oracle plugin</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Do yo have ORACLE_LIB?<br>
<br>
#echo $ORACLE_LIB<br>
<br>
On 11/17/2011 04:20 PM, Dermot Duffy wrote: <o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for the feedback but it unfortunately makes no difference…..</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"># ln -s /usr/local/instantclient_10_2/libsqlplus.so /usr/lib/libsqlplus.so</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">#</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"># sqlplus </span>username/passowrd@ip_address:port/SSID<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">You have new mail in /var/spool/mail/root</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-IE">
Ismael Puerto [<a href="mailto:ismael.puerto@seres.es">mailto:ismael.puerto@seres.es</a>]
<br>
<b>Sent:</b> 17 November 2011 14:56<br>
<b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> Re: [Nagios-users] Oracle plugin</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">ln -s/usr/local/instantclient_10_2/libsqlplus.so /usr/lib/libsqlplus.so<br>
<br>
On 11/17/2011 03:16 PM, Dermot Duffy wrote: <o:p></o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I have installed the “check_oracle_instance” plugin but I am having some issues with sqlplus.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><a href="http://exchange.nagios.org/directory/Plugins/Databases/Oracle/Check-Oracle-status-%26-health-without-install-Oracle-client/details">http://exchange.nagios.org/directory/Plugins/Databases/Oracle/Check-Oracle-status-%26-health-without-install-Oracle-client/details</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The nagios compiles correctly so the config is good however when I attempt to connect to the db via my nagios server I get the following:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"># which sqlplus<o:p></o:p></p>
<p class="MsoNormal">/usr/bin/sqlplus<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"># sqlplus username/passowrd@ip_address:port/SSID #substituted with my own credentials<o:p></o:p></p>
<p class="MsoNormal">sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory<o:p></o:p></p>
<p class="MsoNormal">You have new mail in /var/spool/mail/root<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The lib is available:<o:p></o:p></p>
<p class="MsoNormal"># find / -name libsqlplus.so<o:p></o:p></p>
<p class="MsoNormal">/usr/local/instantclient_10_2/libsqlplus.so<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"># ll /usr/local/instantclient_10_2/libsqlplus.so<o:p></o:p></p>
<p class="MsoNormal">-rwxrwxrwx 1 root root 865995 Nov 17 12:05 /usr/local/instantclient_10_2/libsqlplus.so<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Any ideas how I can resolve this?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">R,<o:p></o:p></p>
<p class="MsoNormal">D.<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-IE"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>------------------------------------------------------------------------------<o:p></o:p></pre>
<pre>All the data continuously generated in your IT infrastructure <o:p></o:p></pre>
<pre>contains a definitive record of customers, application performance, <o:p></o:p></pre>
<pre>security threats, fraudulent activity, and more. Splunk takes this <o:p></o:p></pre>
<pre>data and makes sense of it. IT sense. And common sense.<o:p></o:p></pre>
<pre><a href="http://p.sf.net/sfu/splunk-novd2d">http://p.sf.net/sfu/splunk-novd2d</a><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Nagios-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><o:p></o:p></pre>
<pre><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><o:p></o:p></pre>
<pre>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <o:p></o:p></pre>
<pre>::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>------------------------------------------------------------------------------<o:p></o:p></pre>
<pre>All the data continuously generated in your IT infrastructure <o:p></o:p></pre>
<pre>contains a definitive record of customers, application performance, <o:p></o:p></pre>
<pre>security threats, fraudulent activity, and more. Splunk takes this <o:p></o:p></pre>
<pre>data and makes sense of it. IT sense. And common sense.<o:p></o:p></pre>
<pre><a href="http://p.sf.net/sfu/splunk-novd2d">http://p.sf.net/sfu/splunk-novd2d</a><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Nagios-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><o:p></o:p></pre>
<pre><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><o:p></o:p></pre>
<pre>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <o:p></o:p></pre>
<pre>::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-IE"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>------------------------------------------------------------------------------<o:p></o:p></pre>
<pre>All the data continuously generated in your IT infrastructure <o:p></o:p></pre>
<pre>contains a definitive record of customers, application performance, <o:p></o:p></pre>
<pre>security threats, fraudulent activity, and more. Splunk takes this <o:p></o:p></pre>
<pre>data and makes sense of it. IT sense. And common sense.<o:p></o:p></pre>
<pre><a href="http://p.sf.net/sfu/splunk-novd2d">http://p.sf.net/sfu/splunk-novd2d</a><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-IE"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Nagios-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><o:p></o:p></pre>
<pre><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><o:p></o:p></pre>
<pre>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <o:p></o:p></pre>
<pre>::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></pre>
</div>
</body>
</html>