Skip to content
This repository has been 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 opened this issue Mar 30, 2018 · 0 comments

Comments

@b2cc
Copy link

b2cc commented Mar 30, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant