Doing magic with Fog - But simplest things stumping me
-
Hi Guys
I have successfuly been able to modify fog interface, mysql database etc to acomodate some customisations for our organisation. Namely, from the interface, we can now initiate a remote desktop session when viewing hosts, fog interface now shows software inventory of the host as well as hardware inventory. Interface / database now caters for windows update patch management.
HOWEVER… I still cant send one snap in to a group without sending the lot or going through each host one by one to send them a snap-in. I am trying to avoid having to write PHP code which executes as a cron job which manually inserts tasks in the database… is there any other way I can send 1 cron style snap-in to a group in isolation?
Thanks.
-
Hey Lethal
I added the following to /var/www/fog/management/includes/tasks.advanced.include.php around line 165, i’m using FOG 0.32, seems to work a treat, not sure why its not included in the standard build.
[PHP] <tr>
<td class=“c”><a href=“?node=tasks&type=group&direction=onesnap&noconfirm=<?php print $groupid; ?>”><img src=“./images/snap.png” /><p><?php print _(‘Deploy Single Snapin’); ?></p></a></td>
<td><p><?php print _(‘This option allows you to send a single snapin to a Group. (Requires FOG Service to be installed on client)’); ?></p></td>
</tr>[/PHP]Would love to know how you have added extra info to the database I would like to add a location to the hosts section so I know where my computers are, have requested the feature maybe you can help [url]http://fogproject.org/forum/threads/location-information-for-each-host.913/[/url]
-
lethal kebab have you considered posting your additions to the sourceforge patch page? I know my organization would be happy to use the features you have implemented.
-
I made a patch file for this for Ubuntu. Download the file, unzip it, and run this command from the directory containing the patch file.
[CODE]sudo patch /var/www/fog/management/includes/tasks.advanced.include.php ./single-snapin.patch[/CODE]
[url=“/_imported_xf_attachments/0/150_single-snapin.zip?:”]single-snapin.zip[/url]
-
[quote=“Terry Bates, post: 5057, member: 594”]Hey Lethal
I added the following to /var/www/fog/management/includes/tasks.advanced.include.php around line 165, i’m using FOG 0.32, seems to work a treat, not sure why its not included in the standard build.
[PHP] <tr>
<td class=“c”><a href=“?node=tasks&type=group&direction=onesnap&noconfirm=<?php print $groupid; ?>”><img src=“./images/snap.png” /><p><?php print _(‘Deploy Single Snapin’); ?></p></a></td>
<td><p><?php print _(‘This option allows you to send a single snapin to a Group. (Requires FOG Service to be installed on client)’); ?></p></td>
</tr>[/PHP]Would love to know how you have added extra info to the database I would like to add a location to the hosts section so I know where my computers are, have requested the feature maybe you can help [url]http://fogproject.org/forum/threads/location-information-for-each-host.913/[/url][/quote]
Thanks Lethal, this is a great help. I’m going to use FOG to apply updates for programs such as flash/java etc. This is great thankyou,