Satellite MongoDB Commands¶
Parsers included in this module are:
MongoDBStorageEngine - command mongo pulp_database --eval 'db.serverStatus().storageEngine'
¶
The satellite mongodb storage engine parser reads the output of
mongo pulp_database --eval 'db.serverStatus().storageEngine'
and
save the storage engine attributes to a dict.
-
class
insights.parsers.satellite_mongodb.
MongoDBStorageEngine
(context, extra_bad_lines=[])[source]¶ Bases:
insights.core.CommandParser
,dict
Read the
mongo pulp_database --eval 'db.serverStatus().storageEngine'
command and save the storage engine attributes to a dict.Sample Output:
MongoDB shell version v3.4.9 connecting to: mongodb://127.0.0.1:27017/pulp_database MongoDB server version: 3.4.9 { "name" : "wiredTiger", "supportsCommittedReads" : true, "readOnly" : false, "persistent" : true }
Examples:
>>> type(satellite_storage_engine) <class 'insights.parsers.satellite_mongodb.MongoDBStorageEngine'> >>> satellite_storage_engine['name'] 'wiredTiger'
Raises:
SkipException: When there is no attribute in the output ParseException: When the storage engine attributes aren't in expected format