******************* GoFAST : Exploitation ******************* +--------+------------------------------------------------------+ | V1.0 | - Version initiale | +--------+------------------------------------------------------+ | V1.1 | - Ajout d'une partie détaillée sur les sauvegardes | +--------+------------------------------------------------------+ | V1.2 | - Ajout de la structure des répertoires (annexe 1) | +--------+------------------------------------------------------+ .. CAUTION:: Pour rappel l'abonnement GoFAST comprend la supervision et le management de la couche applicative dans son ensemble. Ce guide est à destination de l'infogérent ou du client qui souhaite *comprendre* l'exploitation de GoFAST mais en aucun cas effectuer des actions sans aval de CEO-Vision .. contents:: VM 1 ==== Démarrage --------- Les composants sont démarrés soit par service soit par un script ``/opt/ceo-vision/startup.sh``. Les composants lancés par le script sont les suivants: - LibreOffice - Alfresco - Bonita - Solr Les services démarrés au boot: :: [root@gofast3-integration ~]# systemctl list-unit-files --state=enabled UNIT FILE STATE auditd.service enabled chronyd.service enabled crond.service enabled dbus-org.fedoraproject.FirewallD1.service enabled firewalld.service enabled getty@.service enabled httpd.service enabled irqbalance.service enabled microcode.service enabled mysqld.service enabled ntpdate.service enabled php-fpm.service enabled postfix.service enabled rsyslog.service enabled slapd.service enabled sshd.service enabled sysstat.service enabled systemd-readahead-collect.service enabled systemd-readahead-drop.service enabled systemd-readahead-replay.service enabled tomcat@alfresco.service enabled tomcat@bonita.service enabled tuned.service enabled rpcbind.socket enabled default.target enabled multi-user.target enabled nfs-client.target enabled remote-fs.target enabled 28 unit files listed. Processus --------- La plateforme GoFAST est un ensemble technologique dont les principaux composants sont les suivants: :: [root@gofast ~]# htop Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||11.0G/11.6G] Tasks: 94, 386 thr, 100 kthr; 1 running Swp[|||||||||||||||||||||||||||||||||||||| 1.63G/3.87G] Load average: 1.29 0.94 0.55 Uptime: 123 days(!), 01:52:21 PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 1 root 20 0 189M 3016 1476 S 0.0 0.0 1h26:52 /usr/lib/systemd/systemd --switched-root --system --deserialize 21 31997 root 20 0 6642M 947M 76 S 0.7 8.0 1h56:44 ├+ java -server -Xms1G -Xmx1G -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+Us 30805 root 20 0 183M 0 0 S 0.0 0.0 0:01.07 ├+ /usr/bin/newrelic-daemon --agent --pidfile /var/run/newrelic-daemon.pid --logfile /var/log/newrelic/newrelic-daemon.log --p 30797 root 20 0 488M 13692 8040 S 0.0 0.1 1:45.00 ├+ php-fpm: master process (/etc/php-fpm.conf) 29617 davfs2 20 0 184M 6700 460 S 0.0 0.1 11:08.05 ├─ mount.davfs -o rw uid=admin localhost:8080/alfresco/webdav /mnt/alfresco_webdav/ 27323 root 20 0 288M 216 204 S 0.0 0.0 0:03.93 ├+ /opt/libreoffice5.3/program/oosplash --accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstal 20621 ldap 20 0 1648M 114M 9912 S 13.3 1.0 7h33:29 ├+ /usr/sbin/slapd -u ldap -h ldapi:/// ldaps:/// ldap:/// 16905 root 20 0 249M 2524 672 S 0.0 0.0 1:57.46 ├+ /usr/sbin/httpd -DFOREGROUND 16859 mysql 20 0 3820M 1514M 1392 S 15.3 12.8 12h00:35 ├+ /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid 15833 tomcat 20 0 9694M 3693M 1708 S 16.0 31.2 3h16:35 ├+ /usr/lib/jvm/jre/bin/java -server -Xss1024K -Xms2G -Xmx4G -XX:MaxPermSize=512M -XX:NewSize=1G -XX:-DisableExplicitGC -XX:+U 14933 tomcat 20 0 7889M 1082M 1868 S 0.7 9.1 1h06:36 ├+ /usr/lib/jvm/jre/bin/java -server -Xss1024K -Xms1G -Xmx3G -XX:MaxPermSize=512M -XX:NewSize=512m -XX:+UseConcMarkSweepGC -XX 14567 root 20 0 123M 420 312 S 0.0 0.0 2:23.65 ├+ /usr/sbin/crond -n 10356 chrony 20 0 98M 692 484 S 0.0 0.0 0:22.64 ├─ /usr/sbin/chronyd 6389 newrelic 20 0 16896 4 0 S 0.0 0.0 0:00.00 ├+ /usr/sbin/nrsysmond -c /etc/newrelic/nrsysmond.cfg -p /var/run/newrelic/nrsysmond.pid 2633 root 20 0 89892 168 84 S 0.0 0.0 9:33.71 ├+ /usr/libexec/postfix/master -w 2521 memcached 20 0 626M 256M 108 S 0.0 2.2 9h21:36 ├+ /usr/bin/memcached -u memcached -p 11211 -m 512 -c 1024 1027 root 20 0 540M 536 156 S 0.0 0.0 16:20.33 ├+ /usr/bin/python -Es /usr/sbin/tuned -l -P 1025 root 20 0 103M 340 224 S 0.0 0.0 10:52.29 ├+ /usr/sbin/sshd -D 1012 root 20 0 644M 7612 7016 S 0.0 0.1 3h18:30 ├+ /usr/sbin/rsyslogd -n 741 root 20 0 427M 1380 636 S 0.0 0.0 8:06.11 ├+ /usr/sbin/NetworkManager --no-daemon 726 root 20 0 323M 1732 612 S 0.0 0.0 7:58.52 ├+ /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid 712 root 20 0 107M 8 4 S 0.0 0.0 0:00.01 ├─ /sbin/agetty --noclear tty1 linux 703 root 20 0 24324 972 772 S 0.0 0.0 28:54.14 ├─ /usr/lib/systemd/systemd-logind 696 dbus 20 0 98480 836 384 S 0.0 0.0 49:38.94 ├+ /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation 695 root 20 0 396M 2520 1144 S 0.0 0.0 2h13:27 ├+ /usr/bin/vmtoolsd 693 root 20 0 19320 396 260 S 0.0 0.0 29:34.11 ├─ /usr/sbin/irqbalance --foreground 685 polkitd 20 0 515M 1224 536 S 0.0 0.0 12:32.97 ├+ /usr/lib/polkit-1/polkitd --no-debug 668 root 16 -4 55416 268 160 S 0.0 0.0 9:22.34 ├+ /sbin/auditd -n 539 root 20 0 47372 368 268 S 0.0 0.0 0:02.01 ├─ /usr/lib/systemd/systemd-udevd 533 root 20 0 198M 0 0 S 0.0 0.0 0:00.03 ├─ /usr/sbin/lvmetad -f 511 root 20 0 46612 9692 9288 S 1.3 0.1 6h20:14 └─ /usr/lib/systemd/systemd-journald 2 root 20 0 0 0 0 S 0.0 0.0 0:12.51 kthreadd 30429 root 20 0 0 0 0 D 0.7 0.0 0:01.43 ├─ kworker/u12:0 29534 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ├─ kworker/0:1H 29141 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ├─ kworker/2:1 29139 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ├─ kworker/u12:2 28808 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ├─ kworker/1:2 28806 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ├─ kworker/0:2 28263 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ├─ kworker/3:0 27999 root 20 0 0 0 0 S 0.0 0.0 0:00.16 ├─ kworker/4:0 27003 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ├─ kworker/3:1 A noter que l’ensemble de ces services sont configurés pour démarrer automatiquement lors du boot du serveur. Pour cela la ligne ``/opt/ceo-vision/startup.sh`` a été ajoutée dans le fichier ``/etc/rc.local``. PHP-FPM ^^^^^^^ PHP-FPM - PHP FastCGI Process Manager est utilisé pour la communication entre un serveur web et PHP :: [root@gofast3-integration ~]# ps aux | grep php-fpm apache 1767 0.3 1.8 629420 149660 ? S Aug17 31:00 php-fpm: pool www apache 22586 0.2 1.3 613004 103984 ? S Aug22 6:41 php-fpm: pool www apache 22614 0.2 1.1 599200 88228 ? S Aug22 6:48 php-fpm: pool www apache 22615 0.2 1.3 613068 104980 ? S Aug22 6:40 php-fpm: pool www apache 22627 0.2 1.2 610080 100572 ? S Aug22 6:33 php-fpm: pool www apache 22628 0.2 1.3 617524 105540 ? S Aug22 6:22 php-fpm: pool www apache 22629 0.2 1.3 616392 111448 ? S Aug22 6:31 php-fpm: pool www apache 22630 0.2 1.2 609740 97352 ? S Aug22 6:22 php-fpm: pool www apache 26294 0.3 1.5 612580 119868 ? S Aug21 15:51 php-fpm: pool www apache 29923 0.3 2.0 639760 161928 ? S Aug16 39:37 php-fpm: pool www root 31962 0.0 0.2 499364 20116 ? Ss Aug16 0:51 php-fpm: master process (/etc/php-fpm.conf) apache 31973 0.3 1.9 629672 157408 ? S Aug16 39:23 php-fpm: pool www apache 31974 0.3 2.0 637556 162912 ? S Aug16 40:08 php-fpm: pool www apache 31975 0.3 1.9 633776 157328 ? S Aug16 41:29 php-fpm: pool www apache 31976 0.3 1.8 635772 149040 ? S Aug16 39:07 php-fpm: pool www apache 31977 0.3 1.8 631004 148060 ? S Aug16 38:53 php-fpm: pool www apache 31978 0.3 2.0 633684 160404 ? S Aug16 41:02 php-fpm: pool www apache 31979 0.3 1.9 628936 154268 ? S Aug16 39:25 php-fpm: pool www apache 32069 0.3 1.8 627132 150484 ? S Aug16 40:25 php-fpm: pool www apache 32071 0.3 2.0 639808 161776 ? S Aug16 40:48 php-fpm: pool www apache 32092 0.3 2.0 637796 163692 ? S Aug16 41:13 php-fpm: pool www apache 32136 0.3 2.0 637556 165724 ? S Aug16 40:36 php-fpm: pool www apache 32137 0.3 2.0 641136 161816 ? S Aug16 40:52 php-fpm: pool www apache 32139 0.3 2.1 647620 171280 ? S Aug16 38:53 php-fpm: pool www Serveur Web Apache ^^^^^^^^^^^^^^^^^^ Afin que la partie «Portail » de GoFast, qui est basé sur une technologie PHP et notamment le CMS Drupal, puisse fonctionner, il faut qu’elle soit hébergée sur un serveur Apache. En production, de nombreux processus sont créés afin de répondre à chacune des requêtes http effectuées par les clients. Ces processus sont nommés ``/usr/sbin/httpd``:: [root@gofast3-integration ~]# ps aux | grep httpd apache 3452 0.0 0.2 581704 16880 ? S 14:14 0:01 /usr/sbin/httpd -DFOREGROUND apache 4229 0.0 0.2 581740 16820 ? S 14:22 0:00 /usr/sbin/httpd -DFOREGROUND apache 4261 0.0 0.2 581744 16812 ? S 14:22 0:00 /usr/sbin/httpd -DFOREGROUND apache 4414 0.0 0.2 581712 16876 ? S 14:24 0:00 /usr/sbin/httpd -DFOREGROUND apache 5246 0.0 0.2 581668 16512 ? S 14:35 0:00 /usr/sbin/httpd -DFOREGROUND apache 5247 0.0 0.2 581652 16572 ? S 14:35 0:00 /usr/sbin/httpd -DFOREGROUND apache 5248 0.0 0.2 581772 16868 ? S 14:35 0:00 /usr/sbin/httpd -DFOREGROUND apache 5351 0.0 0.2 581740 16620 ? S 14:36 0:00 /usr/sbin/httpd -DFOREGROUND apache 5462 0.0 0.2 581712 16672 ? S 14:38 0:00 /usr/sbin/httpd -DFOREGROUND apache 5844 0.0 0.2 581712 16616 ? S 14:44 0:00 /usr/sbin/httpd -DFOREGROUND root 32021 0.0 0.2 580656 23384 ? Ss Aug16 1:11 /usr/sbin/httpd -DFOREGROUND Serveurs Web Tomcat ^^^^^^^^^^^^^^^^^^ La partie «Entrepôt documentaire » est assurée par le logiciel Alfresco, qui est une application développée en Java, ce qui nécessite un serveur web Tomcat pour fonctionner. De même la partie «Gestion de processus » est assurée par le logiciel Bonitasoft, qui est une application développée en Java, ce qui nécessite également un serveur web Tomcat pour fonctionner:: [root@gofast3-integration ~]# ps aux | grep tomcat tomcat 23103 14.5 30.2 7071740 2410928 ? Ssl Aug22 211:52 /usr/lib/jvm/jre/bin/java -javaagent:/usr/share/tomcat/newrelic/newrelic.jar -server -Xss1024K -Xms1G -Xmx3G -XX:MaxPermSize=512M -XX:NewSize=1G -XX:-DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -XX:ParallelGCThreads=4 -XX:+UseParNewGC -Djavax.net.ssl.keyStore=/etc/pki/keystore -Djavax.net.ssl.keyStorePassword=a4030ma -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/var/lib/tomcats/alfresco -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/var/lib/tomcats/alfresco/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start tomcat 23282 0.0 0.0 229540 864 ? Sl Aug22 0:00 /opt/libreoffice5.3/program/oosplash -accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstallation=file:///var/alfresco/alf_data/oouser -headless -nocrashreport -nofirststartwizard -nologo -norestore tomcat 23297 99.9 0.3 709592 26972 ? Sl Aug22 1458:13 /opt/libreoffice5.3/program/soffice.bin -env:UserInstallation=file:///var/alfresco/alf_data/oouser -accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -headless -nocrashreport -nofirststartwizard -nologo -norestore tomcat 23299 0.0 0.0 0 0 ? Z Aug22 0:00 [soffice.bin] root 29294 0.4 6.2 4298500 495868 ? Sl Aug16 40:58 java -server -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -Xloggc:/opt/solr/server/logs/solr_gc.log -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/opt/solr/server -Dsolr.solr.home=/opt/solr/server/solr -Dsolr.install.dir=/opt/solr -Xss256k -javaagent:/usr/share/tomcat/newrelic/newrelic.jar -jar start.jar -XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983 /opt/solr/server/logs --module=http tomcat 31681 1.1 15.2 6935996 1216136 ? Ssl Aug16 114:10 /usr/lib/jvm/jre/bin/java -javaagent:/usr/share/tomcat/newrelic/newrelic.jar -server -Xss1024K -Xms1G -Xmx3G -XX:MaxPermSize=512M -XX:NewSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -Dbonita.home=/var/bonita -Dsysprop.bonita.db.vendor=mysql -Dbtm.root=/var/lib/tomcats/bonita/ -Dbitronix.tm.configuration=/var/lib/tomcats/bonita/conf/bitronix-config.properties -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/var/lib/tomcats/bonita -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/var/lib/tomcats/bonita/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start Base de données MySQL ^^^^^^^^^^^^^^^^^^^^^ Les deux composants précédents (Drupal et Alfresco) nécessitent chacun de posséder une base de données permettant leur bon fonctionnement. Ces bases de données sont hébergées par MySQL. La base de données utilisée par Drupal possède le nom ``drupal`` La base de données utilisée par Alfresco se nomme ``alfresco`` En production, cela se traduit par deux processus: :: /bin/sh /usr/bin/mysqld\_safe –datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql :: /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql--plugin- dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/va/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock :: [root@gofast3-integration ~]# ps aux | grep mysqld mysql 31915 4.5 12.6 2831048 1012492 ? Sl Aug16 447:22 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid Moteur de recherche Solr ^^^^^^^^^^^^^^^^^^^^^^^^ L’indexation et la recherche au sein de la plate-forme GoFAST sont assurées par Apache Solr. En production, cela se traduit par un processus qui se nomme ``java –jar start.jar``:: [root@gofast3-integration ~]# ps aux | grep start.jar root 29294 0.4 6.1 4298500 493744 ? Sl Aug16 41:03 java -server -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -Xloggc:/opt/solr/server/logs/solr_gc.log -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/opt/solr/server -Dsolr.solr.home=/opt/solr/server/solr -Dsolr.install.dir=/opt/solr -Xss256k -javaagent:/usr/share/tomcat/newrelic/newrelic.jar -jar start.jar -XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983 /opt/solr/server/logs --module=http Serveur LDAP ^^^^^^^^^^^^ Les différents Utilisateurs et Espaces collaboratifs de la plate-forme GoFAST sont stockés au sein d’un annuaire LDAP, utilisé par les différents composants de la plate-forme. En production, cela se traduit par un processus ``/usr/sbin/slapd``:: [root@gofast3-integration ~]# ps aux | grep slapd ldap 30084 0.2 1.1 1235156 95212 ? Ssl Aug07 50:37 /usr/sbin/slapd -u ldap -h ldapi:/// ldaps:/// ldap:/// Composant de prévisualisation de documents (LibreOffice) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Tous les documents (compatibles) stockés dans la plate-forme GoFAST possèdent une prévisualisation au format PDF. Cette transformation est assurée par le logiciel LibreOffice. En production cela se traduit par un processus nommé ``/opt/libreoffice4.1/program/soffice.bin``:: [root@gofast3-integration ~]# ps aux | grep libreoffice root 23081 0.0 0.0 295076 856 ? Sl Aug22 0:00 /opt/libreoffice5.3/program/oosplash --accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstallation=file:///var/alfresco/alf_data/oouser --headless --nocrashreport --nofirststartwizard --nologo --norestore root 23102 2.7 2.0 1598084 162032 ? Sl Aug22 42:07 /opt/libreoffice5.3/program/soffice.bin -env:UserInstallation=file:///var/alfresco/alf_data/oouser --accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager --headless --nocrashreport --nofirststartwizard --nologo --norestore tomcat 23282 0.0 0.0 229540 864 ? Sl Aug22 0:00 /opt/libreoffice5.3/program/oosplash -accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstallation=file:///var/alfresco/alf_data/oouser -headless -nocrashreport -nofirststartwizard -nologo -norestore tomcat 23297 99.9 0.3 709592 26972 ? Sl Aug22 1508:19 /opt/libreoffice5.3/program/soffice.bin -env:UserInstallation=file:///var/alfresco/alf_data/oouser -accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -headless -nocrashreport -nofirststartwizard -nologo -norestore Notifications par email ^^^^^^^^^^^^^^^^^^^^^^^ Le module ``gofast_mail_queue`` sert aux notifications envoyées par email. Il implémente ``hook_cron()`` pour envoyer les emails en attente. Cron ---- Certaines tâches peuvent être automatisées en utilisant cron (gestionnaire des tâches Linux). Une tâche cron c'est une commande définie dans le fichier ``/etc/crontab`` qui est executée à un moment précis. Sur la VM1, il y a les entrées suivantes: - ``* * * * * apache wget -O - -q -t 1 http://localhost/gofast-cron.php`` - le cron ``gofast-cron.php`` s'exécute chaque minute et gère les requêtes entrantes pour déclencher des tâches cron - ``* * * * * root /opt/ceo-vision/restart_soffice.sh`` - le script ``restart_soffice.sh`` s'exécute chaque minute et s'il détect un problème avec LibreOffice, il le redémarre - ``31 23 * * * root /opt/ceo-vision/backup.sh daily`` - le script de backup s'exécute une fois par jour (à 23h31) et sauvergarde les données dans ``/var/backup`` - ``31 23 * * * root /var/www/d7/scripts/versions-script.sh > /var/www/d7/scripts/versions-script_output.txt`` - le script récuperant les versions des composants s'exécute une fois par jour (à 23h31) et remplit le fichier ``versions-script_output.txt`` avec la sortie du script Logs ---- Les fichiers logs sont très importants car lorsqu'il y a un problème ils permettent de voir tous les événements du système. La plupart des logs sont situés dans ``/var/logs/``. Ci-dessous sont les emplacements des logs sur la VM1: +----------------------------------------------------+--------------------------------------------------+ | /var/log/php-fpm/ | PHP-FPM | +----------------------------------------------------+--------------------------------------------------+ | /etc/httpd/logs/ | Apache | +----------------------------------------------------+--------------------------------------------------+ | /var/lib/tomcats/alfresco/logs/ | Alfresco | +----------------------------------------------------+--------------------------------------------------+ | /var/lib/tomcats/bonita/logs/ | Bonita | +----------------------------------------------------+--------------------------------------------------+ | /var/log/mysqld.log | | +----------------------------------------------------+ | | /var/log/mysql.log | MySQL | +----------------------------------------------------+ | | /var/log/mysql-slow.log | | +----------------------------------------------------+--------------------------------------------------+ | /opt/solr/server/logs/ | Solr | +----------------------------------------------------+--------------------------------------------------+ | /var/log/ldap.log | LDAP | +----------------------------------------------------+--------------------------------------------------+ | -\ | LibreOffice | +----------------------------------------------------+--------------------------------------------------+ | /var/log/aide/aide.log | Aide | +----------------------------------------------------+--------------------------------------------------+ |/var/www/d7/sites/default/files/logs | Alfresco_script | +----------------------------------------------------+--------------------------------------------------+ | /var/log/audit/audit.log | Audit | +----------------------------------------------------+--------------------------------------------------+ | /var/log/boot.log | Boot | +----------------------------------------------------+--------------------------------------------------+ | /var/log/clamd.log | Clamd | +----------------------------------------------------+--------------------------------------------------+ | /var/log/dmesg | Dmesg | +----------------------------------------------------+--------------------------------------------------+ | /var/log/drupal | Drupal | +----------------------------------------------------+--------------------------------------------------+ | /var/www/d7/sites/default/files/logs/error_js.log | Error_js | +----------------------------------------------------+--------------------------------------------------+ | /var/log/firewalld | Firewalld | +----------------------------------------------------+--------------------------------------------------+ | /var/log/freshclam.log | Freshclam | +----------------------------------------------------+--------------------------------------------------+ | /var/log/grubby | Grubby | +----------------------------------------------------+--------------------------------------------------+ | /var/log/grubby_prune_debug | Grubby_prune_debug | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Logrotate | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Python | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Rsyslogd | +----------------------------------------------------+--------------------------------------------------+ | /var/log/secure | Secure | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Server | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Setroubleshoot | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Sudo | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Systemd | +----------------------------------------------------+--------------------------------------------------+ | /var/log/messages | Systemd-logind | +----------------------------------------------------+--------------------------------------------------+ | /var/log/tomcat/catalina.out | Tomcat | +----------------------------------------------------+--------------------------------------------------+ | /var/log/wtmp | Wtmp | +----------------------------------------------------+--------------------------------------------------+ | /var/log/zabbix/zabbix_agentd.log | Zabbix_agentd | +----------------------------------------------------+--------------------------------------------------+ VM 2 ==== Démarrage --------- Les services démarrés au boot: :: [centos@gofast-comm-ceov-prod ~]$ systemctl list-unit-files --state=enabled UNIT FILE STATE auditd.service enabled autovt@.service enabled chronyd.service enabled cloud-config.service enabled cloud-final.service enabled cloud-init-local.service enabled cloud-init.service enabled crond.service enabled dbus-org.fedoraproject.FirewallD1.service enabled dbus-org.freedesktop.NetworkManager.service enabled dbus-org.freedesktop.nm-dispatcher.service enabled firewalld.service enabled getty@.service enabled irqbalance.service enabled kdump.service enabled microcode.service enabled NetworkManager-dispatcher.service enabled NetworkManager.service enabled postfix.service enabled postgresql.service enabled rsyslog.service enabled sshd.service enabled systemd-readahead-collect.service enabled systemd-readahead-drop.service enabled systemd-readahead-replay.service enabled tuned.service enabled default.target enabled multi-user.target enabled remote-fs.target enabled runlevel2.target enabled runlevel3.target enabled runlevel4.target enabled 32 unit files listed. Processus --------- L'ensemble de tous les processus qui tournent sur la VM2 est ci-dessous: :: [centos@gofast-comm-ceov-prod ~]$ ps aux | cat USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 123032 3572 ? Ss Aug16 0:17 /usr/lib/systemd/systemd --switched-root --system --deserialize 21 root 337 0.0 0.3 61804 25936 ? Ss Aug16 0:19 /usr/lib/systemd/systemd-journald postfix 353 0.0 0.0 89260 3948 ? S 14:58 0:00 cleanup -z -t unix -u postfix 357 0.0 0.0 89216 4512 ? S 14:58 0:00 local -t unix root 366 0.0 0.0 43132 1832 ? Ss Aug16 0:00 /usr/lib/systemd/systemd-udevd root 373 0.0 0.0 114560 1752 ? S /etc/pki/tls/certs/gofast.pem .. warning:: Cela fait, redémarrez le service "nginx" sur la comm et le service "httpd" sur la main. MAIN : .. code-block:: systemctl restart httpd COMM : .. code-block:: systemctl restart nginx Testez les services (coo-édition, cadena coo-édition, visio, chat), corriger si ceux-ci ne fonctionnent plus. Correctifs à faire (si mauvais fonctionnement des services) : ======================================================================== Problème connexion non automatique au chat Element (COMM): ------------------------------------------------------------ Commandes à exécuter sur la plateforme COMM (en ssh) pour corriger le problème de connexion non automatique au chat. .. code-block:: cd /opt/gofast-comm echo "Enter GoFAST MAIN URL (ex: gofast.ceo-vision.com):" read url_main java InstallCert $url_main cp jssecacerts /etc/pki/ca-trust/extracted/java/cacerts systemctl restart ma1sd Problème Cadenas OnlyOffice et non sauvegarde du document (MAIN): ------------------------------------------------------------------- Commandes à exécuter sur la plateforme MAIN (en ssh) pour corriger le problème de cadenas qui reste fermé à la sortie d'une coédition OnlyOffice (attention ce problème provoque que toute édition sur le document ne sera pas sauvegardé) .. code-block:: cd /opt echo "Enter GoFAST COMM URL (ex: gofast-comm.ceo-vision.com):" read url_comm java InstallCert $url_comm cp jssecacerts /etc/pki/ca-trust/extracted/java/cacerts echo "Warning la GED va redémarrer" sleep 2 systemctl restart tomcat@alfresco Problème Certificats Visio (COMM): ------------------------------------- Commandes à exécuter sur la plateforme COMM (en ssh) pour corriger le problème de visio-conférence à trois minimum impossible. (avec flux vidéo): .. warning:: La GED va redémarrer suite à ces commandes, faites en sorte de vous assurer que personne ne travaille dessus. .. code-block:: server_name=`grep -oP "(?<=domain: \').+?(?=\')" /etc/ma1sd/ma1sd.yaml` echo "secret_key = mot de passe dans /etc/jitsi/jicofo/config " read secret_key rm -Rf /var/lib/prosody/* cd /opt/gofast-comm/update systemctl stop crond prosodyctl stop systemctl stop jibri systemctl stop jitsi-videobridge systemctl stop jicofo #Generate certificates prosodyctl cert generate auth.${server_name} .. warning:: Entrez les informations suivantes pour la commande "prosodyctl cert generate auth.${server_name}" : 4096 FR COMM GOFAST XMPP auth.${server_name} xmpp@auth.${server_name} .. code-block:: mv /var/lib/prosody/auth.$server_name.crt /var/lib/prosody/auth.crt mv /var/lib/prosody/auth.$server_name.key /var/lib/prosody/auth.key mv /var/lib/prosody/auth.$server_name.cnf /var/lib/prosody/auth.cnf ln -sf /var/lib/prosody/auth.crt /etc/pki/ca-trust/source/anchors/auth.crt update-ca-trust extract -f prosodyctl start prosodyctl register videobridge auth.$server_name $secret_key prosodyctl register jibri auth.$server_name $secret_key prosodyctl register recorder recorder.$server_name $secret_key prosodyctl register focus auth.$server_name $secret_key prosodyctl mod_roster_command subscribe focus.$server_name focus@auth.$server_name systemctl start jibri systemctl start jitsi-videobridge sleep 3 systemctl start jicofo systemctl start crond Politique de backup CEO-Vision ============================== Machines hébergées chez Outscale -------------------------------- Les machines des clients hébergées chez Outscale sont sauvegardées sur le repository de CEO-Vision chez OVH. +--------+----------------+-------------------------------------+ | Repo | OVH | +--------+----------------+-------------------------------------+ | Politique de rétention | 7 points de restauration | +--------+----------------+-------------------------------------+ | Planification | Chaque jour à 20h30 | +--------+----------------+-------------------------------------+ Machines hébergées chez Scaleway -------------------------------- Les machines des clients hébergées chez Scaleway sont sauvegardés sur le repository de CEO-Vision chez OVH. +--------+----------------+-------------------------------------+ | Repo | OVH | +--------+----------------+-------------------------------------+ | Politique de rétention | 7 points de restauration | +--------+----------------+-------------------------------------+ | Planification | Chaque jour à 04:00 | +--------+----------------+-------------------------------------+ Machines hébergées chez OVH -------------------------- Les machines des clients hébergées chez OVH sont sauvegardés sur le repository de CEO-Vision chez Scaleway. +--------+----------------+-------------------------------------+ | Repo | SCAL | +--------+----------------+-------------------------------------+ | Politique de rétention | 7 points de restauration | +--------+----------------+-------------------------------------+ | Planification | Chaque jour à 20:30 | +--------+----------------+-------------------------------------+