Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu authored and Ubuntu committed Mar 19, 2024
2 parents 29a6bd7 + 12364c5 commit fbcdfe9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1927,4 +1927,4 @@
"uid": "e12394be-6c26-4c19-a089-f69930b17e7e",
"version": 75,
"weekStart": ""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2151,4 +2151,4 @@
"uid": "dHpbWBP4z",
"version": 43,
"weekStart": ""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1242,4 +1242,4 @@
"uid": "IziFPI8Vk",
"version": 16,
"weekStart": ""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1052,4 +1052,4 @@
"uid": "DBUc8IU4k",
"version": 19,
"weekStart": ""
}
}
8 changes: 4 additions & 4 deletions linux_service/start_moneo_services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ fi

procs=("net_exporter" "node_exporter")

if lspci | grep -iq NVIDIA ; then
if lspci | grep -iq NVIDIA; then
procs+=("nvidia_exporter")
fi

if [[ -n $PublisherMethod ]] ; then
if [[ -n $PublisherMethod ]]; then
if [ "$PublisherMethod" == "geneva" ] || [ "$PublisherMethod" == "azure_monitor" ]; then
echo "PublisherMethod is valid: $PublisherMethod"
procs+=("metrics_publisher")
Expand All @@ -38,7 +38,7 @@ if [[ -n $PublisherMethod ]] ; then
fi

function proc_check(){
CHECK=`ps -eaf | grep /tmp/moneo-worker/`
CHECK=$( ps -eaf | grep /tmp/moneo-worker/)
WITH_MANAGED_PROM=$1
for substring in "${procs[@]}"; do
if [[ $CHECK == *"$substring"* ]]; then
Expand All @@ -51,7 +51,7 @@ function proc_check(){

if [[ -n $WITH_MANAGED_PROM && $WITH_MANAGED_PROM = true ]];
then
if [[ $(sudo docker ps -a | grep prometheus) ]] ; then
if [[ $(sudo docker ps -a | grep prometheus) ]]; then
echo "Prometheus docker containers running."
else
echo "Prometheus failed to start. Please ensure you have the proper user managed identity assigned to your VMSS/VM."
Expand Down

0 comments on commit fbcdfe9

Please sign in to comment.