Docker poller Node ID

I have only a quick question, I don’t want to waste your time so I’ll be brief:

MainThread(CRITICAL):.env does not contain a valid NODE_ID setting.

Node ID… must this be generated and, if so, how? If not, can… I just make up a Node ID and stick it in by env? I mean, my docker poller appears to be working, even though it shows “None” for Node ID.

Suggestions or pointers to appropriate reading material appreciated, thank you

In the compose example, the .env file in question is generated by the main/webui container, librenms, on first run, here:

The dispatcher container (librenms_dispatcher) would have access to it because both containers are in the same Docker compose context and have ./librenms:/data volume mapped. But even though it checks it, the node ID that the dispatcher actually uses is defined by the DISPATCHER_NODE_ID environmental variable.

I have some dispatchers on separate Docker hosts. So they don’t initially have access to that file. You could just make it up, but what I usually do is just copy the .env it over since it needs the same APP_ID from that file anyway.

1 Like

docker exec, php -r, copy paste into my yaml - thank YOU slashdoom, that was just the hint I needed.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.