summaryrefslogtreecommitdiff
path: root/ansible-supervision/roles/do-audit/files/get_info.sh
diff options
context:
space:
mode:
authorAntoine Ouvrard <antoine.ouvrard@zextras.fr>2023-03-09 17:29:50 +0100
committerAntoine Ouvrard <antoine.ouvrard@zextras.fr>2023-03-09 17:29:50 +0100
commit3fe3b6e90a664edc44aa4772d7d00e4f343f0467 (patch)
tree14344de813b916b3bfd681b629a6f74ac83f2e98 /ansible-supervision/roles/do-audit/files/get_info.sh
parentbe5eb0822b5a248502c7562234d55e3d85660825 (diff)
readd directory
Diffstat (limited to 'ansible-supervision/roles/do-audit/files/get_info.sh')
-rw-r--r--ansible-supervision/roles/do-audit/files/get_info.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/ansible-supervision/roles/do-audit/files/get_info.sh b/ansible-supervision/roles/do-audit/files/get_info.sh
new file mode 100644
index 0000000..bd3783d
--- /dev/null
+++ b/ansible-supervision/roles/do-audit/files/get_info.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+echo "====Informations générales===="
+echo "Nombre de CPU: " $(grep processor /proc/cpuinfo | wc -l)
+echo 'Mémoire RAM en Go: ' $(echo "scale=2; $(grep MemTotal /proc/meminfo |awk '{print $2}') / 1024^2" | bc)
+echo "OS: " $(cat /etc/redhat-release)
+echo "Noyau: " $(uname -r)
+echo "Zimbra: " $(sudo -u zimbra /opt/zimbra/bin/zmcontrol -v)
+echo ""
+echo "====Arborescence des périphérique de stockage===="
+lsblk -fe7
+echo ""
+echo "====Utilisation du système de fichier===="
+df -H
+echo ""
+echo "====Information concernant les cartes réseau===="
+ip a
+echo ""
+echo "====Liste des zimlets installées sur ce serveur===="
+awk '/Installed Zimlets in LDAP:/{exit}1' < <(sudo -u zimbra /opt/zimbra/bin/zmzimletctl listzimlets) \ No newline at end of file