Solved: Majordomo only collecting data in one of my three networks

Hello,

I am struggling to configure Majordomo to collect data in my environment.

I have got a setup leveraging three different networks (VLANs, Wifi):

  • lan (br-lan) where all devices are located over which I have full control
  • dmz (br-dmz) where all the IoT/SmartDevices are located
  • guest (br-guest) for my guests

Besides of the missing reverse DNS functionality Majordomo works fine for lan.
But no devices of my other two networks are shown …

If I got it correctly Majordomo is a set of plugins for lcollect. So I included all my networks in the lcollect configuration - without any success.

Did anybody find a solution for such a setup ?

Thanks Basil

Yes, you should list all the interfaces in /etc/config/lcollect like this:

package 'lcollect'

config interface
        option ifname 'br-lan'
config interface
        option ifname 'br-dmz'
config interface
        option ifname 'br-guest'

That should be enough.

1 Like

Hello Ondrej,
I was only playing with the settings in the GUI - and not going to the config file …
I tested your suggestion over the weekend and majordomo now displays all devices in all networks :slight_smile:

Thanks for the solution !

Basil

If one interface is not up, unfortunately, lcollect stops, and does not collect from the working interfaces.

2017-08-06T01:55:05-07:00 info lcollect[24141]: Creating a main loop
2017-08-06T01:55:05-07:00 info lcollect[24141]: Initializing PCAP (in) on br-lan
2017-08-05T18:55:05-07:00 info kernel[]: [12049.663635] device br-lan left promiscuous mode
2017-08-05T18:55:05-07:00 info kernel[]: [12049.703296] device br-lan entered promiscuous mode
2017-08-06T01:55:05-07:00 info lcollect[24141]: Initializing PCAP (out) on br-lan
2017-08-06T01:55:05-07:00 info lcollect[1835]: Removing plugin Majordomo
2017-08-06T01:55:05-07:00 info lcollect[1835]: Unloading plugin library
2017-08-06T01:55:05-07:00 info lcollect[24141]: Initializing PCAP (in) on br-guest_turris
2017-08-06T01:55:05-07:00 err lcollect[24141]: PCAP on (in) br-guest_turris: SIOCGIFHWADDR: No such device, closing
2017-08-06T01:55:05-07:00 info lcollect[24141]: Closing both PCAPs on br-lan
2017-08-05T18:55:05-07:00 info kernel[]: [12049.943533] device br-lan left promiscuous mode
2017-08-06T01:55:05-07:00 crit lcollect[24141]: No configuration available

This should go to the developers of lcollect/majordomo, please file an issue.