The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / php-fpm / php-fpm-socket-permission-denied ▌

Operations Guides

PHP-FPM "connect() to unix:/... failed (13: Permission denied)": socket ownership

The nginx error connect() to unix:/var/run/php/php-fpm.sock failed (13: Permission denied) is a Unix socket ownership problem between the web server and PHP-FPM. Every PHP request returns 502 while static assets serve fine. The PHP-FPM master is up, the socket file exists, workers are idle, and yet no traffic flows.

The (13: Permission denied) suffix is errno 13, EACCES. nginx calls connect(2) on the socket path and the kernel rejects it before any FastCGI bytes are exchanged. The cause is on the socket inode or on a parent directory, not in the FastCGI protocol, the application, or pool sizing.

This article covers how to identify which of the three usual suspects is responsible (socket ownership and mode, parent directory traversal, or MAC policy), how to fix each without restarting more than necessary, and how to keep package upgrades from silently resetting the socket back to root:root.

What this means

For a Unix domain socket, connect(2) requires write permission on the socket inode. EACCES from connect() means the inode exists and is reachable, but the calling process’s UID and supplementary GIDs do not grant write access through the file’s permission bits. Three preconditions must hold for the web server worker to connect:

  1. The web server user (commonly nginx, www-data, or apache) must have write permission on the socket file itself.
  2. The web server user must have execute (search) permission on every directory in the path to the socket.
  3. No mandatory access control system (SELinux in enforcing mode, AppArmor in enforce mode) can be denying the connect.

All three failure modes produce the same (13: Permission denied) line in nginx, and they are not distinguishable from the error string alone.

The PHP-FPM pool directives that control the first precondition are listen.owner, listen.group, and listen.mode. When listen.owner and listen.group are unset (as they ship commented out in the upstream www.conf.in template), PHP-FPM creates the socket owned by the master process user, which on package-managed installs is typically root. With the default listen.mode = 0660, the web server user cannot write to the socket because it is neither root nor in root’s primary group.

PHP-FPM tightened its default socket mode to 0660 as a privilege boundary fix. Any deployment that relied on the older permissive default must now explicitly set listen.owner and listen.group to the web server user.

Common causes

CauseWhat it looks likeFirst thing to check
listen.owner / listen.group mismatchSocket owned by root or by the FPM pool user instead of the web server userls -l /path/to/socket
listen.mode too restrictiveSocket mode is 0660 or 0640 while the web server is not in the owning groupls -l mode bits on the socket
listen.acl_users exclusionSocket has POSIX ACLs that do not list the web server usergetfacl /path/to/socket; php-fpm -tt for effective config
Parent directory not traversableSocket perms look fine but nginx still gets EACCESnamei -l /path/to/socket
SELinux AVC denialAll Unix perms correct, audit log shows AVC against the socketausearch -m AVC -ts recent
AppArmor denialAll Unix perms correct, syslog or audit shows DENIEDdmesg | grep apparmor
Post-upgrade resetStarted immediately after a php* package upgradeDiff pool .dpkg-dist / .rpmnew files

Quick checks

These are all read-only. None touch the FPM master or the socket inode.

# Identify the web server user
ps -o user= -C nginx -C apache2 -C httpd | sort -u

# Inspect the socket inode
ls -l /var/run/php/php-fpm.sock

# Check every parent directory for traverse (x) permission
namei -l /var/run/php/php-fpm.sock

# Confirm FPM is actually listening on this path
ss -xlnp | grep php

# Confirm nginx upstream matches FPM listen path
grep -R "fastcgi_pass.*unix:" /etc/nginx/

# Dump the effective FPM pool config without starting the daemon
php-fpm -tt 2>&1 | grep -E "listen|user|group"

# Check POSIX ACLs on the socket
getfacl /var/run/php/php-fpm.sock

# Look for recent SELinux AVC denials
sudo ausearch -m AVC -ts recent 2>/dev/null | tail -50

# Look for recent AppArmor denials
sudo dmesg | grep -i 'apparmor.*DENIED' | tail -20

# Verify the web server user can stat the socket
sudo -u www-data test -e /var/run/php/php-fpm.sock && echo OK || echo DENIED

How to diagnose it

The diagnostic flow is short. The error string tells you the socket exists, so the question is which of the three preconditions is failing.

