-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: detect connection error #8
Comments
I've implemented in shell script parameter:
but I think it's a good idea to have information that zabbix failed do connect to postgres at all. |
Seems like a reasonable request. It could be implemented in a few different ways:
I'm inclined towards Return code should definitely be |
Some background info about my setup: I'm NOT using "systemd" timer as you proposed but I'm triggering update by requesting "special zabbix" item which run script thats send values by zabbix_sender. In my opinion it's better idea because I can play with frequency of running measures from zabbix server without modification any files on host.
|
Now I'm fighting with:
psycopg2.OperationalError: FATAL: remaining connection slots are reserved for non-replication superuser connections"
Maybe it could be a good idea to catch that exception and "send to zabbix" some:
"alarm"?
Or at least return other return code on connection error?
The text was updated successfully, but these errors were encountered: