Page 2 of 2

Re: Communication error between Oracle and Nagios

Posted: Fri Nov 26, 2021 8:36 am
by pdelgado1989
Hi.

The code for the votedisk check is as follows:

Code: Select all

#!/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
##########################################################

comprueba=$(cat /tmp/fich.tmp | grep CRS-4638)
if [ $? ]
then

case $action in
        "votedisk")
                comando=$(/oracle/app/grid/19300/bin/crsctl query css votedisk)
                case $comando in
                        *"failed"*|*"OFFLINE"*|*"PROC"*)
                                status='CRITICAL'
                                output_msg="Voting disk status check failed!"
                        ;;

                        * )
                                output_msg="Voting disks status check succeeded"
                        ;;
                esac
                output="[$status] $output_msg - $comando"

        ;;
esac
else
output="[CRITICAL] At least one clusterware service is down!\n"
codigo_salida=2
fi
echo -e $output
exit $codigo_salida

Re: Communication error between Oracle and Nagios

Posted: Mon Nov 29, 2021 2:30 pm
by benjaminsmith
Hi,

So that's a pretty simple plugin, and it's parsing the output of the following command.

Code: Select all

/oracle/app/grid/19300/bin/crsctl query css votedisk
Please log in to the remote system as the nrpe user and run the above command and let me know if you get the "Unable to communicate with the Cluster Synchronization Services daemon" error and any other errors shown. It's defaulting to the "Voting disks status check succeeded" case, but it's not getting the proper data back.

Thanks,
Benjamin