+ check_pg_hba $MONITOR_DB_NAME $MONITOR_DB_USER
+ check_user_and_db $MONITOR_DB_NAME $MONITOR_DB_USER
+ check_monitor_schema_and_data
+
+ check_pg_hba $ZABBIX_DB_NAME $ZABBIX_DB_USER
+ check_user_and_db $ZABBIX_DB_NAME $ZABBIX_DB_USER
+
+ if [ -n "$WROTE_PG_CONFIG" ] ; then
+ # NOTE: restart db to enable access by users granted above.
+ service plc restart postgresql
+ fi
+
+ check_zabbix_schema_and_data
+ check_zabbix_templates_and_import