SERVICE = SUSE.getServiceDInfo(SERVICE_NAME)
		if( len(SERVICE) > 0 and SERVICE['ActiveState'].lower() == 'active' ):
			INFO['Active'] = True
	return INFO

##############################################################################
# Main Program Execution
##############################################################################

SERVER = SUSE.getHostInfo()
if 'ppc64le' in SERVER['Architecture'].lower():
	if( SERVER['DistroVersion'] == 12 and SERVER['DistroPatchLevel'] < 1 ):
		PACKAGE = 'kdump'
		AFFECTED_PACKAGE_VER = '0.8.15-10.1'
		KDUMP = getKdumpInfo()
		if( KDUMP['Active'] ):
			if( Core.compareVersions(SUSE.getRpmInfo(PACKAGE)['version'], AFFECTED_PACKAGE_VER) <= 0 ):
				Core.updateStatus(Core.CRIT, "Triggering kdump will fail to create a crashdump, consider makedumpfile")
			else:
				Core.updateStatus(Core.IGNORE, "Active Kdump crash issue resolved, not applicable")
		else:
			Core.updateStatus(Core.ERROR, "Kdump disabled, not applicable")
	else:
		Core.updateStatus(Core.ERROR, "Outside distribution and patchlevel scope, not applicable")
else:
	Core.updateStatus(Core.ERROR, "Outside architecture scope, not applicable")

Core.printPatternResults()


Exemple #2
0
        section = 'CASAcli -l'
        content = {}
        if Core.getSection(fileOpen, section, content):
                for line in content:
                        if "Found 0 credential set" in content[line]:
                                return True
        return False

##############################################################################
# Main Program Execution
##############################################################################

PACKAGE_NAME = 'glibc'
BROKE_VERSION = '2.11.3-17.62.1'

if( SUSE.packageInstalled(PACKAGE_NAME) ):
        INFO = SUSE.getRpmInfo(PACKAGE_NAME)
#        print "INFO = " + str(INFO)
#        if( INFO['version'] == BROKE_VERSION ):
        if( INFO['version'] == BROKE_VERSION and FIXED_VERSION > INFO['version']):
                if( missingCASACredentials() ):
                        Core.updateStatus(Core.CRIT, "CASA credentials missing")
                else:
                        Core.updateStatus(Core.IGNORE, "CASA credentials present")
        else:
                Core.updateStatus(Core.IGNORE, "Valid version installed, issue fixed")
else:
        Core.updateStatus(Core.ERROR, "Package not installed, abort test")

Core.printPatternResults()
Exemple #3
0
				C3 = 1
			ALL = C1+C2+C3
#			print "C1, C2, C3, ALL = " + str(C1) + ", " + str(C2) + ", " + str(C3) + ": " + str(ALL)
			if ( ALL > 2 ):
				return True
	return False

##############################################################################
# Main Program Execution
##############################################################################

PACKAGE = 'novell-xad-framework'
FIXED_BEFORE = '2.5.6698-0.5.3'
FIXED_AFTER = '2.5.6724-0.5.6'

if( SUSE.packageInstalled(PACKAGE) ):
	INFO = SUSE.getRpmInfo(PACKAGE)
#	print "INFO = " + str(INFO)
	if( FIXED_BEFORE < INFO['version'] and INFO['version'] <= FIXED_AFTER ):
		if( failedauth0xc0000022() ):
			Core.updateStatus(Core.CRIT, "Workstations ACL has not been updated")
		else:
			Core.updateStatus(Core.IGNORE, "No failed auth 0xc0000022 errors found")
	else:
		Core.updateStatus(Core.IGNORE, "Valid version installed, issue fixed")
else:
	Core.updateStatus(Core.ERROR, "Package not installed, aborting test")

Core.printPatternResults()