코딩정보




● HA작업) 계속해서 스왑 사용량이 100%에 증가하고 시스템 버벅임 먹통시 강제 REBOOT 자동화

♨ 카랜더 일정 : 2023년08월27일
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    ● HA작업) 계속해서 스왑 사용량이 100%에  증가하고 시스템 버벅임 먹통시 강제 REBOOT 자동화

    정보:

    https://community.home-assistant.io/t/out-of-swap-space/124040/13


    스왑 공간을 늘리는 방법이 있나요? 계속해서 스왑 사용량이 100%에 이르고 어떻게 해야 할지 모르겠습니다. 시스템은 잘 작동하지만 가끔 시스템이 작동 중지되고 Pi의 SD 카드 표시등이 미친 듯이 깜박입니다. 공간이 부족한 상황인 것 같습니다.

    감사해요!


    이 버전을 약간 수정하고 쉽게 복사하고 붙여넣을 수 있도록 포럼 형식으로 게시하면 됩니다!


    빠른 것 : 내가 사용하고 있다면


    mqtt:

      broker: core-mosquitto

      discovery: true

      discovery_prefix: homeassistant 

    내 MQTT 설정이 HBMQTT(임베디드) 또는 RabbitMQ 브로커를 실행하고 있다는 뜻인가요?

    브로커에 많은 잠재력이 내장되어 있는 것 같아서 혼란스럽습니다.

    나는 Eclipse Mosquitto 브로커 Hass 애드온을 사용하고 있다고 생각합니다.

    메모리 누수의 원인을 배제하려고 합니다. 저는 Unifi 애드온을 실행하고 있습니다…


      - alias: 'SWAP usage'
        trigger:
         - platform: time
           at: '03:00:00'
        condition:
          - condition: numeric_state
            entity_id: sensor.swap_use_percent
            above: 95
        action:
          - service: notify.telegram
            data:
              message: swap usage is over 95%, rebooting
          - service: hassio.host_reboot
    ================
    기본 설정 조건
    # # 20230704_0156_43
    # /config/configuration.yaml
    # sensor: !include sensor.yaml
    # 대치함
    # sensor:
    - platform: systemmonitor
      resources:
        - type: disk_use_percent
          arg: /config
        - type: disk_use
        - type: disk_free
        - type: memory_use_percent
        - type: memory_use
        - type: memory_free
        - type: swap_use_percent
        - type: swap_use
        - type: swap_free
        # - type: load_1m
        # - type: load_5m
        # - type: load_15m
        - type: network_in
          arg: eth0
        - type: network_out
          arg: eth0
        - type: throughput_network_in
          arg: eth0
        - type: throughput_network_out
          arg: eth0
        - type: packets_in
          arg: eth0
        - type: packets_out
          arg: eth0
        - type: ipv4_address
          arg: eth0
        - type: ipv6_address
          arg: eth0
        - type: processor_use
        - type: processor_temperature
        - type: last_boot
        - type: disk_use
          arg: /dev
        # - type: disk_use
        #   arg: /dev/shm
        - type: disk_use
          arg: /dev/sda8

    나의 SWAP 메모리 > sensor.swap_use_percent


    description: "매일밤3시SWAP 80%일때 REBOOT"
    trigger:
      - platform: time
        at: "03:00:00"
    condition:
      - condition: numeric_state
        entity_id: sensor.swap_use_percent
        above: 80
    action:
      - service: notify.telegram
        data:
          message: swap usage is over 80%, rebooting
      - service: hassio.host_reboot
        data: {}
    mode: single
    alias: SWAP_TO_REBOOT
    3232235521_1693134058.4051.png

    3232235521_1693134765.9572.png

    ☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠1.png

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    등록된 댓글이 없습니다.




    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-05-16 04:20:00

    오늘의 홈 현황


    • 현재 접속자♨ 319 명
    • 오늘 가입자※ 1 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 11 명
    • 오늘 방문자 1,004 명
    • 어제 방문자 1,597 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,325,334 명
    • 전체 게시물※ 8,570 개
    • 전체 댓글수※ 24,612 개
    • 전체 회원수 10,968 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