percona-monitoring-plugins
percona-monitoring-plugins copied to clipboard
check_election() in pmp-check-mongo.py doesn't do anything useful
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