It seems there has been either a change with MongoDB 6 and instance state in a replication set, or a misconception (or I don't get the correct intention):
As it's defined in https://git.zabbix.com/projects/AP/r...t_status.go#31 the MongoDB plugin expects to get only
and
in the rs.status() JSON. However, offline nodes now get other states, at least
I have seen. This check https://git.zabbix.com/projects/AP/r..._status.go#126 then assumes everything is fine, because the node is not
but it should rather check for
.
As it's defined in https://git.zabbix.com/projects/AP/r...t_status.go#31 the MongoDB plugin expects to get only
Code:
state: 1
Code:
state: 2
Code:
state: 8
Code:
state: 2
Code:
node.state != statePrimary
Comment