Communication error between Oracle and Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pdelgado1989
Posts: 6
Joined: Thu Nov 11, 2021 2:52 pm

Re: Communication error between Oracle and Nagios

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Communication error between Oracle and Nagios

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked