Architecture and data model
Nagios uses a monolithic server + check plugins (bash, Perl, Python, SNMP) that return exit codes. State is tracked per host/service.
Prometheus scrapes /metrics endpoints and stores labeled time-series. Each metric can have hundreds of label combinations.
Nagios' flat state model is simpler but less expressive. Prometheus' dimensional model enables ad-hoc queries that Nagios can't match.
Nagios Core is single-threaded for check processing; large environments typically add Mod-Gearman, Nagios XI, or Icinga 2 to scale.