Skip to content
Snippets Groups Projects
Commit 1d0409a2 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

small updates

parent b5f5d346
No related branches found
No related tags found
1 merge request!2156907 backup server
#!/bin/bash #!/bin/bash
# ====================================================================== # ======================================================================
# #
# WORK IN PROGRESS # Check IML BACKUP SERVER
# #
# Check ONE BACKUP connection count # requires access to storage_helper.sh
# # in /opt/imlbackup/server/
# requirements access to storage_helper.sh
# ls -ld /opt/imlbackup/server/
# drwxr-x--- 3 imlbackup imlbackup 4096 Jul 27 06:25 /opt/imlbackup/server/
# #
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 2020-07-27 v0.x <axel.hahn@iml.unibe.ch> # 2020-07-27 v0.x <axel.hahn@iml.unibe.ch>
...@@ -38,7 +35,7 @@ You can get the count of connections or the status of server backup. ...@@ -38,7 +35,7 @@ You can get the count of connections or the status of server backup.
See https://os-docs.iml.unibe.ch/iml-backup-server/ See https://os-docs.iml.unibe.ch/iml-backup-server/
SYNTAX: SYNTAX:
$_self [-d DIRECTORY] $_self [-d DIRECTORY] -m MODE
OPTIONS: OPTIONS:
-h or --help show this help. -h or --help show this help.
...@@ -105,11 +102,13 @@ case "$sMode" in ...@@ -105,11 +102,13 @@ case "$sMode" in
typeset -i iDisable; iDisable=$( _getStatusCount "D" "$data" ) typeset -i iDisable; iDisable=$( _getStatusCount "D" "$data" )
typeset -i iRunning; iRunning=$( _getStatusCount "R" "$data") typeset -i iRunning; iRunning=$( _getStatusCount "R" "$data")
if [ $iErrors -gt 0 ]; then if [ $iErrors -gt 0 ]; then
ph.setStatus critical ph.setStatus critical
fi fi
ph.status "Server Backups - $iTotal server - $iErrors errors - $iDisable disbled" if [ $iNotStarted -eq $iTotal ]; then
ph.setStatus unknown
fi
ph.status "Server Backups - $iTotal servers in backup - $iErrors errors - $iDisable disbled - $iRunning running"
echo List of server backups grouped by status echo List of server backups grouped by status
echo echo
( (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment