bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
102 stars 40 forks source link

Grafana/Postgres credentials still good? #106

Closed logicallysynced closed 1 year ago

logicallysynced commented 1 year ago

I'm having trouble getting your Grafana panels to work, specifically around the datasource.

Following the instructions in the README, I can access the /irisservices/api/v1/public/postgres JSON which appears exactly as it should, but if I add these details to a datasource in Grafana, it will always timeout. I have confirmed there is no firewall in the way also.

Are these details/credentials still relevant for Cohesity 6.8.1_u3?

bseltz-cohesity commented 1 year ago

Yes the credentials are still valid but in 6.8.1_u3 the Cohesity firewall rules default to Deny for postgres access. In the Cohesity UI, go to Settings -> Networking -> Firewall and change the entry for "Reporting Database" to Allow

logicallysynced commented 1 year ago

I did this also, but still getting timeouts :(

bseltz-cohesity commented 1 year ago

You can also try to connect using the psql command line:

psql --host=192.168.1.193 --port=27999 --username=reporting_read postgres
Password for user reporting_read: ***************

You might need to contact Cohesity support to help you troubleshoot