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
Check whether it's easily possible in a somewhat generic way for linux.
Base alert feature that checks cpu load, memory consumption and disk usage.
Not all features can run as normal user, but the features that can be run as a user should not require root priv.
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.
Might be best to include in feature alert.
It still uses the old code. This should be fixed.
Monitor logins (ssh) and report
Whether files have changed in given directories.
Sometimes I used "${VAR}", sometimes only "$VAR". These should be consistent.
It can already upgrade, but should be able to install as well.
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
}
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.
Serverbot should be able to function without a config file, with some default values that get used when the config file isn't available.
That should make managing them easier.
So newbies can find their way more easily :).
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.
Show available updates on system
Add support for Fedora 31
Now some combinations of arguments just don't do anything. These should also give an error.
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)
It can already upgrade, but should be able to install as well.
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:
Add support for Debian 11
When user wants to go from stand alone mode to config mode, it should be made easy for him/her :).
By using else instead of if for all the newer distro's.
Check whether it's possible in a sort-off real-time way.
Serverbot should be able to install and update itself.
Only [if] there are users logged in.
Investigate whether this is something that can be done easily.
Check whether Serverbot can be made compatible with FreeSBD.
Want to find some way of checking the validity and combination of arguments given.
To follow conventions, the main code should be in the function main.
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.
With elif
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.