• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

New Plugin: Host Status plugin (1.5.6 FOG version)

Scheduled Pinned Locked Moved
General
3
16
2.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    fry_p Moderator @Fernando Gietz
    last edited by Jun 4, 2019, 2:49 PM

    @Fernando-Gietz I am able to telnet from the fog server to the host on port 445 if that means anything. I will test these other suggestions over the next few hours.

    Thanks!

    Like open source community computing? Why not do it for a good cause?
    Use your computer/server for humanitarian projects when it is idle!
    https://join.worldcommunitygrid.org?recruiterId=1026912

    F 1 Reply Last reply Jun 4, 2019, 4:55 PM Reply Quote 0
    • F
      fry_p Moderator @Fernando Gietz
      last edited by Jun 4, 2019, 3:03 PM

      @Fernando-Gietz For your first suggestion of modifying the PHP file with the $ping variable in the place of “Unknown”. When I hovered over the red exclamation after doing that, nothing appeared.

      For the second suggestion of a tcpdump, there is quite a bit of chatter on that port for hosts all over our district. Is it possible fog is using this port for other purposes? I ran it for a 30 seconds and opened the host page and saw a lot of traffic, but none from the host I was working with.

      Like open source community computing? Why not do it for a good cause?
      Use your computer/server for humanitarian projects when it is idle!
      https://join.worldcommunitygrid.org?recruiterId=1026912

      1 Reply Last reply Reply Quote 0
      • F
        Fernando Gietz Developer
        last edited by Fernando Gietz Jun 4, 2019, 9:15 AM Jun 4, 2019, 3:15 PM

        For your first suggestion of modifying the PHP file with the $ping variable in the place of “Unknown”. When I hovered over the red exclamation after doing that, nothing appeared.

        The $ping value is null. Lets go to do another little test. Send a inventory or download task over the computer, when the computer is running the FOS, go to the host edit page and, return anything? Must to return 111 value.

        For the second suggestion of a tcpdump, there is quite a bit of chatter on that port for hosts all over our district. Is it possible fog is using this port for other purposes? I ran it for a 30 seconds and opened the host page and saw a lot of traffic, but none from the host I was working with.

        No, this port is used only for detect the status. If you have enabled the FOGPingHost daemon, you must to see all attemps of the server to detect the status of all computers that are in FOG (more or less 1 attemp by second). If you see this traffic, then the problem is in the computer or in the net (firewall, …)
        How many computers are in your server? When you list or search any computers, which status appears in the result list? All Unkkown?

        1 Reply Last reply Reply Quote 0
        • F
          fry_p Moderator @fry_p
          last edited by Jun 4, 2019, 4:55 PM

          @Fernando-Gietz Would you like me to test this with the $ping variable in the php file? If so, I did a deploy to a laptop. It is still showing a red exclamation with no text when hovered over. If not, I can try again with the original syntax.

          I have roughly 1500 hosts registered to my fog server. I ran another tcpdump and I am seeing pairs of what appears to be “calls” and “replies” from hosts to and from the server. It is pretty steady 1-2 popping up per second. I do not believe our firewall touches internal traffic but I can verify. I am also checking Antivirus at the moment.

          Like open source community computing? Why not do it for a good cause?
          Use your computer/server for humanitarian projects when it is idle!
          https://join.worldcommunitygrid.org?recruiterId=1026912

          1 Reply Last reply Reply Quote 0
          • F
            Fernando Gietz Developer
            last edited by Jun 4, 2019, 5:00 PM

            Sorry!!! A little mistake in the code XD is not $ping, is $val

            Change the line:

             printf($strtoupdate, 'fos', 'cogs', 'green', 'FOS');
            

            To:

             printf($strtoupdate, 'fos', 'cogs', 'green', $val);
            
            F 1 Reply Last reply Jun 4, 2019, 6:35 PM Reply Quote 0
            • F
              fry_p Moderator @Fernando Gietz
              last edited by Jun 4, 2019, 6:35 PM

              @Fernando-Gietz Do you want me to edit line 114 or 110 (what you just listed in your last reply)? I accidentally changed “Unknown” to $val in line 114 and it came up with a value of 6 with the red exclamation. I realized my error and went to line 110 and put in $val instead of FOS and it is showing up red exclamation and “unknown” still.

              Like open source community computing? Why not do it for a good cause?
              Use your computer/server for humanitarian projects when it is idle!
              https://join.worldcommunitygrid.org?recruiterId=1026912

              1 Reply Last reply Reply Quote 0
              • F
                fry_p Moderator @Fernando Gietz
                last edited by fry_p Jun 5, 2019, 1:17 AM Jun 5, 2019, 7:10 AM

                @Fernando-Gietz May I ask what port the host returns the call to port 445 on the client? I ran the command:

                tcpdump -i ens192 dst port 445
                

                for the destination port of 445. I saw that it seemed FOG was calling out to each host in alphabetical order about 1 per second. If I understand correctly, is this plugin supposed to check real time/on the fly when I bring up the host edit page? It does not seem to be doing that. Please see the below mockup of what is happening:

                1 - TCP dump started for destination port 445.

                2- I see the following happening
                fogserver.domain.org—> Middleschoolroom1
                fogserver.domain.org—> Middleschoolroom2
                fogserver.domain.org—> Middleschoolroom3
                and so on

                3 - I open the host edit page for my PC (HS218-fry)

                4 - I check the tcp dump and I see that it never calls out to 445 on my pc and continues with:

                fogserver.domain.org—> Middleschoolroom4
                fogserver.domain.org—> Middleschoolroom5
                fogserver.domain.org—> Middleschoolroom6
                and so on

                It seems to never be attempting to contact my PC when I bring up the host edit page.

                Here is a real example. I brought up the host edit page for my PC right in the middle of this tcpdump pictured below.
                plugin.png

                Another oddity is that the built in host pinging on the host list page is working properly and even detecting these are windows clients. If I am not mistaken from what you said, this also uses port 445 on the client, no? I am just thinking out loud

                Like open source community computing? Why not do it for a good cause?
                Use your computer/server for humanitarian projects when it is idle!
                https://join.worldcommunitygrid.org?recruiterId=1026912

                1 Reply Last reply Reply Quote 0
                • F
                  Fernando Gietz Developer
                  last edited by Jun 5, 2019, 3:00 PM

                  @fry_p You can change both, line 110 and 114. If all works fine, when you are in FOS, must return 111 code. If you are under windows, must return 0.

                  which value return when you are under windows? 0 or 6?
                  If the value is 6, which OS are you using (Windows 7,8,10)?

                  Another oddity is that the built in host pinging on the host list page is working properly and even detecting these are windows clients.

                  The hostStatus plugin uses the same code that FOGHostPing daemon, if the daemon detects fine the status, there is something that doesn´t work correctly.

                  You have 1500 hosts, the daemon launchs one ping per second then the status is updated every 25 minutes, in your case the status info is not very reliable. In my opinion is better disable this daemon.

                  1 Reply Last reply Reply Quote 0
                  • G
                    gn_ro
                    last edited by Sebastian Roth Mar 7, 2020, 5:10 PM Mar 7, 2020, 10:59 AM

                    @Fernando-Gietz Hi,

                    I have installed the Host Status plugin on the latest FOG stable version (1.5.8) and it is not working. Running tcpdump on the FOG server does not show any packet to any host on port 445. The FOGPingHosts is working, or at least this is seems from the servicemaster.log
                    I can telnet from the FOG server to the hosts on port 445.

                    Where else can I look to debug this?

                    1 Reply Last reply Reply Quote 0
                    • F
                      Fernando Gietz Developer
                      last edited by Mar 9, 2020, 12:22 PM

                      Hi @gn_ro ,

                      I tested it in the last version 1.5.8 and works fine.

                      FOG_PingHosts.png

                      Take note that you must have opened the 445 TCP port in the client and you only see the status in the host page, not in the search page.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post

                      189

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.4k

                      Posts
                      Copyright © 2012-2024 FOG Project