percona-monitoring-plugins icon indicating copy to clipboard operation
percona-monitoring-plugins copied to clipboard

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

Open b2cc opened this issue 6 years ago • 0 comments

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

b2cc avatar Mar 30 '18 06:03 b2cc