Avatar
🏃
achat android animaux anticor apple arnaque association biot bluesky bricolage canoe canyoning ccesoir chateau choisir-velo cinema citation citroen-c8 commission configuration consomacteur course courses courses-dobstacles cuisine cv-pro dawarich debian dell depannage dev docker don dsi désinformation economie facebook fedora firewall football garmin gohugo gravel hebergement home-assistant hugo humhub inondation internets iphone-ipad jeux justice kali linux livre loisirs mac marathon mastodon mecanique misere momes-dazur musee-loisirs nice-matin non-classe oracle padel petition peugeot-206 peugeot-307 peugeot-406 photos php politique postgresql pro proxmox randonnee randonnée raspberry redhat redis republique-numerique reseaux-sociaux sante-internets sante-loisirs securite-internets self-hosted ski ski de randonnée sortir soutien spam sport-biot-2 sports stockage theatre trail twitter/x twitter/x ubuntu velo velo-biot velo-sur-biot via-ferrata ville villes visites voyage vtt windows wordpress wordpress-fr xbox élections municipales 0189xxxxxx 10-km 10-miles 10km 12-km 140 2014 2kv 307 406 406-hdi 920 920xt 930 935 abus acpi actif azur adb adhesion adsl agay age air aix-en-provence alcatel allianz allianz-riviera alpe-dhuez alpes-maritimes alpilles alternateur amap amazon amp anaconda analyse analytics android animaux anote anthea anthea-fr antibes anticor antutu apache2 apn apple applepi-baker april arcep arfi arnaque aroooo aseb-am asics association assurantprotection.fr asterisk asus asus-zenfone atos atsemtex audit auron authentique-fr autoroute avis awesome-note awk awox baignade balade balade-fr barcelonnette barnier base-de-donnee bash basket-ball belt benchmark bento bentomedia betrail biellette bigreen bilan bilan professionnel bilan sportif bilan-fr bio biot biot-fr biot-vernir bitdefender bkl-l09 blacklist blender blockchain-fr blog blogger-com bluesky bonifacio bormes-les-mimosas bot brague braun breil-sur-roya brew bricolage brm brm200 bruxelles bueil bug c cadolive cagnes-sur-mer caille caisse-depargne calanques calencon calendrier camargue cannes cannes-fr canoe cantabrie canyon canyoning cap-dantibes cardio carlit carnaval-de-nice carnaval-de-nice-fr carros carroz casa castellane castellar cat catamaran caussols ccbot ccc cdisplay ceinture cevennes chamonix chateau chaussures cheiron choisir velo cinema circuit cisco citation citrix classement claudebot clignotant cloud cloud-act cloud-personnel cnews codegouv col connecté col de greoliere col-connecte col-de-la-madone col-de-turini colmars competition compression configuration connect consomacteur conspiracy watch convergence-azureenne coreos coronarivus coronavirus corse courmes course course-a-pied course-dobstacle course-dobstacles course-dorientation course-fr coursegoules courses-2 covid covid-19 cozy-cloud cozytouch cpu critique cross cuda cuenod curl cursor dansup dark-web data dataforseo dawarich dawarich.app day-journal debian decathlon decodex deletefacebook dell dello-sciliar-catinaccio delphi demi-yasso derby-de-la-meije developpement developper-tools-access diag diario diaro diaspora digikam digiposte distribution docker docteur-gsm-com dolceacqua dolomites domolites domotique don dourgne dsi duranus débats désinformation ecologie economie education el-capitan elasticsearch elk elm327 email endurain enphase ensol entreprises entretien epidemie escape-game escarene escroquerie espagne estrosi europe eurovelo evasion-fiscale evolution-a-faire exiftool export eze f-f-a facebook facture facture-deau-fr fakenews falicon fan fayence fedora fenix 7 ffa ffmpeg filebeat fillion fillon film-bon film-moyen filtre-a-gazole filtre-pollen fire firewall fittrackee folder foodwatch footing for forerunner forerunner-935 forerunner-945 forerunner-955 forgejo framasoft framasphere france culture france-3 france-soir fraude fraude-fiscale free free-mobile freebox frejus funchal gafams gaillac garageband garmin garmin-connect gavarnie gcc gelas geodes gilette git github glance gmail goaccess gohugo google google-analytic google-analytics google-search-console gopro gorbio gotify goudurix gouffre gourdon gourdon-fr gptbot gpx grafana grasse gravel graxx greoliere greolieres greolieres-les-neiges grub gréolières gtest guillon hadopi haproxy hautpoul hebergement high-trail-vanoise hintertux hipay hipay-com historique-des-dons holdup home-assistant homeassistant hommage honeywell honor hop howto htv huawei hugo huile-direction-assiste humhub ia ibm iconservicesagent ie ign ilonse imagento imageoptim imagneto immich imovie import impots indent injecteur inondation insee insta360 installation internet intimidation ipad ipad-argus iphone iphoto iptables isola-2000 issue italie itra itunes j2s jaime-courir java javascript jeedom jenkins jetpack jeux jeux-de-sophia jeux-de-sophia-antipolis joplin joseph journey jpegoptim juns jupyter justice kali karer-pass kayak kernel kibana kies-app kilometre-vertical kisskissbankbank kiwix klaxon kodi kokopelli korben la-brague la-capelette la-grave-de-peille la-poste la-quadrature-du-net la-vie lac-de-vens langage lantosque lapeyre laquadrature latemar lateral lautrec lcd le-monde leon les-cammazes les-visiteurs-du-soir let's encrypt lets-encrypt levens libreoffice libvirt lightmd linux liste livebox livre logement logiciel logstash loi-numerique lombricomposteur luberon lulu mac mac-os macjournal macos macos-high-sierra madere malade malware mamp mandelieu maps marathon marche mariadb markdown marseille mastodon matomo matomo-analytics matosdon matrix mazamet mcafee mecanique mediapart meduses meije meltdown memo menuiserie mercantour merci-michel mermaid meta metricbeat microsoft-teams migration misere mkdocs module mogrify mojave monsanto montagne-noire montagne-noire-fr montauroux motionpro mougins moulinet mouton msf mud-day mud-day-fr munin mysql mytf1 mytf1-fr mywellness myzone naiad naiad2020 natation natation-libre nature nautipolis neige netamo netatmo nextcloud nginx nice nice-fr nice-matin notes nsinvalidargumentexception ntfs nuxit nvidia objective-see obsolescence-programmee obstacle occ occasion odbii ok-google ollama olvid onedrive oopad open open-data open-sky open-source open-source-experience opencv opendata opensky opensky-a-valbonne opio oracle-linux orange origine-cycles orsiere osm france osmc oss-paris osx osxp osxp2024 osxp2025 outlook owncloud pac paca padel panorama panoramique paradisdiscount-com parc-du-paradou parc-naturel-dello-sciliar-catinaccio paris pascal paul paypal pdf peillon peinture petition peugeot peugeot-307 phare photo photon photos photovoltaique php phpnet phpnet-org pichauris pigeon pinterest pip piscine planning play-store plongee plu plugin pluviometrie pneu politique pollution polylang postfix postgresql ppri prejuges preparation print prix programmation prom-classic prometheus provence proxmox pssh publicite purge pyrenees python python3 qnap quartier qwant raid rameur-dinterieur rancheros randonnee randonnee-2 randonnees randonnée raspberry recette recette-fr redbysfr redhat redis redmi reparartion reparation reseau-sociaux resideo rest-api resultat reunion revue-de-presse rgpd rimplas rock64 root roquebilliere roubion rouret row rsyslog rt-france rubitrack rue89 saint-amancet-fr saint-avit saint-fereol saint-jeannet saint-vallier-de-thiey saintetic salade-nicoise-fr salle-serveur salon samsung san-remo sante sauter scop sd-card securite security.txt sed selection self-hosted semaine-de-la-critique semi semi-marathon semi-marathon-fr sentier seranon server-git serveur service-public siagne sidobre sierra signal sip ski ski de randonnée ski-de-randonnee skred skype slack smart-home smartphone smsc snap sommets sondage sondage-en-ligne sophia-antipolis soreze soreze-fr sortie-en-famille sospel soual spam spartan spartan-race spartan-race-fr spartian spectre sport sql sqlite ssd stable-diffusion stade station-meteo statistique statistiques stockage strava suisse suivi summary surf svn swap swarm syslog systemd tanneron tapform tarif tarn tarn-fr taxes telerama television temp temperature template templier tende tennis tennis-de-table tensorflow test testeur tests textwrangler theatre theoule-sur-mer thorenc thunderbird thunderbirds tignes tor tour-des-sangliers tour-du-sanglier tourisme tourrettes-sur-loup trail trail-de-la-vesubie transposh transvesubienne trashbusters travail travaux trial trifecta turbie tux tuxedo tuxedo-computer tuya twitter tyrol ubaye ubuntu ufc-que-choisir ultra uniq unknown unroot update urbain urban-trail urbanbiker utcam utelle utmb vae valbonne valeo vallee-des-merveilles valloire vallon-des-horts valmasque var vaucluse vaultwarden vauplane vegay velo velotaf vence ventoux veolia verdon vesubie vidange video villeneuve-loubet vim virtual-box virtualbox virus vma vmware vol voyage vpn vps vtc vtt wanderer wannacry webalizer wget whatsapp wifi wikimedia-foundation wikipedia wiko windows wine woocommerce wordfence wordpress x xbmc xbox yahoo-mail yolo zenfone zenpad zigbee
  • Suite de l’article : https://www.cyber-neurones.org/2018/10/munin-usb-temperature-via-lusb-ok-mais-sabstenir-si-on-nest-pas-developpeur/ : “Raspberry / Munin / USB : Température via l’USB : OK mais s’abstenir si on n’est pas développeur !”

    Finalement j’ai fait un script bash pour une meilleure gestion :

    $ cat /usr/share/munin/plugins/temper_x
    #!/bin/sh
    VCG=/usr/sbin/temperx                                                
    WARN=70 
    CRIT=75     
    if [ "$1" = "autoconf" ]; then  
            if [ -x $VCG ]; then  
                    echo yes            
                    exit 0 
            else                                                         
                    echo no 
                    exit 1     
            fi                                                           
    elif [ "$1" = "config" ]; then                                       
            echo "graph_title USB Temperature"   
            echo "graph_args --base 1000"       
            echo "graph_vlabel Celsius"             
            echo "graph_category sensors" 
            echo "graph_info Temperature with USB"   
            echo "Temperature.label Temperature"     
            echo "Temperature.type GAUGE"           
            echo "Temperature.info Celsius."           
            echo "Temperature.colour 00ff00"          
            echo "Temperature.warning $WARN"          
            echo "Temperature.critical $CRIT"      
            exit 0 
    fi                                                                                                                                 
    temp=$($VCG)                                                         
    echo "$temp"
    
    $ sudo cat go/src/github.com/mreymann/temperx/temperx.go | tail -10
    			return
    		}
    
    		if buf, err := device.Read(-1, 1*time.Second); err == nil {
    			tmp := (float64(buf[2])*256+float64(buf[3]))/100*tf + to
    			hum := (float64(buf[4])*256+float64(buf[5]))/100*hf + ho
    			fmt.Printf("Temperature.value %v\nHumidity.value %v\n", tmp, hum)
    		}
    	})
    }

    Le graphique est donc le suivant :

    Created Tue, 16 Oct 2018 00:00:00 +0000
  • J’ai donc pris une clef USB afin de mesurer la température du Rack de Raspberry :

    • TOOGOO(R) Or TEMPer PC portable capteur USB Thermometre Temperature Collecteur de Donnees Enregistreur : 6,41 Euros.

    ( voir l’article : https://www.cyber-neurones.org/2018/10/si-tu-nas-pas-de-salle-serveur-a-50-ans-on-peut-dire-que-tu-as-rate-ta-vie/ ) .

    Quand on branche la clef USB sur le Raspberry on peut lire via dmesg :

    [167573.702646] usb 1-1.4: new full-speed USB device number 6 using dwc_otg
    [167573.835187] usb 1-1.4: New USB device found, idVendor=413d, idProduct=2107
    [167573.835203] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [167573.839803] input: HID 413d:2107 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:413D:2107.0002/input/input3

    C’est un premier bon signe :) Par contre la suite c’est pas top :

    Created Mon, 15 Oct 2018 00:00:00 +0000
  • La première étape est de voir si le Bluetooth est bien lancé au démarrage :

    $ dmesg | grep -i blue
    [   11.903994] Bluetooth: Core ver 2.22
    [   11.904056] Bluetooth: HCI device and connection manager initialized
    [   11.904073] Bluetooth: HCI socket layer initialized
    [   11.904080] Bluetooth: L2CAP socket layer initialized
    [   11.904098] Bluetooth: SCO socket layer initialized
    [   11.913494] Bluetooth: HCI UART driver ver 2.3
    [   11.913506] Bluetooth: HCI UART protocol H4 registered
    [   11.913509] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [   11.913652] Bluetooth: HCI UART protocol Broadcom registered
    [   12.098214] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [   12.098223] Bluetooth: BNEP filters: protocol multicast
    [   12.098245] Bluetooth: BNEP socket layer initialized
    
    $ sudo systemctl status bluetooth*
    ● bluetooth.target - Bluetooth
       Loaded: loaded (/lib/systemd/system/bluetooth.target; static; vendor preset: enabled)
       Active: active since Tue 2018-10-09 16:17:10 UTC; 2 days ago
         Docs: man:systemd.special(7)
    
    Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
    
    ● bluetooth.service - Bluetooth service
       Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
       Active: active (running) since Tue 2018-10-09 16:17:10 UTC; 2 days ago
         Docs: man:bluetoothd(8)
     Main PID: 812 (bluetoothd)
       Status: "Running"
       CGroup: /system.slice/bluetooth.service
               └─812 /usr/lib/bluetooth/bluetoothd
    
    Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

    A noter pour que cela fonctionne bien j’ai du ajouter le service hciuart :

    awox munin raspberry Created Mon, 15 Oct 2018 00:00:00 +0000
  • Etape n°1 : Installation de l’OS ( 2018-06-27-raspbian-stretch-lite.img )  sur la carte SD ( Avec ApplePi si vous êtes sous MacOS ) .

    -> Voir : https://www.cyber-neurones.org/2018/09/raspberry-mac-os-applepi-baker-creer-une-carte-sd-pour-le-raspberry/ .

    $ hostnamectl
       Static hostname: raspberrypi
             Icon name: computer
            Machine ID: 072b46046e3a4cdea183a0f7d018a2a3
               Boot ID: 130dde2871b24d01bd8517bf3a23cd5f
      Operating System: Raspbian GNU/Linux 9 (stretch)
                Kernel: Linux 4.14.50-v7+
          Architecture: arm

    Etape n°2 : Changement de l’IP.

    -> Voir : https://www.cyber-neurones.org/2018/09/raspberry-configuration-reseau-sur-une-raspbian-gnu-linux-9-stretch-avec-une-freebox/ .

    Modification de /etc/dhcpcd.conf , mais aussi de /etc/hostname (pour le nom RASP6 : 192.168.0.74 )

    jeedom Created Tue, 09 Oct 2018 00:00:00 +0000
  • Logstach n’est pas vraiment stable ( Java & Mémoire ne font pas bon ménage )  sur le Raspberry, et j’ai du mal à savoir quel est le problème. Je vais donc le remplacer par Filebeat. La première étape est l’installation de GO :

    $ sudo apt-get update
    $ sudo apt-get install golang
    $ sudo apt-get install git
    $ sudo mkdir /go/
    $ sudo mkdir /go/src
    $ sudo chown -R pi.pi /go/
    $ export GOPATH=/go/src
    $ export GOPATH=$HOME/go
    $ export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
    $ go get github.com/elastic/beats

    Cela bloque …, je lance donc le plan B :

    elk filebeat Created Mon, 08 Oct 2018 00:00:00 +0000
  • Pour faire suite à l’article : https://www.cyber-neurones.org/2018/10/raspberry-rsyslog-centralisation-des-logs/ .

    (Pour l’instant c’est tombé en marche … le Java c’est pas mon truc).

    Je vais donc installer ELK : E sur le Raspberry n°4 / L sur le Raspberry n°3 / K sur le Raspberry n°5. A noter que j’avais essayé de tout mettre sur le même : https://www.cyber-neurones.org/2018/09/osmc-raspberry-ajout-de-elk-elasticsearch-logstash-kibana-beats-nginx/ . Mais régulièrement il fallait relancer à cause de la consommation mémoire ….

    RASP3 a020d3 ARMv7 Processor rev 4 (v7l) 949452 4.14.50-v7+ 192.168.0.71 Rsyslog Server / Logstash OK
    RASP4 a020d3 ARMv7 Processor rev 4 (v7l) 949452 4.14.50-v7+ 192.168.0.72 Elasticsearch OK
    RASP5 a020d3 ARMv7 Processor rev 4 (v7l) 949452 4.14.50-v7+ 192.168.0.73 Kibana OK

    Sur le RASP n°4 : Installation de Elasticsearch :

    elk Created Sat, 06 Oct 2018 00:00:00 +0000
  • Petit rappel sur l’architecture mis en place sur le Munin :

    Maintenant, quel est la meilleure architecture pour la mise en place du Logstach ? Mettre un Filebeat sur tous les serveurs ou bien envoyer les informations via Rsyslog afin d’avoir qu’un seul Filebeat ? Vous avez une heure …

    raspberry Created Fri, 05 Oct 2018 00:00:00 +0000
  • Quel est la solution la plus sécurisé pour avoir un Cloud Privé ?  Imaginons une personne qui a une liaison ADSL, un Raspberry, un portable sous Mac et/ou Linux, et un smartphone sous Android. Quel est la solution la plus sécurisé ? Quel est la solution la plus ergonomique ? Je ramasse les copies dans deux heures .

    Solution n°1 OwnCloud : ( Site officiel : https://owncloud.org )

    Lire les articles :

    Outils sur Android :

    cloud cloud-personnel Created Fri, 05 Oct 2018 00:00:00 +0000
  • J’ai donc finaliser l’installation de Munin Server/Node sur mon installation de Raspberry, maintenant je passe à Rsyslog. Voici la liste de mes Raspberry :

    Nom Type Processeur RAM (Mo) Version IP Utilisation Munin-node
    RASP1 / PAPI 000f ARMv6-compatible processor rev 7 443896 4.14.50+ 192.168.0.70 Maison de retraite OK
    RASP2 / OSMC a22082 ARMv7 Processor rev 4 764720 4.14.34-6-osmc 192.168.0.80 Munin Server / OSMC OK
    RASP3 a020d3 ARMv7 Processor rev 4 (v7l) 949452 4.14.50-v7+ 192.168.0.71 Rsyslog Server OK
    RASP4 a020d3 ARMv7 Processor rev 4 (v7l) 949452 4.14.50-v7+ 192.168.0.72 OK
    RASP5 a020d3 ARMv7 Processor rev 4 (v7l) 949452 4.14.50-v7+ 192.168.0.73 OK

    Pour mémoire, mes posts sur Munin :

    rsyslog Created Thu, 04 Oct 2018 00:00:00 +0000
  • Quand je regarde les logs j’ai :

     Error output from irqstats:
         Argument "usb_fiq" isn't numeric in addition (+) at /etc/munin/plugins/irqstats line 95, <$in> line 18.   

    Le code en question qui pose problème :

    sub sum (@) {        
        my $sum = 0;
        $sum += $_ || 0 for @_;     # Avoid complaints about empty strings
        return $sum;                                                     
    }     

    Je viens de voir qu’il y avait un fix : http://munin-monitoring.org/attachment/ticket/1462/munin-v2.0.6-raspberry_pi-irqstats-usb_fiq.patch fait le 01.04.2014 ?!

    munin Created Wed, 03 Oct 2018 00:00:00 +0000