cPanelSSP/SSP — pull request #18 by cPanelChrisD (2014-07-01 17:15:40+00:00)
Title: Add LiteSpeed Web Server info and update lsof parsing

1) Added LiteSpeed Web Server info:

[INFO] * LiteSpeed Web Server: version [ LiteSpeed/4.2.12 Enterprise ]
[INFO] * LiteSpeed Web Server: is listening on ports [ 443 7080 80 ]
[INFO] * LiteSpeed Web Server: UPDATE AVAILABLE (4.2.12 -> 4.2.13)

Tested on an actual lsws server, as well as with a fake lshttpd binary that printed old version info to ensure the version update check worked.

2) Removed existing check_for_litespeed() since it is no longer necessary.

3) Updated lsof parsing to account for a blank SIZE/OFF column on some systems.

Didn't have such a system to test this directly, so used a fake lsof binary which provided output with SIZE/OFF column blanked out. Works correctly with both formats.

4) Removed the '#return' cruft in print_apache_info() from previous commit.