Skip to content

akhal3d96/networkwatcherd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

networkwatcherd

A small Linux daemon written in Ruby sends you a notification when a new device is connected to your network. It is not practical to call nmap every time just to see who is online on your network and it is not good to install a heavy application to just see who is online also most of this application doesn't notify you when someone new is online.

Installation

You should first have Ruby installed on your computer with Gem.

  • You can install it directly from RubyGems
$ gem install networkwatcherd
  • Or download the releases from releases
$ gem install networkwatcherd.gem

Usage

$ networkwatcherd -h
Usage: networkwatcherd [options]
-t, --timeout timeout            Notification timeout (Default 50 second)
-d, --number-of-devices devices  Number of addresses to ping (Default 254 )
-s, --sleep sleep           Time between each devices checking (Default 300 s)
-p, --ip-pattern ippattern        (Default 192.168.1) 
-v, --version                    Current version
-h, --help                       Displays Help

You can add it to your startup applications.

$ networkwatcherd -d 24 -t 10 &

TODO

  • Add option -n [MESSAGE_HEADER] [OPTIONAL_ICON] to control the notifications behaviour.
  • Make --no-daemon option to just run the application and retrive the current online IPs
  • Get the devices OS type besides their IPs on the network see this
  • Add function to write old_ip_list to a file to use it in further development as I want to make this application lighter and faster by calling it after a certaim time interval instead of making it run and sleep.
  • Make Arch Linux and Debian/Ubuntu package (Snappy is ok.)

About

A Linux daemon sends you a notification when a new device is connected to your network

Resources

License

Stars

Watchers

Forks

Packages

No packages published