Popularity
2.8
Growing
Activity
8.9
-
117
5
6

Programming language: Shell
License: GNU Affero General Public License v3.0
Tags: Monitoring     Software    

ruptime alternatives and similar tools

Based on the "Monitoring" category.
Alternatively, view ruptime alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ruptime or a related project?

Add another 'Monitoring' Tool

README

[ruptime](.ruptime.png?raw=true "ruptime")

poor man’s ruptime

Historically the original ruptime1 was using broadcast udp/5132 in a network. Since it's not 1982 anymore, but 2022 today, here's a version for multiple networks with encrypted traffic and client-server architecture.

You will automatically get instant list of hosts (down or up), inventory of hardware, software overview, comparable list of benchmark results.

While it was

  • rcp (remote copy)
  • rexec (remote execution)
  • rlogin (remote login)
  • rsh (remote shell)
  • rstat
  • ruptime
  • rwho (remote who)

It is now

  • ruptime (remote uptime) - the classic
  • runame (remote uname and OS/release) - keep track what OS/release you run
  • rsw (remote software) - what kind of package managers did sneak in
  • rhw (remote hardware, inventory) - what hardware you have
  • rload (remote load of CPU/GPU/MEM/NET) - usage of hardware
  • rbench (remote benchmark) - comparable list of your hardware
  • rboot (remote rebootable?) - safety level for a reboot
  • rnet (remote network) - networking details (interface name, connection speed)
  • rdisk (remote disk) - overview of local disks and their speeds

Never heard of ruptime, what does it look like?

The output shows how long the system has been up, the number of users currently on the system, and the load averages. The load average numbers give the number of jobs in the run queue averaged over 1, 5 and 15 minutes.

$ ruptime # FQDN   State Uptime    Users    Load Averages 1' 5' 15'
fish.ocean.net      up    4+21:27  0 users  load 0.22 0.25 0.25
tuna.ocean.net      up    4+21:27  0 users  load 0.20 0.30 0.42
dolphin.ocean.net   up   15+05:57  0 users  load 0.04 0.08 0.07
$ runame # FQDN              Kernel Release Architecture, OS Version Code
fish.ocean.net               Linux 5.15.0-17-generic x86_64, Ubuntu 22.04 jammy
tuna.ocean.net               Darwin 21.1.0 arm64, macOS 12.0.1 21A559
$ rload # FQDN               CPU %  MEM %
whale.ocean.net               19.00   3.37
$ rsw # FQDN                 pkg number...
seahorse.ocean.net           dpkg 7243 rpm 0 pip3 393 
$ rboot # FQDN               users    screen/tmux    cpu load
orca.ocean.net               Users: 2 screen/tmux: 1 CPU: 5
$ rbench # FQDN              Memory   Total CPU      Cores
orca.ocean.net               MEM 5.05 94 GB CPU 6.16 32

Command line options

-i   Install the software
-u   Upload information to the server
-v   Print license/version and quit

No option queries the server for the information.

Why would I want this?

  • it's simple3
  • monitoring systems have no or not very useful CLI tools
  • you don't want to manually keep a list of hosts
  • you want to see what hosts are down
  • you want to see what hosts are not idle
  • you want to run something on all running hosts with parallel
  • get rid of non-standard/in-house solutions that do not scale or are cumbersome in some other way

Configuration

The defaults for rwhod/ruptime is downtime after 11' (11*60 seconds)4 (ISDOWN), status messages are originally generated approximately every 3' (AL_INTERVAL)5.

SERVER=wedonthaveaprivacyproblem.com
PORT=51300
HOSTNAMECMD='hostname -f'

Create a key for the encryption with mcrypt. You will need this on server and client for symmetric encryption.

COLUMNS=160 dd if=/dev/urandom bs=1 count=60 2>/dev/null > /etc/ruptime/ruptime.key

Create a local user to run the daemon.

adduser --disabled-password --quiet --system --home /var/spool/ruptime --gecos "ruptime daemon" --group ruptime

Running the daemon.

daemon --user=ruptime:ruptime mini-inetd 51300 /usr/sbin/ruptimed

Requirements

  • Client: nc xz bc memtester lm-sensors mcrypt
  • Server: nc xz tcputils daemon mcrypt
  • Optionals: pen trickle timeout bkt

Supported Systems

Starting it

  • FreeBSD: rc.d
  • Linux: daemon, init.d, cron @reboot, systemd6
  • macOS: https://medium.com/swlh/how-to-use-launchd-to-run-services-in-macos-b972ed1e352
  • Windows (not sure if they still have net start, haven't seen it since NT 4)

  • without systemd

    # crontab -l
    */1 * * * *  /usr/bin/ruptime -u
    */3 * * * *  /usr/bin/rload -u
    */15 * * * * /usr/bin/rboot -u
    @reboot      /usr/bin/rdisk -u
    @reboot      /usr/bin/rbench -u
    @reboot      /usr/bin/runame -u
    @reboot      /usr/bin/rsw -u
    @reboot      /usr/bin/rhw -u
    @reboot      /usr/bin/rnet -u
    

Special Files


*Note that all licence references and agreements mentioned in the ruptime README section above are relevant to that project's source code only.