Skip to content

pharos:check --json for scripts and monitoring #2

Description

@raym0nz82

What
php artisan pharos:check --force prints a human table. Add --json that prints one JSON document: per component id, name, type, target, ok, status, ms, error. Useful for cron mails, Zabbix/Nagios wrappers and CI.

Where
app/Console/Commands/RunChecks.php (signature + output), a test in tests/Feature.

Done when
php artisan pharos:check --force --json | jq . works, exit code stays 0/1 as today, README "Check it is alive" shows the flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions