pluggin check_oracle_instant does not work
Posted: Wed Jan 29, 2020 1:44 am
hI,
I have this problem and I need your help
Nagios notifies:
ERROR: SERVICE NOTIFICATION: nagiosadmin;ora1;ORACLE:check_login_health;CRITICAL;notify-service-by-email;
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_oracle_instant, ...)
failed. errno is 2: No such file or directory
But it seems that it works:
[nagios@localhost ~]$ perl /usr/local/nagios/libexec/check_oracle_instant -H 172.17.9.15
Bareword found where operator expected at (eval 6) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 10) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 11) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 17) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 21) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 22) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 28) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 32) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 33) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 39) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 43) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 44) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 50) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 54) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 55) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 61) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 65) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 66) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 72) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 76) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 77) line 1, near "3 attempts"
(Missing operator before attempts?)
status and health of ORACLE is OK
nagios@localhost local]$ ls -la
total 0
drwxr-xr-x. 13 root root 145 ene 16 13:37 .
drwxr-xr-x. 13 root root 155 ene 16 08:54 ..
drwxr-xr-x. 2 root root 6 abr 11 2018 bin
drwxr-xr-x. 2 root root 6 abr 11 2018 etc
drwxr-xr-x. 2 root root 6 abr 11 2018 games
drwxr-xr-x. 2 root root 6 abr 11 2018 include
drwxr-xr-x. 2 root root 6 abr 11 2018 lib
drwxr-xr-x. 2 root root 6 abr 11 2018 lib64
drwxr-xr-x. 2 root root 6 abr 11 2018 libexec
drwxrwxrwx. 9 nagios nagios 94 ene 16 14:56 nagios
drwxr-xr-x. 2 root root 6 abr 11 2018 sbin
drwxr-xr-x. 5 root root 49 ene 16 08:54 share
drwxr-xr-x. 2 root root 6 abr 11 2018 src
nagios@localhost nagios]$ PRTG/prtg@"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=172.17.9.15)(Port=1521)))(CONNECT_DATA=(SID=PRUEBA11)))
>
>
Thank you.
I have this problem and I need your help
Nagios notifies:
ERROR: SERVICE NOTIFICATION: nagiosadmin;ora1;ORACLE:check_login_health;CRITICAL;notify-service-by-email;
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_oracle_instant, ...)
failed. errno is 2: No such file or directory
But it seems that it works:
[nagios@localhost ~]$ perl /usr/local/nagios/libexec/check_oracle_instant -H 172.17.9.15
Bareword found where operator expected at (eval 6) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 10) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 11) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 17) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 21) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 22) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 28) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 32) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 33) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 39) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 43) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 44) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 50) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 54) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 55) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 61) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 65) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 66) line 1, near "3 attempts"
(Missing operator before attempts?)
Bareword found where operator expected at (eval 72) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 76) line 1, near "<proxy> ::"
(Missing operator before ::?)
Bareword found where operator expected at (eval 77) line 1, near "3 attempts"
(Missing operator before attempts?)
status and health of ORACLE is OK
nagios@localhost local]$ ls -la
total 0
drwxr-xr-x. 13 root root 145 ene 16 13:37 .
drwxr-xr-x. 13 root root 155 ene 16 08:54 ..
drwxr-xr-x. 2 root root 6 abr 11 2018 bin
drwxr-xr-x. 2 root root 6 abr 11 2018 etc
drwxr-xr-x. 2 root root 6 abr 11 2018 games
drwxr-xr-x. 2 root root 6 abr 11 2018 include
drwxr-xr-x. 2 root root 6 abr 11 2018 lib
drwxr-xr-x. 2 root root 6 abr 11 2018 lib64
drwxr-xr-x. 2 root root 6 abr 11 2018 libexec
drwxrwxrwx. 9 nagios nagios 94 ene 16 14:56 nagios
drwxr-xr-x. 2 root root 6 abr 11 2018 sbin
drwxr-xr-x. 5 root root 49 ene 16 08:54 share
drwxr-xr-x. 2 root root 6 abr 11 2018 src
nagios@localhost nagios]$ PRTG/prtg@"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=172.17.9.15)(Port=1521)))(CONNECT_DATA=(SID=PRUEBA11)))
>
>
Thank you.