How to use check_mongodb.py to connect replicaset with selfsigned certificate

This forum was archived to /woltlab and is now in read-only mode.
  • I'm strugling with the check_mongodb.py plugin.

    On the commandline I'am able to connect like this:
    $ mongo --ssl --sslAllowInvalidCertificates --host rs0/192.168.2.158,192.168.2.159

    Option "replicaset" does not exist.

    object Service "mongodb" {

    import "generic-service"

    check_command = "mongodb"

    vars.mongodb_host = "192.168.2.158"

    vars.mongodb_action = "connections"

    vars.mongodb_action = "replication_lag"

    host_name = "xnet158.radmz.local"

    zone = "xnet158.radmz.local"

    }