mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-24 20:32:05 +00:00
Compare commits
No commits in common. "0d204218273703166593d6f73ce5984939377a65" and "dc5397260671492b8bb298ab5f902bec8fbfe67e" have entirely different histories.
0d20421827
...
dc53972606
@ -5,7 +5,6 @@ CT_DIR=${CT_DIR:=/etc/pve/lxc/}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
#QUIET=
|
||||
#DRY_RUN=
|
||||
@(){
|
||||
@ -20,8 +19,7 @@ CT_DIR=${CT_DIR:=/etc/pve/lxc/}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# CT hostname <-> id...
|
||||
|
||||
# get CT hostname...
|
||||
ct2hostname(){
|
||||
local ct=${CT_DIR}/${1}.conf
|
||||
local host=$(cat $ct | grep hostname | head -1)
|
||||
|
||||
31
check-status
31
check-status
@ -12,37 +12,6 @@ HTTP_OK_STATUS=${HTTP_OK_STATUS:='2[0-9][0-9]|30[1-9]|401|501'}
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Help...
|
||||
|
||||
case $1 in
|
||||
-h|--help)
|
||||
echo "Do a status check on URL(s)."
|
||||
echo
|
||||
echo "Suage:"
|
||||
echo " `basename $0` URL ..."
|
||||
echo
|
||||
echo "Supported URL formats and schemes:"
|
||||
echo " http://<url>"
|
||||
echo " https://<url>"
|
||||
echo " Check if <url> is reachable via http/https."
|
||||
echo " ssh://<url>[:<port>]"
|
||||
echo " Check if <url> has an open port with a listening ssh server."
|
||||
echo " git://<url>[:<port>]"
|
||||
echo " The same as ssh://..."
|
||||
echo " ovpn://<url>[:<port>]"
|
||||
echo " Check if an OpenVPN server is listening on <url>."
|
||||
echo " NOTE: this will not work if 'tls-auth' is enabled but the thing was"
|
||||
echo " already implemented when I found out about this."
|
||||
echo " lxc://<ct-id>:<comman>:<args>"
|
||||
echo " Proxmox-specific set of checks."
|
||||
exit
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
source .pct-helpers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user