-
Notifications
You must be signed in to change notification settings - Fork 9
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
Why SSH fails? #17
Comments
The SSH check tests if the barman user is allowed to ssh into postgres instance. That's different to postgres connection. Could you try to run |
Hi hamann, There are not instructions (maybe it is not needed) to connect barman to the postgresql server using the barman user (as the check is expecting in order to be successful). Or am I missing something? |
Yes, you're right!. Some time has passed since I last setup a backup server. If your ssh_command in the barman.conf looks something like this ssh_command = ssh [email protected] and you have a unix What do you get if you run |
Server dev-gb-gal-pg11-01: Configuration file entry: |
Should we consider the -a ssh obsolete? |
I see! There's no line anymore like This is what my $ barman -v
1.3.3
$ barman check foo
Server foo:
ssh: OK
PostgreSQL: OK
archive_mode: OK
archive_command: OK
directories: OK
retention policy settings: OK
backup maximum age: OK (no last_backup_maximum_age provided)
compression settings: OK
minimum redundancy requirements: OK (have 2 backups, expected at least 0) So until that's fixed, just leave the |
Thank you hamann! |
Hi,
Thank you for the plugin. I have Barman 2.5 installed and I can successfully:
ssh [email protected] to mine postgresql 11 instance.
However I can't explain why the plugin fails to do the same:
barman@dev-gb-mgt-pg-01:/usr/lib/nagios/plugins/./check-barman.rb -a ssh -s dev-gb-gal-pg11-01
SSH connection failed!
I can however connect using action pg:
barman@dev-gb-mgt-pg-01:/usr/lib/nagios/plugins/./check-barman.rb -a pg -s dev-gb-gal-pg11-01
PG connection ok
Thank you.
The text was updated successfully, but these errors were encountered: