Apparently Datadog fails to retrieve nginx version information when server_tokens directive in nginx configuration is set to off.
You can keep server_tokens disabled globally, instead enable it for the “nginx_status” server — like so:
server {
listen 81;
server_name localhost;
...
server_tokens on; # <-----
location /nginx_status {
...
stub_status;
...
}
}