@p4d/network-monitor
v1.8.0
Published
Raspberry Pi utility that emits alerts periodically with network status.
Downloads
11
Readme
Network-Monitor
Network utility written in NodeJS that emits alerts periodically to a Hermes server with network status.
Network-Monitor is a command line utility:
- it can be run manually at anytime
- it's scheduled to be run every 5 minutes by a cron job
Network-Monitor uses Hermes nodejs library, this means that if internet connection is available to the RPi, the alerts are guaranteed to reach Hermes server.
Requirements
- cron installed on RPi
- Hermes server configured and available
- RPi in ready state (Project id, Kronos id and Hermes Url must be assigned) - See RPi Status docs
Installation
RPi is distributed via NPM:
sudo npm install -g --unsafe-perm @p4d/network-monitor
Notes:
-g
- Global flag is required so that the utility is accessible from anywhere in the system.--unsafe-perm
- This flag is required to set up the cron job for sudo user.
Usage
Manual usage:
# Just running the command will do it
network-monitor
Automatic usage:
# The cron job that automates it
*/5 * * * * network-monitor