Menu

#4683 Running Processes fails with ps from procps-ng

1.770
closed-fixed
nobody
None
5
2015-12-01
2015-12-01
Cader
No

The "Running Processes" (and therefore the "Check Process" server status check) shows no processes with ps from procps-ng 3.3.11.
The output of "ps V" isn't "version x.x.x" so in proc/linux-lib.pl the function "get_ps_version" fails to return a version so "list_processes" fails to return a valid process array.

A quick fix for me was to remove "version" from the pattern match in "get_ps_version":
sub get_ps_version
{
if (!$get_ps_version_cache) {
local $out = &backquote_command("ps V 2>&1");
if ($out =~ /\s+([0-9.]+)./) {
$get_ps_version_cache = $1;
}
}
return $get_ps_version_cache;
}

Discussion

  • Cader

    Cader - 2015-12-01

    FYI - the output from "ps V" was this:
    $ ps V
    ps from procps-ng 3.3.11

     
  • Jamie Cameron

    Jamie Cameron - 2015-12-01
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2015-12-01

    Thanks - I will fix this in the next Webmin release.

     

Log in to post a comment.

MongoDB Logo MongoDB