Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Valach
Warden
Commits
525f9e6c
Commit
525f9e6c
authored
12 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
smazan zastaraly vypis statusu serveru
parent
39393802
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/warden-server/bin/getWebStatus.sh
+0
-40
0 additions, 40 deletions
src/warden-server/bin/getWebStatus.sh
with
0 additions
and
40 deletions
src/warden-server/bin/getWebStatus.sh
deleted
100755 → 0
+
0
−
40
View file @
39393802
#!/bin/bash
#
# getStatus.pl
#
# Copyright (C) 2011-2013 Cesnet z.s.p.o
#
# Use of this source is governed by a BSD-style license, see LICENSE file.
VERSION
=
'2.0'
if
[
$UID
-ne
0
]
;
then
echo
"You must be root for running this script!"
exit
1
fi
DB_NAME
=
`
cat
/opt/warden-server/etc/warden-server.conf |
grep
'$DB_NAME'
|
sed
's/[";]//g'
|awk
'{print $3}'
`
DB_USER
=
`
cat
/opt/warden-server/etc/warden-server.conf |
grep
'$DB_USER'
|
sed
's/[";]//g'
|awk
'{print $3}'
`
DB_HOST
=
`
cat
/opt/warden-server/etc/warden-server.conf |
grep
'$DB_HOST'
|
sed
's/[";]//g'
|awk
'{print $3}'
`
echo
"DB_NAME:
$DB_NAME
"
echo
"DB_USER:
$DB_USER
"
echo
"DB_HOST:
$DB_HOST
"
echo
echo
"DB status:"
echo
"----------"
echo
"SELECT FROM_UNIXTIME( UNIX_TIMESTAMP( received ) - ( UNIX_TIMESTAMP( received ) % ( 60 ) ) ) AS t, COUNT( id ) FROM events GROUP BY t"
| mysql
-h
$DB_HOST
--user
=
$DB_USER
$DB_NAME
--password
=
$DB_PASS
echo
echo
"apache2ctl status:"
echo
"------------------"
apache2ctl status
echo
echo
"uptime:"
echo
"-------"
uptime
echo
echo
-n
klientu:
;
netstat
-nlpa
|
grep
:443 |
grep
ESTA |
wc
-l
;
echo
-n
FIN:
;
netstat |
grep
WAIT2 |
wc
-l
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment