Skip to content

Handle services when their executable paths are not availabe #108

@ElTopo

Description

@ElTopo

Hello,

I have some services I want to monitor but their executable paths are not available (they show up in 'ps' command as "[cmd]" with square brackets) and they don't have pid files..

One example is "[mega-cmd-server]" from MEGAcmd
https://github.com/meganz/MEGAcmd

Currently $settings['services']['executables'] array only takes full path of the executable:

// Format: Label => path to executable or array containing arguments to be checked
$settings['services']['executables'] = array(
    // 'MySQLd' => '/usr/sbin/mysqld' // uncomment to enable
    // 'BuildSlave' => array('/usr/bin/python', // executable
    //                      1 => '/usr/local/bin/buildslave') // argv[1]
);

Is it possible for settings array to handle services running as "[cmd]" in 'ps'?

see: https://unix.stackexchange.com/questions/22121/what-do-the-brackets-around-processes-mean

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions