Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The toolbox plugin scans the entire network address range instead of just the defined ones #806

Open
ftoledo opened this issue Nov 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ftoledo
Copy link

ftoledo commented Nov 23, 2024

Bug reporting acknowledgment

Yes, I read it

Professional support

I'm a GLPI partner

Describe the bug

toolbox won't honor the ip range to scan, it's scan the complete network address

Nov 23 02:48:05 server1 glpi-agent[19855]: [debug] #000645, - scanning 172.16.22.131 in arp table: no result
Nov 23 02:48:05 server1 glpi-agent[19855]: [debug] #000645, #000645, worker termination
Nov 23 02:48:05 server1 glpi-agent[19855]: [debug] #000646, scanning 172.16.22.132
Nov 23 02:48:10 server1 glpi-agent[19855]: [debug] #000646, - scanning 172.16.22.132 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.22.132
Nov 23 02:48:10 server1 glpi-agent[19855]: [debug] #000646, - scanning 172.16.22.132 with netbios: no result
Nov 23 02:48:12 server1 glpi-agent[19855]: [debug] #000646, - scanning 172.16.22.132 with timestamp ping: no result
Nov 23 02:48:12 server1 glpi-agent[19855]: [debug] #000646, - scanning 172.16.22.132 in arp table: no result
Nov 23 02:48:12 server1 glpi-agent[19855]: [debug] #000646, #000646, worker termination
Nov 23 02:48:12 server1 glpi-agent[19855]: [debug] #000647, scanning 172.16.22.133
Nov 23 02:48:17 server1 glpi-agent[19855]: [debug] #000647, - scanning 172.16.22.133 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.22.133
Nov 23 02:48:17 server1 glpi-agent[19855]: [debug] #000647, - scanning 172.16.22.133 with netbios: no result
Nov 23 02:48:19 server1 glpi-agent[19855]: [debug] #000647, - scanning 172.16.22.133 with timestamp ping: no result
Nov 23 02:48:19 server1 glpi-agent[19855]: [debug] #000647, - scanning 172.16.22.133 in arp table: no result
Nov 23 02:48:19 server1 glpi-agent[19855]: [debug] #000647, #000647, worker termination
Nov 23 02:48:19 server1 glpi-agent[19855]: [debug] #000648, scanning 172.16.22.134
Nov 23 02:48:24 server1 glpi-agent[19855]: [debug] #000648, - scanning 172.16.22.134 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.22.134
Nov 23 02:48:25 server1 glpi-agent[19855]: [debug] #000648, - scanning 172.16.22.134 with netbios: no result
Nov 23 02:48:27 server1 glpi-agent[19855]: [debug] #000648, - scanning 172.16.22.134 with timestamp ping: no result
Nov 23 02:48:27 server1 glpi-agent[19855]: [debug] #000648, - scanning 172.16.22.134 in arp table: no result
Nov 23 02:48:27 server1 glpi-agent[19855]: [debug] #000648, #000648, worker termination
Nov 23 02:48:27 server1 glpi-agent[19855]: [debug] #000649, scanning 172.16.22.135
Nov 23 02:48:32 server1 glpi-agent[19855]: [debug] #000649, - scanning 172.16.22.135 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.22.135
Nov 23 02:48:32 server1 glpi-agent[19855]: [debug] #000649, - scanning 172.16.22.135 with netbios: no result
Nov 23 02:48:34 server1 glpi-agent[19855]: [debug] #000649, - scanning 172.16.22.135 with timestamp ping: no result
Nov 23 02:48:34 server1 glpi-agent[19855]: [debug] #000649, - scanning 172.16.22.135 in arp table: no result
Nov 23 02:48:34 server1 glpi-agent[19855]: [debug] #000649, #000649, worker termination
Nov 23 02:48:34 server1 glpi-agent[19855]: [debug] #000650, scanning 172.16.22.136
Nov 23 02:48:39 server1 glpi-agent[19855]: [debug] #000650, - scanning 172.16.22.136 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.22.136
Nov 23 02:48:39 server1 glpi-agent[19855]: [debug] #000650, - scanning 172.16.22.136 with netbios: no result

[....]

[debug] #006707, - scanning 172.16.46.49 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.46.49
[debug] #006707, - scanning 172.16.46.49 with netbios: no result
[debug] #006707, - scanning 172.16.46.49 with timestamp ping: no result
[debug] #006707, - scanning 172.16.46.49 in arp table: no result
[debug] #006707, #006707, worker termination
[debug] #006708, scanning 172.16.46.50
[debug] #006708, - scanning 172.16.46.50 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.46.50
[debug] #006708, - scanning 172.16.46.50 with netbios: no result
[debug] #006708, - scanning 172.16.46.50 with timestamp ping: no result
[debug] #006708, - scanning 172.16.46.50 in arp table: no result
[debug] #006708, #006708, worker termination
[debug] #006709, scanning 172.16.46.51
[debug] #006709, - scanning 172.16.46.51 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.46.51
[debug] #006709, - scanning 172.16.46.51 with netbios: no result
[debug] #006709, - scanning 172.16.46.51 with timestamp ping: no result
[debug] #006709, - scanning 172.16.46.51 in arp table: no result
[debug] #006709, #006709, worker termination
[debug] #006710, scanning 172.16.46.52
[debug] #006710, - scanning 172.16.46.52 with SNMP, credentials [public-snmp]: no result, no response from host 172.16.46.52
[debug] #006710, - scanning 172.16.46.52 with netbios: no result
[debug] #006710, - scanning 172.16.46.52 with timestamp ping: no result
[debug] #006710, - scanning 172.16.46.52 in arp table: no result
[debug] #006710, #006710, worker termination
[debug] #006711, scanning 172.16.46.53
 

To reproduce

  1. define ip ranges:
ip_range:
  ap1:
    credentials:
      - public-snmp
    ip_end: 172.16.20.5
    ip_start: 172.16.20.5
  ap2:
    credentials:
      - public-snmp
    ip_end: 172.16.20.6
    ip_start: 172.16.20.6
  switch1:
    credentials:
      - public-snmp
    description: 'mikrotik'
    ip_end: 172.26.20.1
    ip_start: 172.16.20.1
  1. run inventory task's

Expected behavior

The agent should scan only those IP ranges.

Operating system

Linux

GLPI Agent version

v1.11

GLPI version

10.0.17

GLPIInventory plugin or other plugin version

GLPI Inventory v1.4.0

Additional context

No response

@ftoledo ftoledo added the bug Something isn't working label Nov 23, 2024
@ftoledo ftoledo changed the title toolbox plugin scan all network address instead of defined The toolbox plugin scans the entire network address range instead of just the defined ones Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant