Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Stuck service on services status

    webGUI
    2
    12
    2700
    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.
    • G
      georgeman last edited by

      Hi everybody!

      This must be really simple, but I can't get it…

      You know, if you enable a service like DHCP server or NTP, you get a line added to the services status page where it shows its status. If you later on disable the service, it is not showing anymore on the services status page.

      Now, if you enable and then disable the IGMP proxy, it will still show on the services status page (will show stopped of course). How can I get rid of it from there as if have never touched it?

      BTW, I'm using the latest stable build of pfSense embedded.

      Thanks!

      Best regards

      If it ain't broke, you haven't tampered enough with it

      1 Reply Last reply Reply Quote 0
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        So you're seeing it under Status > Services even when there are -no- entries under Services > IGMP Proxy?

        The code that makes the service list is checking if there are any entries in that list and should only be showing it if there are entries there. If they are all deleted, the IGMP proxy would be effectively disabled, and the service shouldn't show any longer.

        But I'm also looking at the code on 2.1. It's possible that the check for that wasn't right on the version you are running and has already been fixed.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • G
          georgeman last edited by

          Exactly. I deleted all entries on the IGMP proxy page, but the it still shows under Status > Services.

          Any file I can manually modify?

          Thanks a lot!

          Best regards

          If it ain't broke, you haven't tampered enough with it

          1 Reply Last reply Reply Quote 0
          • jimp
            jimp Rebel Alliance Developer Netgate last edited by

            What version are you running?

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • G
              georgeman last edited by

              As per the dashboard it is "2.0.1-RELEASE (i386) built on Mon Dec 12 19:00:03 EST 2011". It is the 4G embedded version, running on an Alix 2D3.

              Regards!

              If it ain't broke, you haven't tampered enough with it

              1 Reply Last reply Reply Quote 0
              • jimp
                jimp Rebel Alliance Developer Netgate last edited by

                If you take a config backup, open it up in a text editor, find the igmp proxy section, can you attach or paste that here? I don't need to see the whole config, just the part that refers to igmp.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • G
                  georgeman last edited by

                  As it is right now, the config file is not showing any IGMP section, besides just a closing tab "<igmpproxy>" near the end of the file.

                  Now, if I manually add some interfaces to the proxy, it comes up this way:

                  - <igmpproxy>- <igmpentry><ifname>lan</ifname> 
                    <threshold><type>upstream</type> 
                  
                  <address> 
                  - <descr>-   ]]></descr> 
                  
                  - <igmpentry><ifname>opt1</ifname> 
                    <threshold><type>downstream</type> 
                  
                  <address> 
                  - <descr>-   ]]></descr> 
                  
                  Also, this shows up, which looks interesting:
                  
                  
                  • <revision>- <description>-   ]]></description>
                      <username>admin@172.21.2.2</username>
                      <time>1351000228</time></revision>
                  
                  Then, I deleted again the IGMP proxy entries, and exported again. Now it is showing the closing tab at the end, and also:
                  
                  
                  • <revision>- <description>-   ]]></description>
                      <username>admin@172.21.2.2</username>
                      <time>1351000593</time></revision>
                  
                  Something looks a little messed up in my config… :-[
                  </address></threshold></igmpentry> </address></threshold></igmpentry></igmpproxy> 
                  ```</igmpproxy>

                  If it ain't broke, you haven't tampered enough with it

                  1 Reply Last reply Reply Quote 0
                  • jimp
                    jimp Rebel Alliance Developer Netgate last edited by

                    No the revision bit looks right for that page, nothing out of the ordinary there.

                    What does that <igmpproxy>section look like -exactly- when you have no settings in the list?  (By that I mean when the list shows empty in the GUI and it shows in the service list but as stopped).</igmpproxy>

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • G
                      georgeman last edited by

                      Ctrl-F for "igmp" just returns the following line, at the end of the file:

                      
                      ...
                      
                      

                      And nothing else. There does not seem to be any IGMP "section"

                      If it ain't broke, you haven't tampered enough with it

                      1 Reply Last reply Reply Quote 0
                      • jimp
                        jimp Rebel Alliance Developer Netgate last edited by

                        It's there, it's just empty, as it should be…

                        In /usr/local/www/status_services.php, around line 313, change this:

                        if (count($config['igmpproxy']['igmpentry']) > 0) {
                        

                        to this:

                        if (is_array($config['igmpproxy']['igmpentry']) && (count($config['igmpproxy']['igmpentry']) > 0)) {
                        

                        That's what the code does on 2.1 where I know it works right. (Though that whole page has been revamped…)

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • G
                          georgeman last edited by

                          Great, thanks!! That did the trick ;D

                          I also made the same modification on the services widget file, and now it is showing properly. Check that in 2.1 just in case ;)

                          Thanks a lot!  :)

                          If it ain't broke, you haven't tampered enough with it

                          1 Reply Last reply Reply Quote 0
                          • jimp
                            jimp Rebel Alliance Developer Netgate last edited by

                            It can't be an issue on 2.1 because I moved that code to a common function so the code isn't duplicated between the two pages any longer. So the test only exists in one place, in an .inc file /etc/inc there. :-)

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

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