mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Server monitoring tools
This commit is contained in:
parent
9db728e1ad
commit
841c97982f
10 changed files with 586 additions and 9 deletions
46
bin/v-list-sys-mail-status
Executable file
46
bin/v-list-sys-mail-status
Executable file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/bash
|
||||
# info: list mail status
|
||||
# options: [FORMAT]
|
||||
#
|
||||
# The function lists mail server status
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Argument defenition
|
||||
#format=${1-shell}
|
||||
|
||||
# Includes
|
||||
#source $VESTA/func/main.sh
|
||||
source $VESTA/conf/vesta.conf
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Checking mail system
|
||||
if [ -z "$MAIL_SYSTEM" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# Displaying exim queue status
|
||||
echo "Exim queue status"
|
||||
exim -bp
|
||||
echo -en "\n-------------------------------------"
|
||||
echo -en "-------------------------------------\n\n"
|
||||
|
||||
# Displaying exim stats
|
||||
if [ -e "/var/log/exim4/mainlog" ]; then
|
||||
eximstats /var/log/exim4/mainlog 2>/dev/null
|
||||
else
|
||||
eximstats /var/log/exim/main.log 2>/dev/null
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue