michabbb / laravel-scheduler-watcher

Easy logging & monitoring of your Laravel cronjobs
MIT License
8 stars 4 forks source link

scheduler-watcher:checklastevent not working in Laravel 8 #6

Closed GuidoLeibbrand closed 1 year ago

GuidoLeibbrand commented 3 years ago

I have followed the instructions for the integration of nagios (see https://michabbb.gitbook.io/laravel-scheduler-watcher/nagios)

When i call: php artisan scheduler-watcher:checklastevent 0f517c9d32a032b84615c82461e1c864 --no-ansi I get the result, no matter if i use the option or not An option named "no-ansi" already exists.

With help of the Maintainer, I found the reason for this problem.

In Class macropage\LaravelSchedulerWatcher\Console\SchedulerWatcherCommandCheckLastRun the signature was the problem.

protected $signature = 'scheduler-watcher:checklastevent {jobMD5} {--noansi}';

If I removed "no-ansi" in the source code it worked.

Environment:

michabbb commented 1 year ago

i guess i forgot to close this issue, since this is fixed since a long time. changed param --no-ansi to --noansi