Enables Phoenix to send PING jobs to agents and receive monitoring check results, fixing the "unknown" status for devices assigned to local (non-cloud) agents. Changes: - Rename JobType::MONITOR to JobType::PING in protobuf for clarity - Add validate_monitoring_check_message() to Validator module - Add "monitoring_check" channel handler to receive ping results - Implement store_monitoring_check() to save results to database - Add build_ping_job() to generate PING jobs for agents - Update build_jobs_for_device() to include ping jobs when monitoring_enabled=true Phoenix now sends PING jobs alongside SNMP/MikroTik jobs, and agents send back MonitoringCheck results that are stored in the monitoring_checks table with proper agent_token_id tracking. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| helpers | ||
| live | ||
| plugs | ||
| endpoint.ex | ||
| gettext.ex | ||
| gettext_helpers.ex | ||
| permissions.ex | ||
| plug_exceptions.ex | ||
| router.ex | ||
| telemetry.ex | ||
| user_auth.ex | ||