Hi,
Thanks for such a great software. I have updated my version to 1.0, for making scan subnet available. But the feature is not working for me, Here's what I done:
- Added the subnet in CIDR format of the same segment on which the machine resides
- Tried scanning by clicking the button, but it says "No Alive host found". Even when it's residing on the same subnet.
- Secondly, I updated by renaming v8.0 to phpipam2 and v1.0 to conventional phpipam. It worked for me but the widget border is expanded beyond normal and I don't know how to fix it.
I'm using:
- CentOS 7 on VMWare Workstation
Hi,
only to be sure that it really "can" work: did you try to manually "ping" the servers from the console of the server where you have phpipam installed?
if you are able to ping:
-phpipam --> IPAM Settings --> Ping Path correct? (type on console: which ping)
If you are not able to ping:
-you may be missing routes
-firewalls on the targets
Using current (version 1.10) and I tried this on both Fedora 20 and Centos 7. In both cases the ping scan appears to be failing and no hosts are found.
In the httpd/error.log a see a large number of errors that appear to come from when ping is executed. I've confirmed that ping is in the right location.
sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or directory
here is my locale settings from in a user shell:
[root@localhost jay]#
[root@localhost jay]#
[root@localhost jay]# localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
[root@localhost jay]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
try disabling SELinux
To query the SELinux status:
getenforce
To disable SELinux:
sudo setenforce 0
nope, its not selinux. That was my go-to first thing to check.
I do notice that when invoked pingHost() relies on return value, but can
you tell the difference between ping exit code and and exec() failure? In
my test case it looks like the exec() is failing.
On Thu, Jan 29, 2015 at 3:54 AM, Andrey Voroshnin voandre2@users.sf.net
wrote:
Related
Bugs:
#248also, I notice that if i run the included scripts, where locale is not
being set, it works fine. Its only in the web gui that discovery or host
checks fail.
php ./functions/scripts/discoveryCheck.php <--Works
php ./functions/scripts/pingCheck.php <-Works
In the webgui (on current Redhat derivatives) it always says no hosts found
and the httpd log is full of locale warnings:
sh: warning: setlocale: LC_ALL: cannot change locale (en): No such file or
directory
On Thu, Jan 29, 2015 at 3:54 AM, Andrey Voroshnin voandre2@users.sf.net
wrote:
Related
Bugs:
#248The following SELinux will fix the problem without having to disable SELinux (never a good idea..)
1) Create the file http_ping.tt and add the following -
module http_ping 1.0;
require {
type httpd_t;
class capability net_raw;
class rawip_socket { getopt create setopt write read };
}
============= httpd_t ==============
allow httpd_t self:capability net_raw;
allow httpd_t self:rawip_socket { getopt create setopt write read };
2) Run the following commands (as root user) -
checkmodule -M -m -o http_ping.mod http_ping.tt
semodule_package -o http_ping.pp -m http_ping.mod
semodule -i http_ping.pp
Did this solution help? Feedback would be appreciated before I try it here.
I can confirm that this worked for me on CentOS 7.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Yaarp, the SELInux module works.
NOTE: There needs to be a # at the start of the line with "============= httpd_t =============="