OCS Inventory NG is running on a 64Bit Debian 6.0 server. Additionally packages from dotdeb.org are included for a more current version of PHP 5.3 and MySQL. When trying to wake up a client from the website the client does not wake up.
I did some testing with a small standalone php script to send the magic packet to one of my PCs. When using fsockopen with the PCs IP address the magic packet seems to get sent without error but the PC does not wake up. To my knowledge the magic packet should be send to the broadcast address but this is not possible because fsockopen shows an error that there are no rights to send something to the broadcast address (also tried runing the script as root with the same error).
For the moment I did a quick hack of the function_wol.php to not use fsockopen but use exec instead to run the wakeonlan tool:
exec("/usr/bin/wakeonlan ".$mac);
I did not include the IP address because the server and all clients are on the same subnet so the default 255.255.255.255 is just fine in my case.
Fix from another forum user to make WOL work with broadcast:
http:// forums. ocsinventory- ng.org/ viewtopic. php?id= 13008
I just added this because the user does not have any launchpad account