Skip to content

A script that verifies a Plex server is running. If it is not running, this will restart it. Windows only.

License

Notifications You must be signed in to change notification settings

JacobFrericks/plex-healthcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plex Healthcheck

This script will verify that the plex server is up and running. If it is not, it will kill the app and attempt to restart it.

A few environment variables are necessary before running the script:

PLEX_USER: Your plex username PLEX_PASSWORD: Your plex password PLEX_SERVER_NAME: Your plex server name

To run it, simply install the requirements, then run python main.py

This script needs to be on the plex server itself. If you want to run it on onther machines, they at least need to be on the same network.

You can also set this up to run every x minutes. For windows, when running every 5 minutes, simply run: schtasks /create /tn PlexHealthCheck /tr "cmd /c python <PATH_TO_CODE>\main.py > %HOMEPATH%\Desktop\health.log 2>&1" /sc MINUTE /mo 5

About

A script that verifies a Plex server is running. If it is not running, this will restart it. Windows only.

Topics

Resources

License

Stars

Watchers

Forks

Languages