Methods |
public
|
status(null|string $service = null): array
Get monitored service status
Get monitored service status
Parameters
$service |
optional service status
|
|
#
|
public
|
restart(string $service): bool
Restart service
|
#
|
public
|
unmonitor(string $service): bool
Stop service monitoring
Parameters
$service |
service name or "all"
|
|
#
|
public
|
monitor(string $service): bool
Resume service monitoring
Resume service monitoring
Parameters
$service |
service name or "all"
|
|
#
|
public
|
list_monitored(): array
List monitored items
|
#
|
public
|
headcount(bool $down = true): int
Get a count of failed processes
Get a count of failed processes
Parameters
$down |
headcount for downed services or up
|
|
#
|
public
|
validate_all(): array
Validate all services are active
Validate all services are active
Returns
|
#
|
public
|
config(string $backend, ?array $newparams)
|
#
|
public
|
config_relay(string $backend, array|null $newparams): bool|array
Set configuration relay backend for Argos
Set configuration relay backend for Argos
Parameters
$backend |
backend name
|
$newparams |
parameters to apply, null to delete backend
|
|
#
|
public
|
get_config_relay(string $backend, null $param = null): array|null
Get Argos configuration relay
Get Argos configuration relay
Throws
|
#
|
public
|
set_default_relay($backend): bool
Set default backend
|
#
|
public
|
get_backends(): array|null
Get configured Argos backends
Get configured Argos backends
|
#
|
public
|
create_backend(string $name, string $driver): bool
Create a new backend
|
#
|
public
|
get_backend_relays(): array
Get relays for backend
|
#
|
public
|
test(string $backend = null): mixed
Test Argos configuration
|
#
|
public
|
send(string $msg, string $backend = null, string|null $title = null): mixed
Relay a message through Argos
Relay a message through Argos
|
#
|
public
|
active(): bool
Argos monitor active
|
#
|
public
|
reset_all(): bool
Reset monitoring
|
#
|
public
|
_housekeeping()
|
#
|