Menu

#248 Scan Subnet | no alive hosts

1.0
closed
None
1
2023-06-04
2014-12-01
Anonymous
No

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:

  1. Added the subnet in CIDR format of the same segment on which the machine resides
  2. Tried scanning by clicking the button, but it says "No Alive host found". Even when it's residing on the same subnet.
  3. 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:

  1. CentOS 7 on VMWare Workstation
1 Attachments

Related

Bugs: #248

Discussion

  • NeK

    NeK - 2014-12-05

    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

     
  • Jay Allen

    Jay Allen - 2015-01-26

    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

     
  • Jay Allen

    Jay Allen - 2015-01-26

    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=

     
  • Andrey Voroshnin

    try disabling SELinux

    To query the SELinux status:

    getenforce

    To disable SELinux:

    sudo setenforce 0

     
    • Anonymous

      Anonymous - 2015-01-31

      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:

      try disabling SELinux

      To query the SELinux status:

      getenforce

      To disable SELinux:

      sudo setenforce 0

      Status: open
      Group: 1.0
      Created: Mon Dec 01, 2014 06:57 PM UTC by Anonymous
      Last Updated: Mon Jan 26, 2015 04:13 AM UTC
      Owner: Miha Petkovsek

      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:

      1. Added the subnet in CIDR format of the same segment on which the
        machine resides
      2. Tried scanning by clicking the button, but it says "No Alive host
        found". Even when it's residing on the same subnet.
      3. 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:

      1. CentOS 7 on VMWare Workstation

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/phpipam/bugs/248/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #248

    • Anonymous

      Anonymous - 2015-01-31

      also, 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:

      try disabling SELinux

      To query the SELinux status:

      getenforce

      To disable SELinux:

      sudo setenforce 0

      Status: open
      Group: 1.0
      Created: Mon Dec 01, 2014 06:57 PM UTC by Anonymous
      Last Updated: Mon Jan 26, 2015 04:13 AM UTC
      Owner: Miha Petkovsek

      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:

      1. Added the subnet in CIDR format of the same segment on which the
        machine resides
      2. Tried scanning by clicking the button, but it says "No Alive host
        found". Even when it's residing on the same subnet.
      3. 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:

      1. CentOS 7 on VMWare Workstation

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/phpipam/bugs/248/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #248

  • Anonymous

    Anonymous - 2015-02-12

    The 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

     
    • Anonymous

      Anonymous - 2023-06-04
      Post awaiting moderation.
  • Anonymous

    Anonymous - 2015-03-09

    Did this solution help? Feedback would be appreciated before I try it here.

     
  • Anonymous

    Anonymous - 2015-04-02

    I can confirm that this worked for me on CentOS 7.

     
  • Anonymous

    Anonymous - 2015-12-14

    Yaarp, the SELInux module works.

    NOTE: There needs to be a # at the start of the line with "============= httpd_t =============="

     
  • Miha Petkovsek

    Miha Petkovsek - 2016-02-02
    • Status: open --> closed
     
  • Anonymous

    Anonymous - 2017-09-05
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.