Skip to content

Instantly share code, notes, and snippets.

@csdy
Last active January 7, 2022 07:12
Show Gist options
  • Save csdy/176c6c046178cee02b3f to your computer and use it in GitHub Desktop.
Save csdy/176c6c046178cee02b3f to your computer and use it in GitHub Desktop.
Show HTTP connections in cPanel
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | tail -n +26 | grep -v 'OPTIONS' | grep -v '::1' | grep -v 'whm-server-status' | grep -v 'cptemplate.hostek.com' | grep -v 'hostname --ip-address' | grep -v 'NULL'"
# Generic
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | tail -n +26"
# WordPress/Joomla/vBulletin
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | grep -e "wp-login.php" -e "administrator/index.php" -e "*vbulletin""
# Wordpress XMLRPC
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | grep -e "xmlrpc.php""
@csdy
Copy link
Author

csdy commented Apr 29, 2015

The multiple greps don't actually work. Need to revise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment