<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (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]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:Verdana;
color:black;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 81.1pt 1.0in 81.1pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to monitor an oracle server using nagios and am
using a Perl script check_oracle_generic.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am new to nagios and hence have a very limited knowledge
of it <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In my commands.cfg file I have defined a commnad as follows:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>define command{<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
command_name check_oracle_generic<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
command_line /usr/local/nagios/libexec/check_oracle_generic
-SID $ARG1$ -dbuser $ARG2$ -dbpassword $ARG3$ -w $ARG4$ -c $ARG5$ -q $ARG6$<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> }<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Also in the service definition its defined as <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>define service{<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
use
local-service<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
host_name
IRIMS_Linux<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
service_description oracle session<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
check_command
check_oracle_generic -SID test2 -dbuser system -dbpassword manager -c 12
-w 18 -q \"select count(*) from v$session where username in not
null\"<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
contact_groups
linuxadmin<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> }<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>However when I m checking my nagios configuration I am
getting the following error<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Error: Service check command 'check_oracle_generic -SID
test2 -dbuser system -dbpassword manager -c 12 -w 18 -q \"select count(*)
from v$session where username in not null\"' specified in service 'oracle
session' for host 'IRIMS_Linux' not defined anywhere!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Also the file in the location
/usr/local/nagios/libexec is an executable file.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Also is there any alternate method to monitor an oracle
server using nagios.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><b><font size=1 color=navy face=Arial><span lang=EN-GB
style='font-size:9.0pt;font-family:Arial;color:navy;font-weight:bold'>Warm
Regards,<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=1 color=navy face=Arial><span lang=EN-GB
style='font-size:9.0pt;font-family:Arial;color:navy;font-weight:bold'>Neha
Sinha<o:p></o:p></span></font></b></p>
<p class=MsoNormal><st1:PersonName w:st="on"><font size=1 color=navy
face=Arial><span style='font-size:9.0pt;font-family:Arial;color:navy'>i-RIMS</span></font></st1:PersonName><font
size=1 color=navy face=Arial><span style='font-size:9.0pt;font-family:Arial;
color:navy'> | i-flex Remote Infrastructure Management Services | i-flex TDMS<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-GB
style='font-size:9.0pt;font-family:Arial;color:navy'>Tel: +91 80 6659 6000 |
Extn: 6441 | Mobile: +91 9986760182<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-GB
style='font-size:9.0pt;font-family:Arial;color:navy'>Fax: +91 80 6666
4005 <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-GB
style='font-size:9.0pt;font-family:Arial;color:navy'>Website: </span></font><a
href="http://www.iflexsolutions.com/iflex/solutions/itinfrastructure.aspx?mnu=p3s4"
title="blocked::http://www.iflexsolutions.com/iflex/solutions/itinfrastructure.aspx?mnu=p3s4
http://www.iflexsolutions.com/iflex/solutions/itinfrastructure.aspx?mnu=p3s4"><font
size=1 face=Arial
title="blocked::http://www.iflexsolutions.com/iflex/solutions/itinfrastructure.aspx?mnu=p3s4"><span
title="blocked::http://www.iflexsolutions.com/iflex/solutions/itinfrastructure.aspx?mnu=p3s4"><span
lang=EN-GB style='font-size:9.0pt;font-family:Arial'>http://www.iflexsolutions.com/iflex/solutions/itinfrastructure.aspx?mnu=p3s4</span></span></font></a><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><img border=0 width=385 height=94 id="_x0000_i1025"
src="cid:image001.gif@01C89AF1.6A87A710"><o:p></o:p></span></font></p>
<p class=MsoNormal style='line-height:150%'><font size=1 face=Arial><span
lang=EN-GB style='font-size:9.0pt;line-height:150%;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'>Warm Regards,<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'>Neha Sinha<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><st1:PersonName w:st="on"><font size=2 color=black
face=Verdana><span style='font-size:10.0pt'>i-RIMS</span></font></st1:PersonName>
| i-flex Remote Infrastructure Management Services | i-flex TDMS<o:p></o:p></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'>Tel: +91 80 6659 6000 | Extn: 6441 | Mobile: +91
9986760182<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'>Fax: +91 80 6666 4005 <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'>Website:
http://www.iflexsolutions.com/iflex/solutions/itinfrastructure.aspx?mnu=p3s4<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 color=black face=Verdana><span
style='font-size:10.0pt'><o:p> </o:p></span></font></p>
</div>
<p></p><p>DISCLAIMER:<br>This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version.</body>
</html>