flowchart td
  A["nginx logs (13: Permission denied)"] --> B{"ls -l socket"}
  B -->|"owner != web server user"| C["listen.owner/group wrong"]
  B -->|"owner OK"| D{"namei -l shows x for web server?"}
  D -->|"no"| E["parent dir traverse denied"]
  D -->|"yes"| F{"ausearch / dmesg shows AVC?"}
  F -->|"yes"| G["SELinux or AppArmor"]
  F -->|"no"| H["check listen.acl_users / getfacl"]
  1. Confirm the exact socket path nginx is trying to use by grepping the nginx config for fastcgi_pass unix:. Cross-check against ss -xlnp | grep php to confirm FPM is listening on that exact path. A path mismatch produces (2: No such file or directory) rather than (13: Permission denied), but it is worth eliminating early.

  2. Run ls -l on the socket. If the owner is root and the mode is 0660, this is the classic case: listen.owner and listen.group are unset in the pool config, so the socket inherits the master process user. If the owner is the FPM pool user (for example www-data) but the web server user is different (for example nginx), you have a user-mismatch case rather than a missing-directive case.

  3. Run namei -l /path/to/socket. Every parent directory must show x permission for the web server user, the web server group, or other. A socket under /root/, under a non-world-traversable application directory, or under a 0750 directory owned by another user will produce EACCES even if the socket itself is 0666.

  4. Run php-fpm -tt (test mode) and grep for listen.owner, listen.group, listen.mode, and listen.acl_users. This shows the effective pool configuration after includes. When listen.acl_users is set, PHP-FPM applies POSIX ACLs to the socket granting connect access to the listed users. The web server user must appear in that list or already have access via listen.owner/listen.group. Use getfacl on the live socket to verify what ACLs are actually in effect.

  5. If everything Unix-level looks correct, check MAC. On RHEL-family systems, sudo ausearch -m AVC -ts recent shows SELinux denials. On Debian/Ubuntu with AppArmor, sudo dmesg | grep -i apparmor shows DENIED entries. The nginx error string is identical in both cases.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
nginx 5xx rate on PHP endpointsFirst user-visible symptom of EACCESSustained 502 spike with no upstream timeout
PHP-FPM accepted conn rateDrops to zero if the web server cannot deliver connectionsRate flatlines at zero while web server logs show 502s
PHP-FPM ping endpoint responseTests the FPM listener path in isolationPing succeeds (master alive) while web server still gets EACCES
Socket file owner and mode driftDetects post-upgrade permission resetOwner changes from www-data to root after apt upgrade
SELinux AVC rateSurfaces silent MAC denialsNew AVC entries correlated with web server errors
php-fpm -tt config diffDetects pool config driftEffective values change after a package upgrade

Fixes

Match listen.owner / listen.group / listen.mode to the web server user

