163 lines
5.2 KiB
JSON
163 lines
5.2 KiB
JSON
{
|
|
"tags": [
|
|
{
|
|
"tag": "disk_usage",
|
|
"type": "command",
|
|
"content": "df -h | head -n 1 && df -h | grep '^/dev/sd'"
|
|
},
|
|
{
|
|
"tag": "tablespace_usage",
|
|
"type": "command",
|
|
"content": "/opt/ticket-ai/src/scripts/tablespaceUsage.sh;sleep 5;cat /tmp/tablespace_usage.tmp"
|
|
},
|
|
{
|
|
"tag": "datafile_usage",
|
|
"type": "command",
|
|
"content": "/opt/ticket-ai/src/scripts/datafileUsage.sh;sleep 5;cat /tmp/datafile_usage.tmp"
|
|
},
|
|
{
|
|
"tag": "db_version_info",
|
|
"type": "command",
|
|
"content": "/opt/ticket-ai/src/scripts/db_version_info.sh;sleep 5;cat /tmp/db_version_info.tmp"
|
|
},
|
|
{
|
|
"tag": "apex_usage",
|
|
"type": "command",
|
|
"content": "/opt/ticket-ai/src/scripts/apexUsage.sh;sleep 5;cat /tmp/apex_usage.tmp"
|
|
},
|
|
{
|
|
"tag": "top",
|
|
"type": "command",
|
|
"content": "top -b -n 1"
|
|
},
|
|
{
|
|
"tag": "iostat",
|
|
"type": "command",
|
|
"content": "iostat -x 1 3"
|
|
},
|
|
{
|
|
"tag": "df",
|
|
"type": "command",
|
|
"content": "df -h | head -n 1 && df -h | grep '^/dev/sd'"
|
|
},
|
|
{
|
|
"tag": "processfinder",
|
|
"type": "command",
|
|
"content": "/opt/ticket-ai/src/scripts/processfinder.sh;sleep 5;cat /tmp/findsql.tmp"
|
|
},
|
|
{
|
|
"tag": "ordsconfig",
|
|
"type": "command",
|
|
"content": "cat /opt/ords/config/databases/default/pool.xml"
|
|
},
|
|
{
|
|
"tag": "datetime",
|
|
"type": "command",
|
|
"content": "echo Current Date and time on server: ; date"
|
|
},
|
|
{
|
|
"tag": "apacheerrorlogs",
|
|
"type": "command",
|
|
"content": "find {virtualmin_error_log} -type f -name '*error_log*' -mmin -15 -exec sh -c 'echo \"===== {} =====\"; tail -n 50 {}' \\;"
|
|
},
|
|
{
|
|
"tag": "relay_connection",
|
|
"type": "command",
|
|
"content": "timeout 5 bash -c 'echo > /dev/tcp/relay.maxapex.net/2525' && echo 'Relay Connected' || echo 'Relay Connection failed'"
|
|
},
|
|
{
|
|
"tag": "banned_ips",
|
|
"type": "command",
|
|
"content": "for jail in $(sudo fail2ban-client status | grep \"Jail list\" | cut -d ':' -f2 | tr ',' ' '); do echo \"$jail:\"; sudo fail2ban-client status \"$jail\" | grep \"Banned IP list\"; done"
|
|
},
|
|
{
|
|
"tag": "wallet_certs",
|
|
"type": "command",
|
|
"content": "output=$(su - oracle -s /bin/bash -c 'orapki wallet display -wallet /home/oracle/wallet/') && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "journalctl",
|
|
"type": "command",
|
|
"content": "output=$(journalctl -p 3 -xb) && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "postqueue",
|
|
"type": "command",
|
|
"content": "output=$(/usr/sbin/postqueue -p) && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "postfix_status",
|
|
"type": "command",
|
|
"content": "output=$(systemctl is-active postfix) && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "dovecot_status",
|
|
"type": "command",
|
|
"content": "output=$(systemctl is-active dovecot) && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "ipv6_status",
|
|
"type": "command",
|
|
"content": "output=$(ip -6 addr show | grep -q 'inet6' && echo 'IPv6 is active' || echo 'IPv6 is not active') && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "iptables",
|
|
"type": "command",
|
|
"content": "output=$(iptables -L -n) && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "java_heap",
|
|
"type": "command",
|
|
"content": "output=$(ps aux | grep java | grep -E 'Xms|Xmx') && echo \"$output\""
|
|
},
|
|
{
|
|
"tag": "oracle_alert_logs",
|
|
"type": "log",
|
|
"content": "{oracle_alert_logs}",
|
|
"lines": 50
|
|
},
|
|
{
|
|
"tag": "ords_logs",
|
|
"type": "log",
|
|
"content": "{ords_log}",
|
|
"lines": 150
|
|
},
|
|
{
|
|
"tag": "var_log_messages",
|
|
"type": "log",
|
|
"content": "/var/log/messages",
|
|
"lines": 150
|
|
},
|
|
{
|
|
"tag": "var_log_secure",
|
|
"type": "log",
|
|
"content": "/var/log/secure",
|
|
"lines": 150
|
|
},
|
|
{
|
|
"tag": "os-release",
|
|
"type": "log",
|
|
"content": "/etc/os-release",
|
|
"lines": 150
|
|
},
|
|
{
|
|
"tag": "var_log_maillog",
|
|
"type": "log",
|
|
"content": "/var/log/maillog",
|
|
"lines": 150
|
|
},
|
|
{
|
|
"tag": "var_log_fail2ban",
|
|
"type": "log",
|
|
"content": "/var/log/fail2ban.log",
|
|
"lines": 150
|
|
},
|
|
{
|
|
"tag": "var_log_mariadb",
|
|
"type": "log",
|
|
"content": "/var/log/mariadb/mariadb.log",
|
|
"lines": 150
|
|
}
|
|
]
|
|
}
|