mzupan/nagios-plugin-mongodb — pull request #49 by MMore (2012-07-09 16:37:02+00:00)
Title: Automatic creation of last_primary_server in mongodb using an ID

As I understood, I would have create the record for storing the last primary server manually. Afterwards it can be updated.
I changed the update action by using the ID to create this record automatically and update it if it already exists.

I tested it in my environment with MongoDB `2.0.6` and it works fine. But please check it again to be on the safe side.