Bug 2181358 - nagios-plugins missng dbarch option - oracle
Summary: nagios-plugins missng dbarch option - oracle
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nagios-plugins
Version: epel8
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Guido Aulisi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-23 20:15 UTC by marcin.gregorczyk86
Modified: 2023-03-23 20:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2153200 0 unspecified NEW nagios-plugins-oracle 2.3.3-6.el8 missng dbarch option 2023-04-03 19:58:04 UTC

Description marcin.gregorczyk86 2023-03-23 20:15:17 UTC
Description of problem:
Version 2.3.3-4.el8 has dbarch option to check if archiver is working. 
--dbarch)
    archchk=`ps -ef | grep -v grep | grep -c "ora_arc.*_${2}"`
    if [ ${archchk} -ge 1 ] ; then
        echo "${2} OK - ${archchk} ARCH process(es) running"
        exit $STATE_OK
    else
        echo "${2} Archiver is not running"
        exit $STATE_CRITICAL
    fi
    ;;

version 2.3.3-6.el8 has no such function: 
[root@xxx ~]# /usr/lib64/nagios/plugins/check_oracle --dbarch xxx
Usage:
  check_oracle --tns <Oracle Sid or Hostname/IP address>
  check_oracle --db <ORACLE_SID>
  check_oracle --login <ORACLE_SID>
  check_oracle --connect <ORACLE_SID>
  check_oracle --cache <ORACLE_SID> <USER> <PASS> <CRITICAL> <WARNING>
  check_oracle --tablespace <ORACLE_SID> <USER> <PASS> <TABLESPACE> <CRITICAL> <WARNING>
  check_oracle --oranames <Hostname>
  check_oracle --help
  check_oracle --version
[root@aem1 ~]#



Version-Release number of selected component (if applicable):
nagios-plugins-oracle 2.3.3-6.el8

How reproducible:
update nagios-plugins-oracle 2.3.3-6.el8  and test if it is possible to check archiver is running. 

Steps to Reproduce:
1./usr/lib64/nagios/plugins/check_oracle --dbarch xxx
2.
3.

Actual results:
Usage:
  check_oracle --tns <Oracle Sid or Hostname/IP address>
  check_oracle --db <ORACLE_SID>
  check_oracle --login <ORACLE_SID>
  check_oracle --connect <ORACLE_SID>
  check_oracle --cache <ORACLE_SID> <USER> <PASS> <CRITICAL> <WARNING>
  check_oracle --tablespace <ORACLE_SID> <USER> <PASS> <TABLESPACE> <CRITICAL> <WARNING>
  check_oracle --oranames <Hostname>
  check_oracle --help
  check_oracle --version

Expected results:
[root@yyy db]# /usr/lib64/nagios/plugins/check_oracle --dbarch yyy
yyy OK - 4 ARCH process(es) running

Additional info:


Note You need to log in before you can comment on or make changes to this bug.