MongoDB variable port2 not interpreted

Bug #937018 reported by Laurent Neveu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Monitoring Plugins
Fix Released
Medium
Baron Schwartz

Bug Description

In the script "ss_get_by_ssh.php", when we use the function "mongodb_cmdline" the variable port2 is not interpreted.

Lines number 1316 to 1318 are :
function mongodb_cmdline ( $options ) {
   return "echo \"db._adminCommand({serverStatus:1, repl:2})\" | mongo ";
}

and should be :
function mongodb_cmdline ( $options ) {
   return "echo \"db._adminCommand({serverStatus:1, repl:2})\" | mongo --port ".$options[port2];
}

Regards,
Laurent Neveu

Tags: mongodb

Related branches

affects: percona-toolkit → percona-monitoring-plugins
summary: - [DOC] variable port2 not interpreted
+ MongoDB variable port2 not interpreted
description: updated
Changed in percona-monitoring-plugins:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 1.0.0
assignee: nobody → Baron Schwartz (baron-xaprb)
tags: added: mongodb
removed: doc
Changed in percona-monitoring-plugins:
status: Confirmed → Fix Committed
Changed in percona-monitoring-plugins:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.