Linux has a command called tune2fs to check and configure File Systems, the option -l does list all the values of the File Sytem related parameters. To avoid issues with File Systems you can read out the value of Filesystem state , when it states clean all is ok but any other output needs action.
Many companies use a Central Loghost where syslogs from all servers are consolidated. If there is a need for example to check on certain entries it is no need to acces the individual servers, instead extract info from 1 centrel Logfile can do the trick. In case the is a Central Loghost then syslog info
ISSUE: In the file /etc/lvm/lvm.conf the value of ‘level = x’ has to be set to 3 (lvm errors will be logged to syslog) Further requirements: This only has to be done if the value is different (unless..) ‘level = x’ within comments (#) have to be omitted Only if the value has changed the
The tar command gives a few possibilities: 1 . General: tar cvfz app.tar.gz --exclude ".git/*" --exclude ".git" <root-dir> 2. GNU tar To exclude version control system directories: tar --exclude-vcs This will exclude svn, git metafiles etc. tar cvfz app.tar.gz <root-dir> --exclude-vcs Source: http://stackoverflow.com/questions/3069522/tarballing-without-git-metadata
How To Create Nagios Plugins With Bash On Ubuntu 12.10 Introduction Bash is a popular command processor available on Linux by default. We have previously covered how to install Nagios monitoring server on Ubuntu 12.10 x64. This time, we will expand on this idea and create Nagios plugins using Bash. These plugins will be running on
How to debug a bash script? Is there any way to debug a bash script? E.g something that prints a sort of execution log like “calling line 1”, “calling line 2” etc. via shell – How to debug a bash script? – Stack Overflow.