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 /usr/local/nagios/etc/object, i modified the file ‘commands.cfg’ adding

define command {
command_name check_oracle_instant
command_line …

I definied the service in another file and i runned the command
/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
/usr/bin/perl^M bad interpreter: No such file or directory

waiting for your help… :?


a clarification…
my db is a remote db…