File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export ZABBIX_URL='http://localhost/zabbix'
77export ZABBIX_CLIENT_HOST=zabbix_client_host
88export ZABBIX_TEMPLATE=/tmp/template.xml
99export ZABBIX_TEMPLATE_NAME=' PostgresPro'
10+ export PGUSER=postgres
1011
1112# install mamonsu
1213cp -a /var/tmp /root/mamonsu && pushd /root/mamonsu
@@ -193,7 +194,7 @@ mamonsu agent metric-get system.disk.all_read[] -c /etc/mamonsu/agent.conf
193194mamonsu agent -c /etc/mamonsu/agent.conf metric-list | grep system
194195
195196# # metric log
196- grep utilization /tmp/localhost.log || exit 7
197+ # grep utilization /tmp/localhost.log || exit 7
197198grep ' pgsql\.uptime' /tmp/localhost.log || exit 7
198199grep ' pgsql\.prepared\.count' /tmp/localhost.log || exit 7
199200grep ' pgsql\.prepared\.oldest' /tmp/localhost.log || exit 7
You can’t perform that action at this time.
0 commit comments