mtr not showing #19
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Traceroute and ping work normally and I've done an mtr command in the terminal but there is no output in the looking glass, all I get is:
Host Loss% Snt Last Avg Best Wrst StDev
Any ideas on what I can check for?
Please follow the instructions exactly like described and it will work. SELinux is notoriously known to break things, might check that out as well.
I'm on Ubuntu 22.04, php 8.1 fpm (tried 8.0 also) made sure the two mtr sym links were there and they are. Selinux is not enabled in any way. All the necessary packages have been installed. No errors given or shown, everything working but mtr. I don't know what it could be, nothing shows in the logs either. When I set this though:
I get a 500 error, does that need to be set to true for mtr to work?
Wanted to add that all the required php extensions have been installed and verified as well. If you want to check out the LG: https://glass.servrs.com/
Are you using our Dockerfile? Or perhaps Nginx?
The latency feature is optional and not working for you it seems, you can see in PHP logs why.
I'm using apache2 php FPM 8.1.
Here is the error for the latency issue:
Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, null given in /var/www/clients/client/web/web/LookingGlass.php:435 Stack trace: #0 /var/www/clients/client/web/web/LookingGlass.php(435): explode() #1 /var/www/clients/client/web/web/LookingGlass.php(414): Hybula\LookingGlass::getLatencyFromSs() #2 /var/www/clients/client/web/web/index.php(87): Hybula\LookingGlass::getLatency() #3 {main} thrown in /var/www/clients/client/web/web/LookingGlass.php on line 435
Do I need to add specific apache2 configurations to get mtr to work. I did some searching but couldn't find anything specific for apache.
I am not sure why it's not working for you. It should be working out of the box for RHEL based distros. Else use Docker deployment.
The latency feature is in beta, I will see if we can fix this.
I reinstalled it on an Almalinux 9 VM and now it works perfectly. Thank you for your assistance and repo, I appreciate it.
Does the latency feature work now on Alma?
I did enable latency and it is working I see it next to "Your IP", thanks again.
If the latency time is not displayed
For debian/ubuntu, this error is solved by replacing the string:
9909035c50/LookingGlass.php (L431)
replace to:
$lines = shell_exec('/usr/bin/ss -Hti state established');
Thank you for that!
By the way, I noticed that latency time is displayed only for ipv4. If you need it to be displayed for ipv4+ipv6, you can modify the getLatencyFromSs function in the file LookingGlass.php
Can you do a pull request for this? I'm sure it will be added and would be really nice.
Sorry, but I haven't tested the code in other OS, such as RHELs (Centos/AlmaLinux/Rocky and etc). And since the output of the information display mainly depends on the ss utility, depending on the OS, there is a chance that code will not work there. Therefore, I don't see the point in sending a Pull Request.
I also noticed that MTR/Traceroute will only work correctly in an Nginx+Apache environment, because Chunked headers are used to display information in real time. If you use Nginx+php-fpm, the information from MTR/Traceroute may not be displayed correctly.