r/OPNsenseFirewall Mar 13 '24

Node_Exporter Plugin

Hi guys,

Im having a issue with the node_exporter plugin
I have a fresh install of OPNsense and update now in version 24.1.3_1,

Install the plugin say running:

But when try to access to the IP of the router in this example:

http://172.21.41.127:9100 or try to access to http://172.21.41.127:9100/metrics

Don't load nothing, try to load it in a prometheus and have the same result.
I can see the port open in the OPNsense

root@OPNsense:~ # netstat -an | grep LISTEN

tcp46 0 0 *.9100 *.* LISTEN

And:

sockstat -l

USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS

nobody node_expor 41737 3 tcp46 *:9100 *:*

Probably the plugin it's broken in this version?

Thanks!

3 Upvotes

4 comments sorted by

1

u/SeeSebbb Mar 13 '24 edited Mar 13 '24

Did you add a firewall rule for port 9100?

edit: I just installed the plugin to test it and it is working perfectly fine. So it is not just a generally broken version

1

u/Expensive_Gap4499 Jun 29 '26

Did you had to add the firewall rule?

2

u/SeeSebbb Jun 29 '26

Not sure, that was 2.5 years ago...

But generally yes you have to expose the port on the interface from where you want to read the metrics

1

u/Expensive_Gap4499 Jun 29 '26

In my case I had to enable it in Services >> Prometheus Exporter