Search found 6 matches
- Fri Nov 26, 2021 8:36 am
- Forum: Nagios XI
- Topic: Communication error between Oracle and Nagios
- Replies: 11
- Views: 1250
Re: Communication error between Oracle and Nagios
Hi. The code for the votedisk check is as follows: #!/bin/bash ########################################################## export ORACLE_HOME=/oracle/app/db/19300 export ORACLE_BASE=/oracle/app/base nagios_exit_codes=('UNKNOWN', 3, 'OK', 0, 'WARNING', 1, 'CRITICAL', 2) status='OK' ok=1 action=$1 ####...
- Wed Nov 24, 2021 7:10 am
- Forum: Nagios XI
- Topic: Communication error between Oracle and Nagios
- Replies: 11
- Views: 1250
Re: Communication error between Oracle and Nagios
Hi. My system looks like this: [root@bdx1edara plugins]# ls -la total 444 drwxr-xr-x. 3 root root 267 nov 24 12:57 . drwxr-xr-x. 3 root root 21 sep 2 2020 .. -rw-r--r-- 1 root root 8532 nov 9 17:04 1 -rwxrwxr-x 1 root root 9842 nov 12 13:20 check_crs -rwxrwxr-x 1 root root 8730 nov 12 12:04 check_cr...
- Fri Nov 19, 2021 4:26 am
- Forum: Nagios XI
- Topic: Communication error between Oracle and Nagios
- Replies: 11
- Views: 1250
Re: Communication error between Oracle and Nagios
Hi. It was installed via rpm package. The packages installed are: nagios-common-4.4.5-1.el8.x86_64.rpm nrpe-4.0.3-1.el8.x86_64.rpm nagios-plugins-2.3.3-4.el8.x86_64.rpm nagios-plugins-disk-2.3.3-4.el8.x86_64.rpm nagios-plugins-load-2.3.3-4.el8.x86_64.rpm nagios-plugins-procs-2.3.3-4.el8.x86_64.rpm n...
- Thu Nov 18, 2021 4:43 am
- Forum: Nagios XI
- Topic: Communication error between Oracle and Nagios
- Replies: 11
- Views: 1250
Re: Communication error between Oracle and Nagios
Hi. The user that we have defined in /etc/nagios/nrpe.cfg to execute the scripts is nrpe: # NRPE USER # This determines the effective user that the NRPE daemon should run as. # You can either supply a username or a UID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd...
- Wed Nov 17, 2021 5:08 am
- Forum: Nagios XI
- Topic: Communication error between Oracle and Nagios
- Replies: 11
- Views: 1250
Re: Communication error between Oracle and Nagios
Hi @ssax. Following your indications, I have executed in bbddmachine with the user nrpe (equivalent to the user nagios). The output is the following, which is successful execution: [root@bbddmachine plugins]# sudo su - nrpe [nrpe@bbddmachine plugins]$ sh ./script_prueba.sh votedisk [OK] Voting disks...
- Thu Nov 11, 2021 2:55 pm
- Forum: Nagios XI
- Topic: Communication error between Oracle and Nagios
- Replies: 11
- Views: 1250
Communication error between Oracle and Nagios
I'm trying to adapt some Perl scripts to Bash to run them in Nagios XI. The complete script, so far, is this one: . /home/oracle/.profile_RAC ORACLE_HOME=/oracle/app/grid/19300 ORACLE_BASE=/oracle/app/base nagios_exit_codes=('UNKNOWN', 3, 'OK', 0, 'WARNING', 1, 'CRITICAL', 2) status='OK' ok=1 action...