percona-monitoring-plugins icon indicating copy to clipboard operation
percona-monitoring-plugins copied to clipboard

check_election() in pmp-check-mongo.py doesn't do anything useful

Open bernardgardner opened this issue 7 years ago • 0 comments

I think the intention with this function is to compare the previous state to the current state, but what it's actually doing is comparing the current state to itself, so it will always return OK.

https://github.com/percona/percona-monitoring-plugins/blob/master/nagios/bin/pmp-check-mongo.py#L411-L424

bernardgardner avatar Jul 25 '17 20:07 bernardgardner