Hi Louis,
That's an idea, indeed. And probably the best solution until I move to
openvas 9.
ThanksOn Wed, 2018-04-25 at 08:40 -0400, Louis Bohm wrote:
> Another way is to do it in a script.  
>       Dump out the list of tasks and their UUIDs.
>       Create cron jobs to start the task.
>       Use the Alert method to send an email or create a file when the
> task is complete.
>       When the task is complete fire off another task…
> 
> Louis
> :::::
> Louis Bohm - Sr. Systems Engineer
>       Dell TechDirect Certified
> 
> > On Apr 25, 2018, at 8:23 AM, Roger Davies <rog.dav...@gmail.com>
> > wrote:
> > 
> > Hi
> > 
> > It's not the nicest solution, but it does work. 
> > 
> > In the 'Alerts' setup, you can use the 'Start Task' method, which
> > then gives you the option to select a task name, 'Start Task'. 
> > 
> > You have one task, task1, that operates on a schedule, This task1
> > has an alert which is setup to call another task, task2, when the
> > original task1 is 'done'. Then in task2, you have an alert that
> > calls task3 etc.etc. 
> > 
> > Obviously, you can have many alerts for tasks, so an email to say
> > it's started and an email to say it's finished and an alert that
> > copies a report somewhere, or whatever. 
> > 
> > It's not as nice as having them on a schedule, but if you comment
> > the structure in your task names or something, it should explain
> > itself. 
> > 
> > Roger 
> > 
> > 
> > On 25 April 2018 at 12:58, Thijs Stuurman 
> > ervices.nl> wrote:
> > > Sounds like a horrible solution to me even if it works.
> > >  
> > >  
> > > Thijs Stuurman
> > > Security Operations Center | KPN Internedservices B.V.
> > > thijs.stuur...@internedservices.nl | thijs.stuur...@kpn.com
> > > T: +31(0)299476185 | M: +31(0)624366778
> > > PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/)
> > > Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048
> > >  
> > > W: https://www.internedservices.nl | L: https://nl.linkedin.com/i
> > > n/thijsstuurman
> > >  
> > > Van: tatooin <tato...@free.fr> 
> > > Verzonden: woensdag 25 april 2018 13:55
> > > Aan: Roger Davies <rog.dav...@gmail.com>
> > > CC: Thijs Stuurman <thijs.stuur...@internedservices.nl>; openvas-
> > > disc...@wald.intevation.org
> > > Onderwerp: Re: [Openvas-discuss] Tasks Autostart plugin for
> > > openvas ?
> > >  
> > > Hi Roger,
> > >  
> > > I don't get it. Adding an alert to the first task will only log
> > > when the task is done, it won't start the next task
> > > automatically. Or am I missing something here ?
> > >  
> > > Thanks
> > >  
> > > On Wed, 2018-04-25 at 11:30 +0100, Roger Davies wrote:
> > > Hi
> > > 
> > > You can daisy-chain one task after another using the alerts bit.
> > > So, setup an alert which uses the 'Start Task' method on "Task
> > > run status changed (to Done)", then add that alert to the first
> > > task.
> > > 
> > > Roger
> > >  
> > > On 18 April 2018 at 08:27, tatooin <tato...@free.fr> wrote:
> > > 
> > > Thanks Thijs,
> > >  
> > > I will have a look at your script.
> > >  
> > > Best,
> > >  
> > > On Tue, 2018-04-17 at 12:14 +0000, Thijs Stuurman wrote:
> > > I use gvm-tools and a python script to schedule my jobs, perhaps
> > > this can serve as inspriration for your own solution:
> > >  
> > > https://github.com/Thijssss/openvas_scheduler
> > >  
> > > Thijs Stuurman
> > > Security Operations Center | KPN Internedservices B.V.
> > > thijs.stuur...@internedservices.nl | thijs.stuur...@kpn.com
> > > T: +31(0)299476185 | M: +31(0)624366778
> > > PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/)
> > > Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048
> > >  
> > > W: https://www.internedservices.nl | L: https://nl.linkedin.com/i
> > > n/thijsstuurman
> > >  
> > > Van: Openvas-discuss <openvas-discuss-boun...@wald.intevation.org
> > > > Namens tatooin
> > > Verzonden: dinsdag 17 april 2018 09:09
> > > Aan: openvas-discuss@wald.intevation.org
> > > Onderwerp: [Openvas-discuss] Tasks Autostart plugin for openvas ?
> > >  
> > > Hi,
> > >  
> > > I was wondering if there was a plugin to automatically start
> > > tasks in order.  I have ordered my tasks by groups, and on a
> > > regular basis I'm running all tasks on a given group. But this
> > > remain a manual step, as I have to login to the console and start
> > > tasks one after the other (or not more than 2 or 3 tasks
> > > simultaneously to avoid overwhelming the Openvas manager) so I
> > > was wondering if there was any plugins or something close to it
> > > to allow automatic starts of tasks once the first in list is
> > > finished ?
> > >  
> > > The scheduling feature cannot do this unfortunately.
> > >  
> > > Thanks !
> > > 
> > > _______________________________________________
> > > Openvas-discuss mailing list
> > > Openvas-discuss@wald.intevation.org
> > > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openva
> > > s-discuss
> > >  
> > > 
> > > 
> > 
> > 
> > -- 
> > http://www.jazzpod.co.uk
> > 
> > Use Mint - http://www.linuxmint.com/
> > - Registered Linux User # 38263
> > 
> > _______________________________________________
> > Openvas-discuss mailing list
> > Openvas-discuss@wald.intevation.org
> > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-
> > discuss
> _______________________________________________
> Openvas-discuss mailing list
> Openvas-discuss@wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-di
> scuss
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to