T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Monitorare TYPO3 con Caretaker
David Denicolò <[email protected]>
T3Camp ItaliaL’evento italiano dedicato a TYPO3
Bologna 28/29 Ottobre 2011
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
about me
David DenicolòCTO @ InteRa
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Introduzione
TYPO3 è un sistema complesso
• diverse versioni del core
• migliaia di estensioni
• configurazioni e setup personalizzate
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Monitorare TYPO3
TYPO3 ha aggiornamenti frequenti
• bug e security fixes del core
• aggiornamenti delle estensioni
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker
Cos’è Caretaker
• Un sistema di monitoraggio per osservare diverse installazioni TYPO3.
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker
Come funziona
• 1 punto di osservazione (caretaker server)
• n installazioni di TYPO3 (siti da osservare)
• chiavi RSA (comunicazione criptata)
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker
Come funziona?
• interfacce BE, FE, CLI
• test dal server Caretaker verso le singole instanze
• RSA per i test
• altri test in sviluppo
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker
Come funziona?
• interfacce BE, FE, CLI
• test dal server Caretaker verso le singole instanze
• RSA per i test
• altri test in sviluppo Server Caretaker
FE - BE - CLI
caretaker e risultati test
caretaker instance
...
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker
Come funziona?
• interfacce BE, FE, CLI
• test dal server Caretaker verso le singole instanze
• RSA per i test
• altri test in sviluppo Server Caretaker
FE - BE - CLI
caretaker e risultati test
caretaker instance
...
istanza di TYPO3 (sito da osservare)
caretaker instance
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker
Come funziona?
• interfacce BE, FE, CLI
• test dal server Caretaker verso le singole instanze
• RSA per i test
• altri test in sviluppo Server Caretaker
FE - BE - CLI
caretaker e risultati test
caretaker instance
...
istanza di TYPO3 (sito da osservare)
caretaker instance
RSAPingHTTP
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker: COSA VERIFICA
• ping e http
• estensioni non sicure
• aggiornamenti estensioni
• cerca estensioni tramite “extkey”
• versione di TYPO3
• configurazioni TYPO3_CONF_VARS
• blacklist username e password per gli utenti BE
• presenza file
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Cosa serve
Caretaker server: TYPO3 in locale
• caretaker
• caretaker_instance
• tt_address, css_styled_content
• scheduler
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker
Caretaker server scheduler task
• Testrunner (caretaker)
• TYPO3 Versionnumbers Update (caretaker)
• Update Extension List (em)
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Cosa serve
Istanze di TYPO3 da osservare
• ext caretaker_instance
• chiavi RSA
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Configurazione
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Configurazione
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Nuova instanza TYPO3
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Nuova instanza TYPO3
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Primo test: ping
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Primo test: ping
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Test HTTP
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Test HTTP
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Scheduler
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Scheduler
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Test TYPO3
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Test TYPO3
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Chiavi RSA
1) Generare le chiavi RSA del server caretaker
2) Generare le chiavi RSA dell’instanza
3) inserire la chiave pubblica dell’instanza nel record relativo sul server
4) inserire la chiave pubblica del server nell’instanza
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Inserire le chiavi RSA
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Inserire le chiavi RSA
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Test estensioni non sicure
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Test estensioni non sicure
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
agg. estensioni e scheduler
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
agg. estensioni e scheduler
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
test CONF_VARS
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
test CONF_VARS
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Osservare più istanze
Ampliamo l’osservazione configurando più istanze
Caretaker può osservare più siti contemporaneamente
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Ampliare l’osservazione
Caretaker offre alcuni aiuti per osservare più siti contemporaneamente
tutti i test configurati in precedenza sono utilizzabili per le nuove istanze
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Ampliare l’osservazione
gruppi per i siti
gruppi per i test
un test o un gruppo di test può essere assegnato a tutte le istanze o a solo una parte
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Gruppi di istanze
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Gruppi di istanze
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Gruppi di test
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Gruppi di test
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker: modulo lista
I record di caretaker sono modificabili anche nella modalità lista di TYPO3
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Caretaker: modulo lista
I record di caretaker sono modificabili anche nella modalità lista di TYPO3
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Interfaccia FE
Caretaker ha alcuni moduli Frontend che mostrano i risultati dell’osservazione
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Interfaccia FE
Caretaker ha alcuni moduli Frontend che mostrano i risultati dell’osservazione
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Interfaccia FE
creare una pagina radice
creare un template
includere i template di caretaker
creare una pagina per i dettagli
configurare il pid della pagina dettagli in TS
• caretaker.singleLinkID = 76,0
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Interfaccia FE
inserire i plugin nella pagina
• Caretaker Abstract
• Caretaker Details
• Caretaker Tactical Overview
• Caretaker Test Graph
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
interfaccia FE
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
interfaccia FE
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Sistema di notifiche
Caretaker invia le notifiche via email
• utilizza i dati di tt_address
• si può impostare per singolo sito o per gruppo
• notifiche avanzate con ruoli (non ancora implementato)
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Sistema di notifiche
Caretaker invia le notifiche via email
• utilizza i dati di tt_address
• si può impostare per singolo sito o per gruppo
• notifiche avanzate con ruoli (non ancora implementato)
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Altri test in sviluppo
SNMP
Selenium
TYPO3 Integrity
Sistema di notifiche scalabile
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
riferimenti
http://www.typo3-caretaker.org/
http://forge.typo3.org/projects/extension-caretaker
https://svn.typo3.org/TYPO3v4/Extensions/caretaker
news://news.netfielders.de:119/typo3.projects.caretaker
mercoledì 2 novembre 2011
T3Camp ItaliaL’evento italiano dedicato a TYPO3
TYPO3 CaretakerDavid Denicolò - InteRa srl
Grazie per l’attenzione
• www.intera.it
• twitter: davdenic
• davdenic.tumblr.com
mercoledì 2 novembre 2011