Running check_swarm.py --swarm works on manager nodes, but it fails on non-manager nodes with the incorrect message "Node not in a swarm". If you promote the non-manager node to a manager, it reports OK. If you demote some other node from being a manager, that node now fails with the aforementioned message.
I think this is due to a misunderstanding of the swarm API. It's looking for the wrong thing in the JSON, imho. (Not every node in a swarm should be a manager once you get more than 3 or 5 nodes.)