Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

pmp-check-mongo check_cannary_test throws FAILED: 'float' object has no attribute 'total_seconds' #88

Open
@b2cc

Description

@b2cc

Hi!

I get an error using the pmp-check-mongo when I try to use the check_cannary_test

  • Error Message
/usr/lib64/nagios/plugins/pmp-check-mongo.py -H localhost -P 27017 -u <user> -p <password> -A check_cannary_test -W 3 -C 5 -d test1 -c test -q "db.test.find()"

CRITICAL - Collection test1.test  query FAILED: 'float' object has no attribute 'total_seconds'

User and password are fine, I can login and other check method work as well - only the cannary test fails.

The Database and collection exists:

PRIMARY> db.test
PRIMARY> db.test.find()
{ "_id" : ObjectId("5abce2eda51d76dba2666695"), "name" : "test1" }
  • Server
    OS: Debian 9 stretch 64 bit, python 2.7
    pmp-nagios-plugins from percona repository:
Package: percona-nagios-plugins
Version: 1.1.8-1.stretch
New: yes
State: installed
...
Maintainer: Percona LLC

regards and thanks in advance,
david

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions