-
Notifications
You must be signed in to change notification settings - Fork 0
/
status-logstash-server
executable file
·50 lines (41 loc) · 1.52 KB
/
status-logstash-server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
echo
echo "---------------------------------------------------------"
echo "localhost@9201/_plugin/kopf (kopf plugin)"
echo "---------------------------------------------------------"
curl http://localhost:9201/_plugin/kopf
echo
echo "---------------------------------------------------------"
echo "localhost@9200 (elasticsearch)"
echo "---------------------------------------------------------"
curl http://localhost:9200
echo
echo "---------------------------------------------------------"
echo "nginx config"
echo "---------------------------------------------------------"
cat /etc/nginx/sites-available/default
echo
echo "---------------------------------------------------------"
echo "Netstat Status"
echo "---------------------------------------------------------"
/bin/netstat -tlpn
echo
echo "---------------------------------------------------------"
echo "Logstash Forwarder Error Log"
echo "---------------------------------------------------------"
tail /var/log/logstash-forwarder/logstash-forwarder.err
echo
echo "---------------------------------------------------------"
echo "Service Status"
echo "---------------------------------------------------------"
service logstash status
service logstash-forwarder status
service elasticsearch status
service kibana status
service nginx status
echo
echo "---------------------------------------------------------"
echo "Cluster Status"
echo "---------------------------------------------------------"
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
echo