M0r13n / mikrotik_monitoring

Monitor your Mikrotik router with Prometheus and Grafana
MIT License
240 stars 33 forks source link

Adding additional Nodes #16

Closed JaZzSuperman closed 1 year ago

JaZzSuperman commented 1 year ago

Hi

I am trying to add a additional 3 routers to the config file.

Do I just add the additional router addresses below the IP address field.

Or do I need to copy the entire config and paste that below the original one with the different IP address of the other router?

I have currently tried both and no data is showing when i do so?

M0r13n commented 1 year ago

Hey,

you need to add each device under a dedicated section:

[Sample-Router-1]
    enabled = True
    hostname = localhost 
    port = 8728

[Sample-Router-2]
    enabled = True
    hostname = localhost 
    port = 8728 
JaZzSuperman commented 1 year ago

Thanks for your reply

I have added in the additional router below and left the password section the same as for testing I will use the same API group and username.

Do I need to reboot one of the containers in order for the additional to show up?

Only reason I ask is because on the node drop down menu I do not see the second address entry?

Kind Regards Jarryd

On Tue, 24 Jan 2023, 16:54 Leon Morten Richter, @.***> wrote:

Hey,

you need to add each device under a dedicated section:

[Sample-Router-1] enabled = True hostname = localhost port = 8728

[Sample-Router-2] enabled = True hostname = localhost port = 8728

— Reply to this email directly, view it on GitHub https://github.com/M0r13n/mikrotik_monitoring/issues/16#issuecomment-1402269648, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5J2S2E6M5NEVSCYYJHC7ZLWUACMNANCNFSM6AAAAAAUEVE2VM . You are receiving this because you authored the thread.Message ID: @.***>

M0r13n commented 1 year ago

Yep. Just restart the whole stack with docker-compose restart

JaZzSuperman commented 1 year ago

Thanks Leon

Much appreciated , I will give that a try

On Thu, 26 Jan 2023, 18:31 Leon Morten Richter, @.***> wrote:

Yep. Just restart the whole stack with docker-compose restart

— Reply to this email directly, view it on GitHub https://github.com/M0r13n/mikrotik_monitoring/issues/16#issuecomment-1405428373, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5J2S2ER4D42RFJDVUYBX2LWUK7HVANCNFSM6AAAAAAUEVE2VM . You are receiving this because you authored the thread.Message ID: @.***>

M0r13n commented 1 year ago

I consider this issue to be closed.