Skip to content

ZABBIX : Installation

ZABBIX : Installation published on Aucun commentaire sur ZABBIX : Installation

Comment installer ZABBIX : Site officiel

zabbix_logo

 

 

– serveur:

1 : Serveur:

– wget http://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix-release/zabbix-release_2.2-1+wheezy_all.deb
ou wget http://repo.zabbix.com/zabbix/2.4/debian/pool/main/z/zabbix-release/zabbix-release_2.4-1+wheezy_all.deb
– dpkg -i zabbix-release_2.2-1+wheezy_all.deb
– apt-get update
– apt-get install zabbix-server-mysql zabbix-frontend-php

-> creation de la base

– nano /etc/zabbix/apache.conf

– […]
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value date.timezone Europe/Paris
[…]

– service apache2 restart
– http://ip-address/zabbix – suivre installation
– http://ip-address/zabbix ‘admin / zabbix)
2 : Agent sur machine serveur

– apt-get install zabbix-agent

– nano /etc/zabbix/zabbix_agentd.conf

– Server=127.0.0.1
– ServerActive=127.0.0.1

– client Linux :

– wget http://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix-release/zabbix-release_2.2-1+wheezy_all.deb
– dpkg -i zabbix-release_2.2-1+wheezy_all.deb
– apt-get install zabbix-agent
– nano /etc/zabbix/zabbix_agentd.conf
– Server=IP DU SERVEUR ZABBIX
– ListenPort=10050
– ListenIP=IP AGENT ZABBIX
– ServerActive=IP DU SERVEUR ZABBIX
– Hostname=NOM DE L HOTE (hostname)
– /etc/init.d/zabbix-agent restart

– client Windows :

– Télécharger l’agent Windows

  • Mettre le fichier de config et l’exécutable dans c:\zabbix
  • Modifier le fichier de conf :
    • In the config file.
      Server = Mettre IP du serveur Zabbix
      # ListenPort = 10050 (ou autre en fonction …)
      ServerActive = 127.0.0.1
  • Excuter dans une console : Afin de créer un service
    • C:\Zabbix\zabbix_agentd.exe –config C:\Zabbix\zabbix_agentd.win.conf –install
    • Démarrer le service

Sécuriser son Apache

Sécuriser son Apache published on Aucun commentaire sur Sécuriser son Apache

Comment sécuriser son Apache ?

  • Editer et remplacer dans : nano /etc/apache2/conf-available/security.conf


ServerTokens Prod

ServerSignature Off

  • Dans le fichier /etc/php5/apache2/php.ini, modifiez les options suivantes comme suit:
    • Mettre sur Off : expose_php off
  • Installer mod-security et libapache2-mod-evasive :
    • apt-get install libapache2-mod-security2
    • apt-get install libapache2-mod-evasive
  • Installer la protection Anti DDOS
    • Modifier : nano /etc/apache2/apache2.conf
      • MaxClients 150
        KeepAlive On
        MaxKeepAliveRequests 100
        KeepAliveTimeout 10

Reboot or not reboot ! That is the question

Reboot or not reboot ! That is the question published on Aucun commentaire sur Reboot or not reboot ! That is the question

Comment savoir s’il faut rebooter après une mise à jour ?

  • Vérifier le nombre de mise à jour :
    • cd /var/run
    • cat updates-available
  • Connaitre la liste des mises à jour :
    • apt-get --just-print upgrade
  • Reboot ou pas apres mise à jour :
    • cat /var/run/reboot-required

Primary Sidebar