Migrating from Nagios to Prometheus: what the move involves
Picture a team that runs Nagios Core or Naemon today, with host and service checks spread across plugin scripts, parent host hierarchies and a web interface nobody has redesigned in years, and wants Prometheus instead. The move is a rebuild of checks as scrapes, blackbox probes and PromQL alert rules, not a data import: Nagios keeps state and check results, not a time series history you can carry across, so the work is designing new signals and retiring old ones. Effort tracks two things, the number of checks you run and how many custom plugins you have to re-express, because each plugin needs either an exporter, a probe configuration or a rule with its own thresholds.
Licensing sets the cost model before any design work begins. Prometheus is licensed under Apache-2.0 and has no paid enterprise edition of the project itself, so the money goes to infrastructure, storage and the people who build and run it. Nagios Core is licensed under GPL v2, which also carries no license fee, but Nagios XI is a separate commercial product built on the same engine. Confirm which Nagios edition and version you run, since Nagios Core 4.5.14 was published on August 5, 2026, and your plugin set and configuration will shape the scope of the rebuild.
Before you ask a partner or your own team for an estimate, inventory every check by type, owner and whether anyone still acts on its alert. Split the list into host checks, service checks handled by the Nagios Plugins project, custom scripts and notifications, then mark which ones have no live consumer. Ask for a quote that prices the check inventory, the alerting rewrite, the parallel running period and the retirement of old scripts as separate line items, so you can see what is one-time work and what recurs in hosting and on-call time.
Which Nagios check types map to Prometheus and which need a redesign
This table compares each Nagios Core construct with its usual Prometheus equivalent and flags the ones that need a redesign rather than a direct translation. Read the middle column as the replacement and the right column as the work it creates. The main takeaway is that plugin checks and notifications translate fairly directly, while parent host reachability and event handlers need to be rebuilt as alert rules and automation.
| Nagios construct | Prometheus equivalent | Redesign needed? |
|---|---|---|
| Host up/down checks (ping, host alive) | Blackbox probes for ICMP, or node_exporter up metric with an alert on the up series | null |
| Service checks using check_http, check_tcp or check_ssl | Blackbox exporter modules (http, tcp, icmp) with probe_success and certificate expiry metrics | false |
| Plugin checks that read host resources (check_disk, check_load, check_procs) | node_exporter collectors and PromQL expressions evaluated in alert rules | false |
| Custom check scripts written against the plugin interface | A custom exporter exposing metrics, or a textfile collector file produced by the script | true |
| Parent host hierarchy (down versus unreachable) | No direct equivalent. Model dependencies with inhibition rules in Alertmanager and alert on the parent target | true |
| Notifications by contact and contact group | Alertmanager routes, receivers and grouping keyed on labels such as team and severity | null |
| Event handlers that restart services or run scripts on state change | Alertmanager webhook receivers feeding an automation tool you operate, reviewed separately from alert rules | true |
| CGI web interface and status map | Prometheus expression browser for ad hoc queries, with Grafana dashboards for ongoing views and access control handled by a reverse proxy | true |
| Manual text configuration in objects files | Scrape configuration and rule files kept under version control, reloaded through a controlled process | null |
Documented tools for moving checks into Prometheus
Moving from Nagios to Prometheus is mostly a matter of choosing the right collector for each check type. The tools below cover host metrics, endpoint probing, a bridge for running both systems during cutover, and rule validation. Confirm each project's current status and supported flags in its own documentation before you standardize on it.
Node exporter for host checks
The node_exporter reports host metrics such as CPU, memory, disk, filesystem and network state, and replaces the many check_disk and check_load style plugins that Nagios runs over SSH or NRPE. Each Nagios host check becomes a scrape target plus a PromQL rule, so review which collectors you enable, since some are off by default. Use one exporter per host as the baseline and confirm the collector list for your operating system in the project documentation.
Blackbox exporter for endpoint probes
The blackbox_exporter performs HTTP, TCP, ICMP and DNS probes, covering the work of Nagios check_http, check_tcp, check_ping and check_dns. Each probe module is defined in its configuration file, and Prometheus passes the target as a URL parameter. Test ICMP probes separately, because they often need elevated capabilities on the host, and confirm the module names in the project's current documentation.
Blackbox exporter access control
Blackbox-style exporters take their targets from URL parameters, so anyone who can reach the exporter's HTTP port can make it send requests to arbitrary endpoints, including internal addresses. Bind the exporter to localhost or a scrape network, restrict the port with firewall rules, and allow only Prometheus to call it. Test this during the migration, because a Nagios server often ran these checks from a trusted network segment that the new setup may not match.
Prometheus security modelNagios exporter as a bridge
The Nagios exporter reads Nagios status and exposes it as Prometheus metrics, which lets you alert on legacy checks while new exporters come online. It is the right tool for the period when both systems run side by side, because it keeps existing check results visible in one dashboard. Confirm its maintenance status, supported Nagios versions and the exact data it exposes before you rely on it, and plan a removal date so it does not become permanent.
Nagios plugins as a last resort
Nagios plugins can be wrapped and run through a custom exporter only where a check has no exporter or native client, such as a vendor appliance that exposes state only through a CLI. Each wrapped check adds a process, a dependency and an exit-code mapping that someone must maintain. Inventory the plugins in use, mark each one as replaced, wrapped or retired, and keep the wrapped list short.
Promtool for rule validation
The promtool utility checks configuration and rule files before Prometheus loads them, and its unit-testing mode evaluates alert rules against fixed input series. Use it in CI so that a PromQL mistake does not silence an alert that a Nagios check used to fire. Pair it with the Alertmanager routing you plan to use, and confirm the subcommands available in your installed release.
How to run Nagios and Prometheus side by side before cutover
This sequence moves monitoring team by team, so each host and service is inventoried, mirrored in Prometheus, compared against Nagios outcomes, and only then retired. Notifications come from one path at a time, which prevents double paging during the parallel run.
Inventory hosts, services, plugins and contacts
The Nagios administrator exports the object configuration and lists every host, service, check command, contact group, notification period and escalation path. The platform team and each owning team confirm which checks still matter, which are dead, and who receives each page. The output is a single inventory sheet with one row per check, its owner, its severity and its notification route. The step is done when every Nagios service has an owner and a disposition: migrate, replace, or retire.
Map each check to an exporter, probe or rule
For each row in the inventory, the engineer picks the Prometheus equivalent: node_exporter or a service exporter for host and service metrics, the Blackbox exporter for reachability and certificate checks, and a PromQL alert rule in place of a threshold check. Plugins with no exporter are flagged for a custom exporter or a rewrite. The mapping is reviewed with the owning team, and the output is a mapping table that records the replacement and any gaps. The step closes when no check is unmapped.
Stand up Prometheus and Alertmanager on a pilot group
The platform team deploys Prometheus and Alertmanager, scrapes a small pilot group of hosts and services, and loads the first alert rules. Alertmanager is configured with the same receivers the Nagios contacts use, but routing is set so that these pilot alerts go to a test channel only. Alertmanager should be configured to run as a cluster if high availability is required, and Prometheus must list every Alertmanager instance. The step is done when the pilot targets show as up and a test alert reaches the test channel through Alertmanager.
Mirror checks and rules for the pilot group
The engineer recreates the mapped checks for the pilot group as scrape targets, probes and PromQL rules, and sets thresholds to match the Nagios warning and critical levels where those levels are still valid. Each rule is labeled with the Nagios service it replaces so the comparison step can join the two. The output is a rule file and target list stored in version control. The step is done when every pilot Nagios service has a matching Prometheus rule or documented exception.
Run both systems with one notification path
Both systems keep collecting and evaluating in parallel, but only one of them sends pages for each team at any time. For the pilot group, Nagios notifications are disabled or routed to a logging-only contact, and Alertmanager is the only sender to the on-call channel. For teams not yet migrated, Nagios remains the sole pager and Prometheus alerts go to the test channel. Avoiding double paging depends on this rule: each service has exactly one active notification source, recorded in the inventory. The step is done when the routing table shows one owner per team and no service is paged from both systems.
Compare alert outcomes over the parallel period
During the parallel run, the team records every alert that fires in either system and classifies each pair as matched, Prometheus-only, Nagios-only or flapping. Gaps are investigated: a missing Prometheus alert may need a new rule, while a Prometheus-only alert may reveal a noisy threshold that should be tuned before cutover. The Alertmanager history and Nagios logs are the evidence source. The output is a comparison log with a decision for each mismatch, and the step is done when every mismatch has a fix or an accepted reason.
Cut over each team and switch paging
Once a team's comparison log is accepted, the platform team moves that team's notifications from Nagios to Alertmanager in a single change, records the time and the owner who approved it, and keeps the Nagios checks running in read-only mode for a defined rollback period agreed with the team. Each cutover is repeated team by team rather than all at once. The step is done when the team confirms in writing that its on-call route works and no Nagios contact remains active for its services.
Decommission Nagios and retire check scripts
After every team has cut over, the team stops the Nagios scheduler, exports the final configuration and check results for the audit record, and removes the plugin scripts that no Prometheus equivalent replaced. Any kept scripts are moved behind an exporter or run from a supported job. The output is an archived configuration, a list of retired scripts with their replacements, and an updated runbook. The step is done when no Nagios process sends notifications and the archive has been verified as readable.
How alerting logic changes when checks become PromQL rules
In Nagios, each check carries its own state. The scheduler runs a plugin at a set interval, the result sets the service to OK, WARNING, CRITICAL or UNKNOWN, and retry settings decide how many failed attempts pass before a notification fires. Prometheus works differently. It does not ask a check for a verdict. It evaluates PromQL rule expressions over stored series at each rule evaluation interval, and an alert becomes active when the expression returns results. The for duration on an alerting rule is the closest equivalent to Nagios retries: the condition must hold continuously for that long before the alert moves to firing. Before you convert a check, decide what sustained condition it represents and write that as an expression over a time window, not as a single sample compared to a threshold.
Notification behavior moves out of the rule and into Alertmanager. Grouping, inhibition, silences and routing replace the contact groups, notification intervals and dependency logic that Nagios handled per host and service. Parent host relationships in Nagios, which distinguish a down host from an unreachable one, have no direct setting in Prometheus. You usually express them as inhibition rules or as expressions that depend on an up or probe metric, and you should test those rules against a real outage in staging. Confirm how your Alertmanager configuration will route each team's alerts before you retire the Nagios notification path, because a missing route fails silently.
The storage model affects alerting design as much as the rule syntax does. Local Prometheus storage is single-node and is not clustered or replicated, so an alert that depends on history is only as available as that one server. The default retention is 15 days, configurable by time or size, which is enough for most rule windows but not for capacity or audit questions that Nagios history files used to answer. If you need longer history, remote write sends samples to an external long-term storage system, and that path needs its own sizing and failure plan. Ask your platform team who owns the Prometheus host, how it is backed up, and what happens to alert evaluation if it restarts during a cutover.
What drives the cost and duration of a Nagios migration
This table lists the factors that move the cost and effort of a Nagios to Prometheus migration, whether each cost is one-time or recurring, and what to ask for in a written quote. Read it as a checklist to size your own estate before requesting a scope, since no fees or durations are given here.
| Driver | Why it changes cost or effort | One-time or recurring | What to ask for in a quote |
|---|---|---|---|
| Number of hosts and services | Each host and service check must be mapped to an exporter, blackbox probe or alert rule, so inventory size sets design and cutover work | One-time | Inventory count by check type, with the assumed mapping method for each group |
| Custom plugins needing exporters or rewrites | Bespoke check scripts usually need a custom exporter or a rewritten probe, which is often the largest build item | One-time | A plugin-by-plugin list stating keep, wrap, rewrite or retire, with the reason |
| Notification and escalation complexity | Nagios contact groups, escalation chains and time periods must be rebuilt as Alertmanager routes, receivers and silences | One-time, with upkeep as routing changes | Routing tree design, receiver list and a test plan for each escalation path |
| On-call and paging integrations | Each paging or ticketing target needs a receiver configured and tested, and some Nagios event handlers have no direct equivalent | One-time, plus license costs of the paging tool if any | Named integrations, who owns each one, and how event handlers are replaced |
| Dashboard and report rebuilds | Nagios CGI views and availability reports are rebuilt in Grafana or as recording rules, so each report adds scope | One-time, with ongoing dashboard maintenance | List of reports to rebuild and which ones must match historical Nagios output |
| Security controls such as TLS and authentication | Exporters, the Prometheus server and Alertmanager need TLS, authentication and access limits, and blackbox targets need restricted URL parameters | One-time setup, then certificate and secret rotation | Confirmation that TLS, authentication and certificate renewal are in the design and who operates them |
| Whether the team already runs Prometheus | Teams with working Prometheus, Alertmanager and Grafana skip platform build work, while others must also build and operate the stack | One-time platform build when new, recurring operations either way | Statement of which components are new to your team and what skills the plan assumes |
| Infrastructure and storage | Server capacity and disk for retention scale with series count and retention period, and the local store is single-node | Recurring | Assumed series count, retention setting and the hardware or cloud sizing basis |
| Rule upkeep and retirement of check scripts | Alert rules, exporter versions and the retirement of old checks need ongoing review, and side-by-side running extends the period both systems are paid for | Recurring until Nagios is decommissioned | Upkeep scope after cutover, the parallel run period assumed and the decommission criteria |
What usually goes wrong when Nagios checks move to Prometheus
Most failed Nagios-to-Prometheus moves fail quietly rather than loudly. The gaps come from checks nobody inventoried, alerts that fire twice or not at all during the parallel run, and a new server that is trusted more than its documentation allows. Each card below names one risk and the check that catches it before cutover.
Silent gaps from unported checks
Nagios checks often live in host templates, service groups and scripts that nobody reviews. If the inventory is built from memory, checks for backups, certificates or batch jobs disappear without anyone noticing. Export every active service definition from the Nagios configuration, map each one to an exporter, blackbox probe or PromQL rule, and mark checks with no owner as retire or keep. Review the list with the teams that receive the pages.
Double or missing notifications
During the parallel run, Nagios and Prometheus both evaluate the same condition, so on-call staff can receive two pages for one incident, or none if one side is muted. Decide which system owns paging for each service before the run starts, and keep the other side in a notify-off state. Test each alert path end to end, including recovery messages, and record which receiver got each test.
Treating Prometheus as exact
Prometheus values reliability over precision and is not a good choice where 100% accuracy is required, so it is a poor fit for per-request billing or legal evidence of every event. Scrape gaps, averaging windows and rate calculations can hide short outages that a Nagios check would have caught at a fixed interval. Identify the checks that need exact pass or fail records, and keep them in the system that was built for them until the requirement is confirmed.
Prometheus overviewExposed admin APIs
Prometheus admin HTTP APIs are disabled by default, but the lifecycle endpoints can be enabled with a flag, and the blackbox and SNMP exporters take targets from URL parameters. A server reachable on the network can be told to reload, delete data or probe arbitrary addresses. Keep --web.enable-admin-api and --web.enable-lifecycle off unless a runbook needs them, restrict the listening address, and confirm that no exporter is reachable from untrusted networks.
Basic auth without TLS
Prometheus supports HTTP basic authentication with bcrypt-hashed passwords, but without TLS the credentials cross the network in cleartext. Teams often copy a working Nagios web setup and leave plain HTTP in place for dashboards, API calls and Alertmanager traffic. Terminate TLS on Prometheus, Alertmanager and the exporters, require TLS 1.2 or later, and check the configuration with a scanner before any operator uses the server from outside the monitoring network.
Single-node storage without backups
Local Prometheus storage is not clustered or replicated and should be managed like any other single-node database. The default retention is 15 days, so a disk failure can erase the history that teams need to compare against the old Nagios reports, and migrated alert thresholds lose their baseline. Decide the retention period needed for comparison, back up the data directory on a schedule, test a restore on a second host, and export the Nagios history you need to keep before retiring it.
Prometheus storage docsQuestions teams ask before moving from Nagios to Prometheus
Is Prometheus free to use, and is there a paid edition?
Yes, Prometheus is licensed under Apache-2.0 according to its GitHub repository, and there is no paid enterprise edition of the project itself. Your costs come from infrastructure, storage, implementation work and the people who run the system. The license covers the software, not the surrounding work. Ask any vendor or partner that offers Prometheus support to itemize what they charge for, such as hosting, a managed service, support hours or implementation, so you can compare them with running it yourself. Confirm the license terms of any exporter, Alertmanager receiver or add-on you plan to use, since each project publishes its own license.
What does a Nagios to Prometheus migration cost, and what drives it?
The cost is mostly labor plus the infrastructure that runs Prometheus, Alertmanager and the exporters. The main drivers are the size of your check inventory, how many check types are custom scripts, how many notification paths and on-call rules must be rebuilt, and how much history or dashboarding has to move. One-time costs include inventory, check mapping, exporter setup, alert rule writing and cutover. Recurring costs include servers, disk for retention, patching and on-call time. When you ask for a quote, request a line-item breakdown by phase, the assumptions behind the check count, and a list of what is excluded, such as dashboards or retirement of old hosts.
How long does moving from Nagios to Prometheus take?
The duration depends on the number of hosts and services, how many checks are plugins you wrote yourself, how complex your escalation rules are, and whether both systems must run side by side during cutover. The work usually runs in phases: inventory, mapping, building exporters and probes, writing alert rules, parallel running, then retiring Nagios. No timeline figure is supplied for this topic, so ask any partner for a phased schedule tied to your check inventory and agree on the exit criteria for each phase. Confirm your change freeze windows and how long your on-call team needs to validate new alerts before Nagios notifications are turned off.
What must our team supply before the migration starts?
Start by gathering four inputs: a complete check inventory exported from Nagios Core, with host and service definitions, check commands and notification settings; the list of plugins and custom scripts those checks run; named owners and escalation contacts for each service; and your current on-call rules, including who is paged, at what hours and through which channel. Also provide access to the hosts and networks Prometheus must reach, and the decision on who approves retiring each check. Missing contacts and undocumented scripts are the most common reasons a migration stalls, so confirm these inputs in writing before scoping.
Can our own team migrate from Nagios to Prometheus without a partner?
Often yes, if your team already runs Linux services, understands PromQL and has time to test alert behavior carefully. The work is not only technical: you must decide which checks still matter, rewrite notifications and confirm that new alerts page the right people. A team that has never operated Prometheus should plan time for learning and for a parallel run before turning off Nagios. A partner is useful when the check inventory is large, custom plugins are undocumented or the team lacks capacity. DeployOpen plans, implements and documents these migrations in your infrastructure on a fixed scope agreed in writing before work starts.
Does Nagios XI configuration import into Prometheus?
No, Nagios XI configuration does not convert directly into Prometheus configuration. Nagios.org says XI is built on the same Core engine and that existing Core configuration imports into XI, but that path keeps you inside the Nagios model. Prometheus uses a different approach: exporters or blackbox probes expose metrics, and PromQL alert rules decide what fires. Your existing host and service definitions serve as the source for mapping, not as an import file. Plan to translate each check manually or by script, then verify that the new rules cover the same failure conditions, including the parent host logic that separates down hosts from unreachable ones.
Should we run Nagios and Prometheus side by side, and for how long?
Running both is the lower-risk choice for most estates. Keep Nagios sending notifications while Prometheus alerts are compared against it, then switch paging to Prometheus and Alertmanager once the rules have been validated. You can run the Nagios exporter alongside to bring Nagios data into Prometheus during this period. The overlap length depends on your change control and on-call review, and no fixed duration is supplied here, so agree on the criteria for turning off each Nagios check with your operations team. Confirm that Alertmanager receivers are tested before any notification path is removed.
What does Prometheus not cover that Nagios did?
Prometheus is a pull-based metrics and alerting system, so it does not reproduce every Nagios behavior. Check results that were simple pass or fail states may need to become numeric metrics or probe results, and parent-host logic must be rebuilt in alert rules. Prometheus also values reliability over precision, as its documentation states, so it is not the right choice where every event must be recorded exactly. Confirm which Nagios event handlers and passive check flows you depend on, and decide where each one will live in the new design before you retire the old checks.
How DeployOpen scopes and delivers a Nagios to Prometheus migration
DeployOpen starts with an inventory of what Nagios actually checks today, then agrees a written scope for moving each check to an exporter, a blackbox probe or a PromQL alert rule. The work is built, tested and handed over inside your own infrastructure, with both monitoring systems running side by side until your team signs off on retirement.
How we scope
- Inventory every host, service, plugin and event handler in your Nagios or Naemon configuration, including checks nobody has touched in years.
- Classify each check by type, owner and alert consequence so the written scope names what moves, what is replaced and what is retired.
- Agree the scope in writing before work starts, since most engagements are fixed-scope, and confirm which ongoing support is available as a retainer.
How we build
- Deploy Prometheus, Alertmanager and the exporters you need in your own infrastructure, with the Nagios exporter running alongside Nagios during cutover.
- Rewrite each retained check as an exporter scrape, a blackbox probe or a PromQL alert rule, and test it against the behavior Nagios reports today.
- Secure the new stack with TLS, authentication and locked-down exporter targets, since blackbox-style exporters take targets from URL parameters.
How we hand over
- Document the check mapping, alert routing and retirement record so your team can trace every old Nagios check to its replacement.
- Walk your operators through dashboards, alert rules, silences and the steps used to add or remove a target.
- Retire Nagios check scripts and the Nagios service only after the agreed parallel run and sign-off, and record what was switched off and when.
How we support
- Retest alert rules after changes to targets, thresholds or Prometheus versions, and review the stack against your written scope.
- Offer ongoing support, upgrades and continuous testing as a retainer, with terms agreed in writing.
- Confirm with your team which Prometheus release line you will run before the build, since support windows differ between releases.

