zabbix-tools / libzbxpgsql

Monitor PostgreSQL with Zabbix
http://cavaliercoder.com/libzbxpgsql/
Other
157 stars 64 forks source link

D-Bus connection problem #147

Open DRVTiny opened 5 years ago

DRVTiny commented 5 years ago

Hi!

I was trying to get database tables list in JSON. and i've got it,. but at the end of the output was:

process 15867: arguments to dbus_connection_unref() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 2776.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted

In fact, Zabbix did no create any items related to tables from the appropriate discovery. So i think this is a problem. My OS is: CentOS Linux release 7.4.1708 (Core) I've installed libzbxpgsql-1.1.0-1.x86_64 rpm package

Maybe i need to compile module by myself?

All in all thank you very much for a good work! This module is the best solution for PostgreSQL monitoring i've ever seen.

cavaliercoder commented 5 years ago

Thanks for the kind feedback! This module does not create any dbus connections (that I know of?) so I suspect the issue may lie elsewhere. Are you perhaps also using my systemd module? That module does connect to dbus.

Compiling the module yourself is usually and safe line of investigation.

DRVTiny commented 5 years ago

Thank you for response!

Yes, i am using your module libzbxsystemd.so too :) After compiling libzbxpg by hand, removing (temporary) suspected libzbxsystemd from LoadModule directives and restarting agent - all works good as i wish. So... now i need to recompile libzbxsystemd and this issue may be closed anyway. Thank you again.!