Zabbix监控MongoDB数据库状态
# echo "db.serverStatus()" | mongo adminMongoDB shell version: 1.8.1
connecting to: admin
->db.serverStatus()
{
"host" : "mongo163",
"version" : "1.8.1",
"process" : "mongod",
"uptime" : 451749,
"uptimeEstimate" : 281868,
"localTime" : ISODate("2011-05-23T07:42:01.990Z"),
"globalLock" : {
"totalTime" : 451749911134,
"lockTime" : 50304542058,
"ratio" : 0.11135484660467028,
"currentQueue" : {
"total" : 0,
"readers" : 0,
"writers" : 0
},
"activeClients" : {
"total" : 1,
"readers" : 1,
"writers" : 0
}
},
"mem" : {
"bits" : 64,
"resident" : 21790,
"virtual" : 63679,
"supported" : true,
"mapped" : 58328
},
"connections" : {
"current" : 3,
"available" : 19997
},
"extra_info" : {
"note" : "fields vary by platform",
"heap_usage_bytes" : -1519420976,
"page_faults" : 179599
},
"indexCounters" : {
"btree" : {
"accesses" : 2324660,
"hits" : 2324619,
"misses" : 41,
"resets" : 0,
"mi***atio" : 0.00001763698777455628
}
},
"backgroundFlushing" : {
"flushes" : 7528,
"total_ms" : 64933966,
"average_ms" : 8625.659670563231,
"last_ms" : 10583,
"last_finished" : ISODate("2011-05-23T07:41:10.754Z")
},
"cursors" : {
"totalOpen" : 1,
"clientCursors_size" : 1,
"timedOut" : 65
},
"network" : {
"bytesIn" : 31194795281,
"bytesOut" : 24269782063,
"numRequests" : 254375763
},
"repl" : {
"ismaster" : true
},
"opcounters" : {
"insert" : 38301524,
"query" : 1770,
"update" : 35909520,
"delete" : 10486310,
"getmore" : 42387,
"command" : 169619319
},
"asserts" : {
"regular" : 0,
"warning" : 0,
"msg" : 0,
"user" : 6,
"rollovers" : 0
},
"writeBacksQueued" : false,
"note" : "run against admin for more info",
"ok" : 1
页:
[1]