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

    WOL and Task doesn't work

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    32
    68.2k
    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.
    • T
      theleftfoot
      last edited by

      yepp, have the same files…i don’t know whats wrong…apart from mine WOL problem the “active task” didn’t work aswell…:-(

      [CODE][Tue May 20 10:47:29 2014] [error] [client 192.168.17.51] PHP Fatal error: Call to a member function mainMenu() on a non-object in /var/www/fog/management/index.php on line 72, referer: http://192.168.17.20/fog/management/
      [Tue May 20 10:54:52 2014] [error] [client 192.168.1.12] PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/lib/pages/DashboardPage.class.php on line 30, referer: http://192.168.1.1/fog/management/index.php?node=tasks&sub=active
      [Tue May 20 11:38:40 2014] [error] [client 192.168.17.51] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: http://192.168.17.20/fog/management/index.php?node=host&sub=add
      [Tue May 20 11:40:30 2014] [error] [client 192.168.17.51] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: http://192.168.17.20/fog/management/index.php?node=host&sub=list
      [Tue May 20 11:44:57 2014] [error] [client 192.168.17.51] PHP Warning: current() expects parameter 1 to be array, string given in /var/www/fog/lib/pages/HostManagementPage.class.php on line 312, referer: http://192.168.17.20/fog/management/index.php?node=host&sub=list
      [Tue May 20 14:20:22 2014] [error] [client 192.168.17.51] PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/lib/pages/DashboardPage.class.php on line 30
      [Tue May 20 14:34:32 2014] [error] [client 192.168.1.15] PHP Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/fog/lib/db/MySQL.class.php on line 95
      [Tue May 20 14:34:32 2014] [error] [client 192.168.1.15] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/fog/lib/db/MySQL.class.php on line 156
      [Tue May 20 14:34:33 2014] [notice] caught SIGTERM, shutting down
      [Tue May 20 15:18:53 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.8 configured – resuming normal operations
      [/CODE]

      raffa

      FOG 1.1.2
      Ubuntu 12.10
      VMWare 5.5 Up1

      1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        does a wol packet sent manually from the server work?

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • T
          theleftfoot
          last edited by

          how can i test this? sorry for my lack of knowledge…:-/

          FOG 1.1.2
          Ubuntu 12.10
          VMWare 5.5 Up1

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            Easiest method.

            Create a file in wol called testwol.php

            Place these commands:

            [php]<?php
            require_once(‘…/commons/base.inc.php’);
            $mac = ‘XX:XX:XX:XX:XX:XX’;
            $WOLtest = new WakeOnLan($mac);
            if ($WOLtest->send())
            print 'WOL Packet <b>SENT</b> to '.$mac;
            else
            print 'WOL Packet <b>NOT SENT</b> to '.$mac;
            ?>[/php]

            Replace the XX’s with that of one of the MAC’s you want to wake up.

            In your browser, go to [url]http://<FOGSERVERIP>/fog/wol/testwol.php[/url]
            You should see the output:
            [code]WOL Packet SENT to XX:XX:XX:XX:XX:XX[/code]

            With any luck, this actually wakes the system up too!

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • JunkhackerJ
              Junkhacker Developer
              last edited by

              or to test independently of anything fog related, use etherwake. [url]http://manpages.ubuntu.com/manpages/quantal/man8/etherwake.8.html[/url]
              i think you will find that if fog fails to do it, so will this. because the problem is not in fog.

              signature:
              Junkhacker
              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

              1 Reply Last reply Reply Quote 0
              • T
                theleftfoot
                last edited by

                thanks guys, will checked right now!

                raffa

                FOG 1.1.2
                Ubuntu 12.10
                VMWare 5.5 Up1

                1 Reply Last reply Reply Quote 0
                • T
                  theleftfoot
                  last edited by

                  okay, try the testwol.php script…but the notebook still sleeps!

                  i made a arp-scan on eth1 and the mac adress is not visible, because the node sleeps and is not on.

                  the fog wol stettings are attached and the network schema…
                  [ATTACH]804[/ATTACH][ATTACH]805[/ATTACH]

                  it might be due to the 2 network interface card? miss configuration?

                  damm…raffa

                  [url=“/_imported_xf_attachments/0/804_wol_settings.jpg?:”]wol_settings.jpg[/url][url=“/_imported_xf_attachments/0/805_ict_labor_FOG_image.jpg?:”]ict_labor_FOG_image.jpg[/url]

                  FOG 1.1.2
                  Ubuntu 12.10
                  VMWare 5.5 Up1

                  1 Reply Last reply Reply Quote 0
                  • R
                    Raff
                    last edited by

                    Change Settings FOG_WOL_INTERFACE to eth1.

                    1 Reply Last reply Reply Quote 0
                    • T
                      theleftfoot
                      last edited by

                      raff, like the pic above show --> it is on eth1

                      raffa

                      FOG 1.1.2
                      Ubuntu 12.10
                      VMWare 5.5 Up1

                      1 Reply Last reply Reply Quote 0
                      • R
                        Raff
                        last edited by

                        Your pic just tells us that your using connection eth1, not that you have configured fog to use eth1 for WOL in the fog settings.

                        check /var/www/fog/commons/config.php or use the console

                        define(‘WOL_HOST’, “1.1.1.1”);
                        define(‘WOL_PATH’, ‘/fog/wol/wol.php’);
                        define(‘WOL_INTERFACE’, “eth0”);

                        1 Reply Last reply Reply Quote 0
                        • T
                          theleftfoot
                          last edited by

                          ahh, sorry mate…seems okay!

                          [CODE]define(‘TFTP_HOST’, “192.168.1.1”);
                          define(‘TFTP_FTP_USERNAME’, “fog”);
                          define(‘TFTP_FTP_PASSWORD’, “daa6c4”);
                          define(‘TFTP_PXE_KERNEL_DIR’, ‘/var/www/fog/service/ipxe/’);
                          define(‘PXE_KERNEL’, ‘bzImage’);
                          define(‘PXE_KERNEL_RAMDISK’,127000);
                          define(‘USE_SLOPPY_NAME_LOOKUPS’,true);
                          define(‘MEMTEST_KERNEL’, ‘memtest.bin’);
                          define(‘PXE_IMAGE’, ‘init.xz’);
                          define(‘PXE_IMAGE_DNSADDRESS’, “8.8.8.8”);
                          define(‘STORAGE_HOST’, “192.168.1.1”);
                          define(‘STORAGE_FTP_USERNAME’, “fog”);
                          define(‘STORAGE_FTP_PASSWORD’, “daa6c4”);
                          define(‘STORAGE_DATADIR’, ‘/images/’);
                          define(‘STORAGE_DATADIR_UPLOAD’, ‘/images/dev/’);
                          define(‘STORAGE_BANDWIDTHPATH’, ‘/fog/status/bandwidth.php’);
                          define(‘UPLOADRESIZEPCT’,5);
                          define(‘WEB_HOST’, “192.168.1.1”);
                          define(‘WOL_HOST’, “192.168.1.1”);
                          define(‘WOL_PATH’, ‘/fog/wol/wol.php’);
                          define(‘WOL_INTERFACE’, “eth1”);
                          define(‘SNAPINDIR’, “/opt/fog/snapins/”);
                          define(‘QUEUESIZE’, ‘10’);
                          define(‘CHECKIN_TIMEOUT’,600);
                          define(‘USER_MINPASSLENGTH’,4);
                          define(‘USER_VALIDPASSCHARS’, ‘1234567890ABCDEFGHIJKLMNOPQRSTUVWZXYabcdefghijklm nopqrstuvwxyz_()^!#-’);
                          define(‘NFS_ETH_MONITOR’, “eth1”);
                          define(‘UDPCAST_INTERFACE’, “eth1”);
                          define(‘UDPCAST_STARTINGPORT’, 63100 ); / / Must be an even number! recommended between 49152 to 65535
                          define(‘FOG_MULTICAST_MAX_SESSIONS’,64);
                          define(‘FOG_JPGRAPH_VERSION’, ‘2.3’);
                          define(‘FOG_REPORT_DIR’, ‘./reports/’);
                          define(‘FOG_UPLOADIGNOREPAGEHIBER’,true);
                          define(‘FOG_DONATE_MINING’, “0”);[/CODE]

                          FOG 1.1.2
                          Ubuntu 12.10
                          VMWare 5.5 Up1

                          1 Reply Last reply Reply Quote 0
                          • R
                            Raff
                            last edited by

                            In your pic your fog host is 192.168.1.2 but in your configuration its 192.168.1.1, is that an error in the pic or have you changed the static IP on the server.

                            1 Reply Last reply Reply Quote 0
                            • T
                              theleftfoot
                              last edited by

                              the pictures is wrong…192.168.1.1 is corrcet!

                              FOG 1.1.2
                              Ubuntu 12.10
                              VMWare 5.5 Up1

                              1 Reply Last reply Reply Quote 0
                              • R
                                Raff
                                last edited by

                                Raffa,

                                The only thing I can suggest now is to try it with a server with a single card configured to use eth0.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  theleftfoot
                                  last edited by

                                  thanks for helping, i will try the WOL on eth0…cheers

                                  FOG 1.1.2
                                  Ubuntu 12.10
                                  VMWare 5.5 Up1

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    Raff
                                    last edited by

                                    I just thought of something else. Have you got 2 gateways configured on the server, on both eth0 and eth1 because that would cause an issue.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      theleftfoot
                                      last edited by

                                      yes, i have for each network…192.168.1.1 for the eth1 and 192.168.17.1 for the eth0

                                      FOG 1.1.2
                                      Ubuntu 12.10
                                      VMWare 5.5 Up1

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        Raff
                                        last edited by

                                        remove the gateway 192.168.1.1, leave it blank.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          theleftfoot
                                          last edited by

                                          will try…:)

                                          FOG 1.1.2
                                          Ubuntu 12.10
                                          VMWare 5.5 Up1

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            theleftfoot
                                            last edited by

                                            was not successfully…

                                            my firewall settings;

                                            [CODE]# Generated by iptables-save v1.4.12 on Fri May 23 16:14:51 2014
                                            *mangle
                                            :PREROUTING ACCEPT [0:0]
                                            :INPUT ACCEPT [0:0]
                                            :FORWARD ACCEPT [0:0]
                                            :OUTPUT ACCEPT [0:0]
                                            :POSTROUTING ACCEPT [0:0]
                                            COMMIT

                                            Completed on Fri May 23 16:14:51 2014

                                            Generated by iptables-save v1.4.12 on Fri May 23 16:14:51 2014

                                            *nat
                                            :PREROUTING ACCEPT [956:91224]
                                            :INPUT ACCEPT [508:45734]
                                            :OUTPUT ACCEPT [95:7272]
                                            :POSTROUTING ACCEPT [6:604]
                                            -A POSTROUTING -o eth0 -j MASQUERADE
                                            COMMIT

                                            Completed on Fri May 23 16:14:51 2014

                                            Generated by iptables-save v1.4.12 on Fri May 23 16:14:51 2014

                                            *filter
                                            :INPUT ACCEPT [10284:10111083]
                                            :FORWARD ACCEPT [2027:2489014]
                                            :OUTPUT ACCEPT [6609:1081709]
                                            -A FORWARD -i eth1 -j ACCEPT
                                            -A FORWARD -i eth2 -j ACCEPT
                                            COMMIT

                                            Completed on Fri May 23 16:14:51 2014[/CODE]

                                            but i don’t know what eth2 is!

                                            FOG 1.1.2
                                            Ubuntu 12.10
                                            VMWare 5.5 Up1

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

                                            121

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project