<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        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;}
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";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@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 lang="EN-IE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I have configured the following plugin on my oracle db server<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Db1:/usr/local/nagios/etc/nrpe.cfg<o:p></o:p></p>
<p class="MsoNormal"># Oracle Checks<o:p></o:p></p>
<p class="MsoNormal">command[check_oracle]=/usr/local/nagios/libexec/check_oracle --login PCMDB<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">From the command line this works locally.<o:p></o:p></p>
<p class="MsoNormal">[root@db1etc]# /usr/local/nagios/libexec/check_oracle --login PCMDB<o:p></o:p></p>
<p class="MsoNormal">OK - dummy login connected<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However I am unable to get it to work from my nagios server.<o:p></o:p></p>
<p class="MsoNormal">I have defined the check_oracle script at the following location in the nagios server:<o:p></o:p></p>
<p class="MsoNormal">Nagios_server:/usr/local/nagios/etc/objects/db1.cfg<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           mvdbs1<o:p></o:p></p>
<p class="MsoNormal">          service_description Check Oracle<o:p></o:p></p>
<p class="MsoNormal">          check_command       check_nrpe!check_oracle<o:p></o:p></p>
<p class="MsoNormal">          }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The NRPE connection between db server and nagios server is fine:<o:p></o:p></p>
<p class="MsoNormal">[root@Nagios_Server]# ./check_nrpe -H db-server<o:p></o:p></p>
<p class="MsoNormal">NRPE v2.12<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But when I run this from the nagios server (GUI) I get the following:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-IE"><img width="602" height="413" id="Picture_x0020_2" src="cid:image001.jpg@01CCB8DA.BA30BF80"></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">D.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0" align="left">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:10.5pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#C00000;mso-fareast-language:EN-GB">____________________________________________________________________________________________________________________________________________________________________________________________</span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#C00000;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-line-height-alt:10.5pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="color:#1F497D;mso-fareast-language:EN-IE"><img width="318" height="61" id="Picture_x0020_1" src="cid:image002.jpg@01CCB8DA.BA30BF80" alt="Description: Description: Description: Description: Brandtone Side Bar logo cropped"></span><span style="color:#1F497D;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:10.5pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black;mso-fareast-language:EN-GB">Dermot Duffy<o:p></o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:10.5pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black;mso-fareast-language:EN-GB">IT Infrastructure Technical Lead<o:p></o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:10.5pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#C00000;mso-fareast-language:EN-GB"><a href="http://www.brandtone.ie/"><span style="color:#C00000">www.brandtone.ie</span></a> |
<a href="mailto:Dermot.Duffy@brandtone.ie"><span style="color:blue">Dermot.Duffy@brandtone.ie</span></a></span></b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#292827;mso-fareast-language:EN-GB"><br>
M: +353 85 711 7530</span><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#292827;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:4.5pt;margin-left:0cm;line-height:10.5pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#262626;mso-fareast-language:EN-GB">Disclaimer</span></b><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#262626;mso-fareast-language:EN-GB">
</span><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#262626;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:4.5pt;margin-right:0cm;margin-bottom:4.5pt;margin-left:0cm;line-height:10.5pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#262626;mso-fareast-language:EN-GB">The information contained in this message (including any attachments) is
<b>confidential</b> and intended solely for the  attention and use of the named addressee(s).  It must not be disclosed to any person without our authority.  If you are not the intended recipient, please delete it from your system immediately - any disclosure,
 copying or distribution thereof or any action taken or omitted to be taken in reliance thereon is prohibited and may be unlawful.
<br>
<br>
BrandTone Limited makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the transmission, reception, storage or use of such
 information in any way whatsoever.  Any opinions expressed in this message are those of the author and do not necessarily reflect the opinions of BrandTone Limited.
</span><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#262626;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:EN-IE"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>