Source: factory.core/extend.monitor/ObjMonitorSecurity.py
Security mixin for Monitor.
| Method | Signature | Description |
|---|---|---|
| collect_security_scan | collect_security_scan() -> List[Dict[str, Any]] |
Run security checks — local hardening |
| read_security_findings | read_security_findings(limit: int = 50) -> List[Dict[str, Any]] |
Read stored security findings. |
| collect_backup_health | collect_backup_health() -> List[Dict[str, Any]] |
Check backup freshness and health. |
| get_backup_errors | get_backup_errors(hours: int = 24, limit: int = 10) -> List[Dict[str, Any]] |
Get recent backup errors. |
| collect_network_connections | collect_network_connections() -> Dict[str, Any] |
Count network connections by state. |
| collect_open_fds | collect_open_fds() -> Dict[str, Any] |
Check open file descriptor usage. |
| collect_swap_pressure | collect_swap_pressure() -> Dict[str, Any] |
Monitor swap usage and page rates. |
| collect_log_anomalies | collect_log_anomalies(limit: int = 500) -> List[Dict[str, Any]] |
Scan syslog for anomalies. |
| get_security_audit_summary | get_security_audit_summary(hours: int = 168) -> List[Dict[str, Any]] |
Pull latest findings from |
| check_cert_expiry_alerts | check_cert_expiry_alerts(warn_days: int = 30) -> List[Dict[str, Any]] |
Check SSL certificate expiry dates. |
| collect_ufw_status | collect_ufw_status() -> Dict[str, Any] |
Collect UFW firewall status and rules. |
| collect_dns_health | collect_dns_health() -> Dict[str, Any] |
Test DNS resolution for key domains. |