Skip to content

Commit

Permalink
Update trento
Browse files Browse the repository at this point in the history
  • Loading branch information
Thr3d committed Oct 10, 2024
1 parent 5b2cfa1 commit 2e9326f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion packaging/suse/supportutils-plugin-trento/trento
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ if rpm -q --quiet trento-web; then

echo "#==[ Postgresql permissions ]=======================#"
echo "#==[ Trento databases ]=============================#"
DB_TRENTO=""
DB_TRENTO_EVENTS=""
DB_WANDA=""
DB_TRENTO_USER=""
DB_WANDA_USER=""
#TODO use detected database names
su - postgres -c 'psql -tlq | cut -d \| -f 1 | grep -wE "trento|trento_event_store|wanda"'
echo
Expand Down Expand Up @@ -233,7 +238,23 @@ fi



# Trento Agent
### Trento Agent ###
#TODO
# collect /etc/machine-id
# /etc/trento/agent.yaml

if rpm -q --quiet trento-agent; then
log_cmd $OF "rpm -qa | egrep 'trento-agent|golang-github-prometheus-node_exporter'"
for RPM in trento-agent golang-github-prometheus-node_exporter
do
rpm_verify $OF $RPM
done
for SERVICE in trento-agent.service prometheus-node_exporter.service
do
log_cmd $OF "systemctl status ${SERVICE}.service"
done
fi


_sanitize_file_trento $OF
echolog Done

0 comments on commit 2e9326f

Please # to comment.