I’ve followed the cookbook for smokeping integration but I’m greeted with a 404 when trying to access mylibre.nms/smokeping. I noticed the configuration cited for Debian has the user modify the /etc/nginx/conf.d/librenms file which the main setup guide for Debian replaces with /etc/nginx/sites-enabled/librenms.vhost when using Debian.
However entering the information from the smokeping cookbook into either file results in an nginx configuration validation error:
root@libre:/etc/nginx# sudo nginx -t
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/librenms.vhost:24
nginx: configuration file /etc/nginx/nginx.conf test failed
Can anyone shed some light on these issues?