<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">In your service definition, yuou have
forgotten the "!"  between the 2 parameters</font>
<br><font size=2 face="sans-serif"> </font><font size=3>check_command
              check_oracle!--db</font><font size=4 color=red><b>!</b></font><font size=3>playdb1
</font>
<br>
<br><font size=2 face="sans-serif">Try it with it<br>
<br>
Frank</font>
<br><font size=2><tt>[ENVOYE PAR INTERNET]</tt></font>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>asam30@gmail.com</b> </font>
<br><font size=1 face="sans-serif">Envoyé par : nagios-users-bounces@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">23/05/2008 08:44</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">nagios-users@lists.sourceforge.net</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Nagios-users] check_oracle does not
work</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Hello,</font>
<br><font size=3> </font>
<br><font size=3>I was trying t monitor check_oracle plug in via nrpe daemon
and unsuccessful. I had a problem of "No TNS listener message"
on my nagios console. Now I am trying to monitor without the nrpe deamon.
just simply using nagios plug in check_oracle</font>
<br><font size=3> </font>
<br><font size=3>commands.cfg has,</font>
<br><font size=3> </font>
<br><font size=3>define command{<br>
command_name check_oracle<br>
command_line $USER1$/check_oracle $ARG1$ $ARG2$<br>
}</font>
<br><font size=3>services.cfg has,</font>
<br><font size=3> </font>
<br><font size=3>define service{<br>
        host_name          
            !somemachine1,!sommachine2,somemachine3<br>
        hostgroup_name        
         pay-db,mspl-db<br>
        service_description        
    ORACLE SID<br>
        is_volatile          
          0<br>
        check_period          
         24x7<br>
        check_interval        
         3<br>
        retry_interval        
         3<br>
        max_check_attempts        
     3<br>
        notification_interval      
    4<br>
        notification_period        
    24x7<br>
        notification_options        
   w,u,c,r<br>
        check_command          
    check_oracle!--db playdb1<br>
        contact_groups        
         admins<br>
        }</font>
<br><font size=3>oracle server is runnng on somemachine3 with the SID playdb1.
If I log into remote machine and execute,</font>
<br><font size=3> </font>
<br><font size=3>[nagios@rsomemachine3 libexec]$ ./check_oracle --db playdb1<br>
playdb1 OK - 1 PMON process(es) running<br>
<br>
but from nagios machine,</font>
<br><font size=3> </font>
<br><font size=3>[nagios@lnxtestsrv1 libexec]$ ./check_oracle --db playdb1<br>
playdb1 Database is DOWN</font>
<br><font size=3>[nagios@lnxtestsrv1 libexec]$ ./check_oracle --tns playdb1<br>
Cannot determine ORACLE_HOME for sid playdb1</font>
<br><font size=3> </font>
<br><font size=3>I have set the proper ORACLE_HOME, ORACLE_SID , PATH variable
both on nagios and remote machine well. I aslo enter paramters into tnsnames.ora
on remote machine (where oracle is running) for nagios user.</font>
<br><font size=3> </font>
<br><font size=3>But the problem still persists, </font>
<br><font size=3> </font>
<br><font size=3>can you someone please help in this?</font>
<br><font size=3> </font>
<br><font size=3>Thanks</font>
<br><font size=3>-<br>
shankar</font><font size=2><tt>-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br>
Defy all challenges. Microsoft(R) Visual Studio 2008.<br>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/<br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-users<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>
</tt></font>
<br>