Last active
February 1, 2016 12:16
-
-
Save fliphess/57a8aabea2c984549649 to your computer and use it in GitHub Desktop.
Get varnishtop output on byte dedicated servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Pragma: no-cache'); | |
header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate'); | |
$a = shell_exec('varnishstat -1'); | |
echo "<pre>$a</pre>"; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Pragma: no-cache'); | |
header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate'); | |
$a = shell_exec('varnishtop -b -i TxURL -1'); | |
echo "<pre>$a</pre>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment