[UPDATE] - TP 05 - '#'

This commit is contained in:
Prof Isen 2022-05-02 21:45:53 +02:00
parent 2f2a283f7e
commit 86011bbacf
3 changed files with 8 additions and 4 deletions

View File

@ -82,9 +82,9 @@ les scripts sont tous stocké dans le répertoire :
* Configuration client :
`$ cat /etc/monithor-client/etc/monithor-client/conf/Card_10.10.10.3-1666.cfg`
`$ cat /etc/monithor-client/etc/monithor-client/conf/sample.cfg
`10.10.10.3:1666#part#/home/isen|50|80`
`#10.10.10.3:1666#part#/home/isen|50|80`
* Explication
@ -98,6 +98,8 @@ SERVEUR exécute : /usr/local/bin/monithor-server.d/part-space.sh /home/isen 50
SERVEUR renvoie les valeur récupéré à CLIENT
Les lignes commençant par '#' sont à supprimer ou à décommenter

View File

@ -19,8 +19,8 @@ if [[ "$1" == "start" ]]
[[ -f /tmp/endmonitor ]] && rm -f /tmp/endmonitor
rm /tmp/Monitor* /tmp/webmonithor &> /dev/null
TotalConfig=$(ls -1 /etc/monithor-client/conf/ | grep grep .*\.cfg| wc-l)
for Conf in $(ls -1 /etc/monithor-client/conf/ | grep grep .*\.cfg)
TotalConfig=$(ls -1 /etc/monithor-client/conf/ | grep .*\.cfg| wc -l)
for Conf in $(ls -1 /etc/monithor-client/conf/ | grep .*\.cfg)
do
screen -dmS ${Conf} bash /usr/local/bin/monithor-client.d/MoniThor ${Conf}
done

View File

@ -15,6 +15,8 @@ echo '<html>
!!!! Initialization !!!!
Warning : check the config /etc/monithor-client/conf/*cfg
' > index.html
while [[ ! -f /tmp/endmonitor ]]