nozel-org / linux-serverbot Goto Github PK
View Code? Open in Web Editor NEWLightweight server monitoring and alert tool for Linux
License: Other
Lightweight server monitoring and alert tool for Linux
License: Other
Want to find some way of checking the validity and combination of arguments given.
It still uses the old code. This should be fixed.
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.
Add support for Debian 11
Base alert feature that checks cpu load, memory consumption and disk usage.
Check whether it's possible in a sort-off real-time way.
Monitor logins (ssh) and report
Serverbot should be able to install and update itself.
To follow conventions, the main code should be in the function main.
Show available updates on system
Check whether it's easily possible in a somewhat generic way for linux.
By using else instead of if for all the newer distro's.
Only [if] there are users logged in.
With elif
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)
Now some combinations of arguments just don't do anything. These should also give an error.
Sometimes I used "${VAR}", sometimes only "$VAR". These should be consistent.
So newbies can find their way more easily :).
Might be best to include in feature alert.
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:
Serverbot should be able to function without a config file, with some default values that get used when the config file isn't available.
Check whether Serverbot can be made compatible with FreeSBD.
The variables stay empty.
#############################################################################
# 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
}
That should make managing them easier.
It can already upgrade, but should be able to install as well.
Not all features can run as normal user, but the features that can be run as a user should not require root priv.
When user wants to go from stand alone mode to config mode, it should be made easy for him/her :).
Add new feature so show a more complete overview of the system. With stuff like:
Should be easy to implement since all gather functions are already there.
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.
It can already upgrade, but should be able to install as well.
Investigate whether this is something that can be done easily.
Whether files have changed in given directories.
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.
Add support for Fedora 31
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.