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
Not asking for password and can't connect to psql #309
Comments
This is because you forgot to specify which hosts/IPs will be forced to authenticate. By default none is (which looks like not much sense to me right now). Starting from the 3.13.0 version there are two new options inside the So, just define the option I'll modify the main configuration file to include the option Sorry for the inconveniences.
Please, make sure your PostgreSQL is listening in the port 5432 at localhost. |
Pgsql is working fine on that port. I even created a script to test it I can also access it on local machine and on the outside if I open port 5432 My pg_hba.conf: Is there any place after monitorix log in which I can see more info on the error? |
|
Can you, please, paste the Also, the output of |
Doing this didn't asks me for authentication, instead got an 403.
I also tried giving a wrong password but it didn't give any extra info besides the error on my first post |
You must declare that option inside the
You might want to add the |
Ah men, my bad, sorry making you lose time on this one.
Which command should I add this? |
Monitorix, as many other tools, have an environment file located in You must configure it like this: |
|
Still the same info as before. I'm checking the file /var/log/monotorix. Is this the right file? |
You should get much more information in |
Looks the same as before
Ubuntu 18.04, and I installed monitorix following the tutorial on my first post I partially solved the problem. In the file pgsql.rm line 207 |
The PostgreSQL module was added in this 3.13.0 version, perhaps it needs some fixings, but it worked finely here. I think that the user you configured only have permission for the Hmm, I see an extra comma at the end of your database name in the option This should be harmless, but it's better to not be there. |
|
You are indeed correct. On the pgsql config file I used the database owner and not the postgres user. |
…built-in server to bypass Basic Authentication when the option 'hosts_deny' is not defined #309
|
Many thanks for reporting that issue. |
Hi. I followed this tutorial https://en.admininfo.info/c-mo-instalar-y-configurar-monitorix-en-ubuntu-18
After setting up everything I found that when I go the built-in server it never asks for a password even thought I set it.
I did change
enabled = yand also created the password usingsudo htpasswd -d -c /var/lib/monitorix/htpasswd adminThen I tried setting up postgres by enabling the graph and changing the database name, user and password which lead to me having to install DBD::Pg module. After all this I check the logs and it shows:
gsql::pgsql_update: Cannot connect to PostgreSQL 'localhost:5432'.ERROR: while updating /var/lib/monitorix/pgsql.rrd: /var/lib/monitorix/pgsql.rrd: expected timestamp not found in data source from NThanks
Nuno
The text was updated successfully, but these errors were encountered: