Giter Site home page Giter Site logo

nvrmonitor's Introduction

NVR monitor

Health check endpoint to monitor NVR recordings.

I use tiny-nvr to store a continuous recording of our IP cameras to a Linux server. To monitor these recordings, this tool checks the destination folder and exposes a health check endpoint that returns a HTTP error when a recording becomes stale. I use Uptime Robot to monitor the endpoint, this way I receive a push notification whenever the endpoint returns an error or is offline for whatever reason (power outage, misconfiguration, ..).

Configuration

This image looks for subfolders under /recordings and assumes each subfolder is a separate camera. It checks for each subfolder that the most recent recording is fresh. For instance if you have two cameras in the folders cam1 and cam2, mount them under /recordings/cam1 and /recordings/cam2. This tool finds the most recent recording in each folder and checks that the modification time is recent.

Configuration environment variables:

  • NVR_MAX_AGE: Maximum age of the last modified file in seconds. Default: 60.

Docker Compose

services:
  monitor:
    image: mhvis/nvrmonitor
    restart: unless-stopped
    environment:
      NVR_MAX_AGE: 60
    volumes:
      - /path/to/cam1:/recordings/cam1:ro
      - /path/to/cam2:/recordings/cam2:ro
    ports:
      - 8000:8000

nvrmonitor's People

Contributors

mhvis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.