In the affected pool config (commonly /etc/php/*/fpm/pool.d/www.conf on Debian/Ubuntu or /etc/php-fpm.d/www.conf on RHEL-family systems):

listen.owner = www-data
listen.group = www-data
listen.mode = 0660

Replace www-data with nginx or apache to match your web server user. Then reload PHP-FPM. On systemd-managed installs, use the exact service name (for example systemctl reload php8.2-fpm), or send SIGUSR2 to the master process. SIGUSR2 triggers a graceful reload where the master re-execs and workers drain, so expect a brief window where the socket is unavailable. Use systemctl restart only if reload does not pick up the new socket ownership.

Do not use listen.mode = 0666 as a workaround. It opens the socket to every local user, including unprivileged accounts that should not be able to submit FastCGI requests.

Fix parent directory traversal

Move the socket to a directory the web server user can traverse. The conventional location on Debian/Ubuntu is /run/php/ (which is world-traversable), and on RHEL-family systems it is /run/php-fpm/ or /var/run/php-fpm/. Update both listen = /run/php/...sock in the FPM pool config and fastcgi_pass unix:/run/php/...sock; in nginx.

If you must keep the socket in a non-standard location, ensure every parent directory has 0755 mode or grants x to the web server user explicitly through ACLs.

Handle listen.acl_users

When listen.acl_users is set, PHP-FPM applies POSIX ACL entries to the socket in addition to the base owner/group/mode. The web server user needs to appear in the ACL list or be granted access via listen.owner/listen.group. If the socket stays inaccessible despite setting listen.owner, check getfacl on the live socket and php-fpm -tt for the effective listen.acl_users value. Either add the web server user to the list:

listen.acl_users = nginx,apache,www-data

Or remove listen.acl_users from the pool config so only listen.owner, listen.group, and listen.mode apply. listen.acl_users is not an alternative file mode: it adds user ACL entries, while PHP-FPM logs that any configured listen.owner or listen.group is ignored when ACLs are set. Verify with getfacl /path/to/socket after reload.

SELinux denials

If ausearch shows an AVC denial for the web server process against the socket, the typical fixes are:

# Restore the expected SELinux context on the socket path
sudo restorecon -Rv /run/php/
# Or set the httpd_unified boolean (broadens access significantly)
sudo setsebool -P httpd_unified 1

The narrower fix is to read the AVC’s target object and permission, confirm the current label with ls -Zd /run/php/ and ls -lZ /run/php/*.sock, then place the socket in a path the installed policy already labels correctly or create a focused local policy module. Avoid httpd_unified unless you understand the trade-off: it grants the httpd domain broad access across many file types and weakens the SELinux boundary.

AppArmor denials

AppArmor denials appear in dmesg and /var/log/syslog or /var/log/audit/audit.log as apparmor="DENIED". The fix is to update the offending profile (usually the php-fpm or nginx profile) to allow the socket path, or to switch the profile to complain mode while you investigate:

sudo aa-complain /usr/sbin/php-fpm*

Complain mode logs rather than blocks, which is useful for confirming the profile is the cause before editing it. Do not leave profiles in complain mode in production longer than necessary.

Docker socket sharing

When nginx and PHP-FPM run in separate containers sharing a socket via a mounted volume, UID/GID values must match across containers. A user named www-data in the nginx image may have UID 33, while in the PHP-FPM image the same name may map to a different UID. The kernel checks numeric UIDs, not names.

Either build both images with explicit matching USER 33 directives, or set the socket owner and mode to values that both containers’ actual numeric UIDs can satisfy. Avoid listen.mode = 0777 to paper over the mismatch: it allows any process in either container’s namespace to submit FastCGI requests.

Prevention

  • Pin pool config in configuration management. The most common cause of recurrence is a package upgrade dropping a new www.conf that resets listen.owner and listen.group back to commented-out defaults. Ansible, Puppet, Chef, or Salt should own these files end to end.
  • Use dpkg-statoverride or rpm verification. On Debian-family systems, dpkg-statoverride records intentional permission changes and reapplies them across upgrades. This is most useful for the socket directory, not the socket file itself (which is recreated on every FPM start). On RHEL-family systems, rpm -V flags when a packaged config file has been modified or overwritten.
  • Monitor socket ownership. A check that alerts when the socket owner drifts from the web server user catches post-upgrade resets before the next user-facing 502.
  • Add a startup smoke test. After every FPM reload, run a single FastCGI ping from the web server user (sudo -u www-data cgi-fcgi -bind -connect /run/php/...sock, requires the libfcgi-bin or fcgi package) and fail loudly if it cannot connect. This catches permission regressions before real traffic is affected.
  • Diff after package upgrades. Treat any php* package upgrade as a trigger to verify listen.owner, listen.group, listen.mode, and listen.acl_users are still set as intended.

How Netdata helps

  • Per-second nginx 5xx rate alongside PHP-FPM accepted connection rate. A socket permission failure produces a specific signature: nginx 502 rate spikes on PHP endpoints while FPM’s accepted conn counter flatlines at zero. The decoupling is immediate and visible at one-second resolution.
  • PHP-FPM status page polling. The ping endpoint succeeds (master is alive, socket is listening) while PHP request traffic is zero. This pattern distinguishes a permission failure from an FPM crash, an OOM kill, or pool exhaustion.
  • Process and file descriptor metrics for php-fpm. Workers are present and idle, ruling out pool exhaustion and crash loops as the cause of the 502s.
  • Correlation with package upgrade events. A permission failure that begins immediately after a php* package install or upgrade is the textbook post-upgrade reset, and timestamp correlation narrows the search dramatically.