inverse-inc / packetfence

PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.
https://packetfence.org
GNU General Public License v2.0
1.27k stars 275 forks source link

certificates_check job doesn't work #5851

Closed julsemaan closed 3 years ago

julsemaan commented 3 years ago

Describe the bug The job doesn't work

To Reproduce

  1. Set the certificates_check window to 10 years
  2. Set the interval to run every minute
  3. restart pfcron
  4. Wait for an alert, never comes even though the certs are going to expire in less than 10 years

Additional context

Got this in the logs:

Sep 28 12:45:22 test-fresh pfcron[61301]: t=2020-09-28T12:45:22-0400 lvl=eror msg="API error: Unknown path /api/v1/emails/pfmailer" pid=61301
julsemaan commented 3 years ago

Still doesn't work because of another error:

Sep 29 11:24:49 test-fresh packetfence[79438]: pfperl-api(79438) ERROR: Undefined subroutine &pf::UnifiedApi::Controller::Emails::is_error called at /usr/share/perl5/vendor_perl/Mojolicious.pm line 147.
                                                (Mojolicious::Plugin::DefaultHelpers::_development)

Please make sure you fix+test before closing