-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add oracle check_configuration_fifteenth_spare_parameter
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
plugins/oracle/check_configuration_fifteenth_spare_parameter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
class check_configuration_fifteenth_spare_parameter(): | ||
""" | ||
check_configuration_fifteenth_spare_parameter | ||
Ensure _fifteenth_spare_parameter is set to 'all'. | ||
The _fifteenth_spare_parameter determines whether the oradebug facility | ||
has been disabled or not. | ||
""" | ||
# References: | ||
# http://www.davidlitchfield.com/AddendumtotheOracle12cCISGuidelines.pdf | ||
# http://blog.red-database-security.com/2013/09/13/fix-for-oradebug-disable-auditing- available-11-2-0-3/ | ||
|
||
TITLE = 'Fifteenth Spare Parameter' | ||
CATEGORY = 'Configuration' | ||
TYPE = 'sql' | ||
SQL = "SELECT c.ksppstvl FROM x$ksppi a, x$ksppsv c WHERE a.indx = c.indx AND a.ksppinm = '_fifteenth_spare_parameter'" | ||
|
||
verbose = False | ||
skip = False | ||
result = {} | ||
|
||
def do_check(self, *results): | ||
|
||
for rows in results: | ||
for row in rows: | ||
if 'all' != row[0]: | ||
self.result['level'] = 'RED' | ||
self.result['output'] = 'Fifteenth Spare Parameter is (%s).' % (row[0]) | ||
else: | ||
self.result['level'] = 'GREEN' | ||
self.result['output'] = 'Fifteenth Spare Parameter is (%s).' % (row[0]) | ||
|
||
return self.result | ||
|
||
def __init__(self, parent): | ||
print('Performing check: ' + self.TITLE) |