phpipam-agent icon indicating copy to clipboard operation
phpipam-agent copied to clipboard

multi subnet scan fails

Open mail3dexter opened this issue 8 years ago • 8 comments

For me, multiple subnets scan with remote poller isn't working yet. Just downloaded the latest version however issue still exists:

Old ticket: https://github.com/phpipam/phpipam-agent/issues/15

I am able to see ping results success however it is not updated on phpipam page. Not sure if it is not properly updated on remote mysql.

Example:

172.16.200.177 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.29/0.29/0.29
172.16.200.178 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.27/0.27/0.27
172.16.200.179 : xmt/rcv/%loss = 1/0/100%
172.16.200.180 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 2.53/2.53/2.53
172.16.200.181 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.70/0.70/0.70
172.16.200.182 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.34/0.34/0.34
172.16.200.183 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.38/0.38/0.38
172.16.200.184 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 1.13/1.13/1.13
172.16.200.185 : xmt/rcv/%loss = 1/0/100%
172.16.200.186 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.34/0.34/0.34
172.16.200.187 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.28/0.28/0.28
172.16.200.188 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.36/0.36/0.36
172.16.200.189 : xmt/rcv/%loss = 1/0/100%
172.16.200.190 : xmt/rcv/%loss = 1/0/100%
172.16.200.191 : xmt/rcv/%loss = 1/0/100%
172.16.200.192 : xmt/rcv/%loss = 1/0/100%
172.16.200.193 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.19/0.19/0.19
172.16.200.194 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.26/0.26/0.26
172.16.200.195 : xmt/rcv/%loss = 1/0/100%
172.16.200.196 : xmt/rcv/%loss = 1/0/100%
172.16.200.197 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.32/0.32/0.32
172.16.200.198 : xmt/rcv/%loss = 1/0/100%
172.16.200.199 : xmt/rcv/%loss = 1/0/100%
172.16.200.200 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 2.12/2.12/2.12
172.16.200.201 : xmt/rcv/%loss = 1/0/100%
172.16.200.202 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.33/0.33/0.33
172.16.200.203 : xmt/rcv/%loss = 1/0/100%
172.16.200.204 : xmt/rcv/%loss = 1/0/100%
172.16.200.205 : xmt/rcv/%loss = 1/0/100% 

Image of PHPIPAM

Cron which I run: */15 * * * * root /usr/bin/php /var/www/html/phpipam-agent/index.php update 1>>/dev/null 2>&1

mail3dexter avatar Jun 23 '17 10:06 mail3dexter

There seem to be 2 options for scanning under the agent, one is update which updates already discovered hosts and discover which discovers new hosts. Have you tried running with the discover option? We have but we get the error "Error: Didn't find any address to scan!" This was previously reported in #11 but still seems to persist.

mitcham avatar Jul 26 '17 13:07 mitcham

Yep, I can confirm as well - even if I try to scan a single subnet:

phpipam-agent]$ php index.php discover 7
--------------------
Error: Didn't find any address to scan!
--------------------
phpipam-agent]$ php index.php discover
--------------------
Error: Didn't find any address to scan!
--------------------

The manual discovery from the interface does work, but ~ someone can check it out the agent, please?

lcsiki avatar Jul 31 '17 06:07 lcsiki

I have the same problem.

ffernandez87 avatar Aug 16 '17 20:08 ffernandez87

I also have this issue and can replicate the above.

BrianSkelly avatar Oct 08 '17 22:10 BrianSkelly

I have the same problem.

David-yanp avatar Jun 14 '18 06:06 David-yanp

@phpipam

David-yanp avatar Jun 14 '18 06:06 David-yanp

Please fix it, don't work for me

php /opt/phpipam-agent/index.php discover
--------------------
Error: Didn't find any address to scan!
--------------------

akrush24 avatar Aug 30 '18 08:08 akrush24

sorry, afte php /opt/phpipam-agent/index.php update discover

no discovered new hosts

akrush24 avatar Aug 30 '18 08:08 akrush24