Настройка monit для мониторинга PostgreSQL

Настраиваю monit для мониторинга PostgreSQL:

check process postgresql with pidfile /var/run/postgresql/12-main.pid 
start program = "/bin/systemctl postgresql start" 
stop program = "/bin/systemctl postgresql stop" 
if failed 
port 5432 
protocol pgsql username "monit" password "123456" database "test" 
then alert

Жалуется она на строчку: protocol pgsql username "monit" password "123456" database "test". Конкретно на username,говорит, что такой синтаксис неправильный. я менял на user, другие кавычки ставил. но воз и ныне там.


Ответы (0 шт):