Nagios and DB Oracle (check_Oracle_instant) | Unix Linux Forums | UNIX and Linux Applications

  Go Back    


UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

Nagios and DB Oracle (check_Oracle_instant)

UNIX and Linux Applications


Tags
centos, database connection, nagios, oracle

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-05-2013
JanePisk JanePisk is offline
Registered User
 
Join Date: Nov 2013
Last Activity: 12 November 2013, 10:11 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Nagios and DB Oracle (check_Oracle_instant)

hi all!
I installed Nagios on my CentOs virtual Machine.
I downloaded the plugin named 'check_oracle_instant' to control oracle services and for monitor the state of DB.
I copied the script in the path /usr/local/nagios/libexex
and i put 'nagios' like owner for the script.

In the path
Code:
/usr/local/nagios/etc/object

, i modified the file 'commands.cfg' adding


Code:
define command {
command_name check_oracle_instant
command_line ...
}

I definied the service in another file and i runned the command

Code:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

No error i received!!!
I restarted nagios, but the script don't works!!!


nagios says :
(Return code of 126 is out of bounds - plugin may be missing)

if i try to run the script with the nagios owner I received

Code:
/usr/bin/perl^M

bad interpreter: No such file or directory


waiting for your help...

ps: my db is a remote db..

Last edited by jim mcnamara; 11-05-2013 at 06:46 AM..
Sponsored Links
    #2  
Old 11-05-2013
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 23 April 2014, 8:57 AM EDT
Location: NM
Posts: 10,066
Thanks: 253
Thanked 760 Times in 714 Posts
You used an editor on a Windows PC, then saved the file to UNIX. See the ^M

That is an unwanted artifact from windows carriage control.

You need to go back to your editor and save the edits you made using UNIX carriage control. If that is not possible then, for any file UNIX you messed with on your PC: change it back to UNIX carriage control with the dos2unix command.
Assuming you have the usual GNU version dos2unix

Code:
dos2unix [filename]

Be sure to check your man page for exact syntax. First.
Sponsored Links
    #3  
Old 11-05-2013
JanePisk JanePisk is offline
Registered User
 
Join Date: Nov 2013
Last Activity: 12 November 2013, 10:11 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ok.... now the error is ..


Code:
bash: /usr/local/nagios/libexec/check_oracle_instant: /usr/bin/perl/: bad interpreter: Not a directory


Last edited by JanePisk; 11-12-2013 at 10:11 AM..
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Nagios check dependent on second nagios server eugenes18t Infrastructure Monitoring 1 06-21-2013 05:23 PM
Configure Nagios for Oracle Duffs22 Red Hat 7 11-25-2011 05:55 AM



All times are GMT -4. The time now is 12:29 PM.