phpsysinfo / phpsysinfo

phpSysInfo: a customizable PHP script that displays information about your system nicely
http://phpsysinfo.github.io/phpsysinfo
GNU General Public License v2.0
1.39k stars 231 forks source link

FEAT: Include DNS RT Ping time? #186

Closed seanvree closed 7 years ago

seanvree commented 7 years ago

Would be beneficial to add some type of module that would display DNS RT ping times under the network section?

So in the config file, you would set the DNS you're using (IP address) then on the WebUI it would display the RT ping time.

THX, keep up the good work.

Cheers.

namiltd commented 7 years ago

Done: https://github.com/phpsysinfo/phpsysinfo/commit/3df9688dfa5b61a56c3c047d69a515c66cad18f7

seanvree commented 7 years ago

@namiltd - you're awesome my friend,

One minor question -

in this line:

BLOCKS= "vitals,hardware,memory,filesystem,network,ups,voltage,current,temperature,fans,power,other,"

Can I define "PING TEST" or is that block classified as "OTHER" ?

namiltd commented 7 years ago

The Ping Test is classified as a plug-in, which is displayed at the end, in the order defined in the "PLUGINS" variable.

seanvree commented 7 years ago

@namiltd right, so can I ADD "plugins" to the "BLOCKs" line to customize the order it displays like the other blocks?

so, right now I have:

BLOCKS="vitals,hardware,memory,filesystem,network,plugins,ups,fans,power,temperature,voltage,current,other"

which displays like this:

phpsysinfoping

So, why is ping still at the very bottom?

namiltd commented 7 years ago

PLUGINS are allways displayed at the end.

seanvree commented 7 years ago

okay, I was just wondering if I could move it. no biggie. thanks!