ss_get_by_ssh.php MongoDB mongodb_parse() bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Monitoring Plugins |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi, there's a bug in the mongodb_parse() function when parsing the output of serverStatus for operation counters on secondary members of replicaset.
The function is doing a regexp for lines that have insert, query, etc
preg_
$result[
preg_
$result[
preg_
$result[
preg_
$result[
preg_
$result[
preg_
$result[
but, when serverStatus is run on secondaries, the server return counters for local operations and replicated operations, like:
},
},
and only the replicated operations are beign parsed because they are the first match.
In our case, this is not what we want, because we have the replicaset configured to read from secondaries and write to primary, and we can't see queries (reads) on the secondary because how the parser is implemented.
One solution could be another graph for replicated operations.
Sorry for my english :), thanks!
tags: | added: mongodb |
tags: | added: cacti |
Changed in percona-monitoring-plugins: | |
status: | New → In Progress |
importance: | Undecided → Medium |
milestone: | none → 1.0.4 |
Changed in percona-monitoring-plugins: | |
status: | In Progress → Fix Committed |
Changed in percona-monitoring-plugins: | |
status: | Fix Committed → Fix Released |