Giter Club home page Giter Club logo

linux-serverbot's People

Contributors

sveeke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linux-serverbot's Issues

Feature Manage Cron

Cronjobs should be managed by the argument --cron. It would be even better if there could be only one cronjob file, but this might add too much code.

Feature Alert

Base alert feature that checks cpu load, memory consumption and disk usage.

Add main function

To follow conventions, the main code should be in the function main.

Support: old versions of Ubuntu

Ubuntu 14.04 LTS (Trusty Tahr)
Ubuntu 14.10 (Utopic Unicorn)
Ubuntu 15.04 (Vivid Vervet)
Ubuntu 15.10 (Wily Werewolf)
Ubuntu 16.04 LTS (Xenial Xerus)
Ubuntu 16.10 (Yakkety Yak)
Ubuntu 17.04 (Zesty Zapus)
Ubuntu 17.10 (Artful Aardvark)
Ubuntu 18.04 LTS (Bionic Beaver)
Ubuntu 18.10 (Cosmic Cuttlefish)
Ubuntu 19.04 (Disco Dingo)
Ubuntu 19.10 LTS (Eoan Ermine)

Make automatic update possible

Of course just downloading a new version every week is possible with a cronjob, but I would much rather use something that checks of there are updates available first.

Options to investigate:

  • GitHub API that lists the latest date changes were made?
  • VERSION-file that consists of a variable for the version, that gets checked daily for a higher number.

Stand alone operation

Serverbot should be able to function without a config file, with some default values that get used when the config file isn't available.

FreeBSD support

Check whether Serverbot can be made compatible with FreeSBD.

Echo's in error functions are not consistent

#############################################################################
# ERROR FUNCTIONS
#############################################################################

function error_invalid_option {

    echo
    echo "serverbot: invalid option -- '$@'"
    echo "Try 'serverbot --help' for more information."
    echo
    exit 1
}

function error_not_yet_implemented {

    echo "[!] Error: this feature has not been implemented yet."
    exit 1
}

function error_os_not_supported {

    echo
    echo '[!] Error: this operating system is not supported.'
    echo
    exit 1
}

function error_method_not_available {

    echo
    echo '[!] Error: this method is not available without Serverbot configuration file.'
    echo
    exit 1
}

Feature Generate Config

When user wants to go from stand alone mode to config mode, it should be made easy for him/her :).

Feature Overview

Add new feature so show a more complete overview of the system. With stuff like:

  • hostname
  • ipv4
  • ipv6
  • uptime
  • OS
  • kernel
  • cpu
  • ram
  • disk

Should be easy to implement since all gather functions are already there.

Unset variables in serverbot

It seems hardly common that something else uses one of the variables I use, especially global ones. But just to be safe I could take a look at unsetting the vars first in the script.

NixOS support

Investigate whether this is something that can be done easily.

Update serverbot.conf

  • Easy to follow comments
  • Clear lay-out
  • Not too much bloat
  • Make it definitive / non-breaking for 1.X

Consider putting all features in functions

Instead of having much of the feature functions in the main function if's, I could also put them in dedicated functions, so the main function's if's consist solely of function calls. This might improve readability.

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.