Bernd

Working on it, no promises. All new to me here :-)

Looking at the file it needs at least a ENDLOCAL at the end, but this is 
minor

Startup should be manual instead of auto ihmo.

Maybe the PROCRUN needs a --StopClass %COLLECTOR_CLASS% not sure here.

Looking @ http://commons.apache.org/proper/commons-daemon/procrun.html
SET 
COLLECTOR_JVM_OPTIONS=-Djava.library.path=%COLLECTOR_ROOT%\lib\sigar;-Dfile.encoding=UTF-8
 
-Xms12m -Xmx64m
ther should be ; oe # between the otions
SET 
COLLECTOR_JVM_OPTIONS=-Djava.library.path=%COLLECTOR_ROOT%\lib\sigar;-Dfile.encoding=UTF-8;-Xms12m;-Xmx64m

Can you hand me here the output f tour win7 installer that works?




On Thursday, May 28, 2015 at 4:43:25 PM UTC+2, Bernd Ahlers wrote:
>
> Arie, 
>
> can you put an ECHO in front of the "%PROCRUN //IS//%SERVICE_NAME%" 
> line. That should print the command as it would be executed. Then try to 
> fiddle with it until it works. That would be awesome! 
>
> Bernd 
>
> Arie [Wed, May 27, 2015 at 02:14:32PM -0700] wrote: 
> >It appears to go wrong at this line: 
> > 
> >"%PROCRUN%" //IS//%SERVICE_NAME% ...... etc. 
> > 
> >No errors before. 
> > 
> > 
> > 
> >Op woensdag 27 mei 2015 22:25:02 UTC+2 schreef Bernd Ahlers: 
> >> 
> >> Arie, 
> >> 
> >> can you please check if this script works for you? 
> >> 
> >> https://gist.github.com/bernd/d26366422d42154534db 
> >> 
> >> Thanks! 
> >> 
> >> Bernd 
> >> 
> >> Arie [Wed, May 27, 2015 at 07:02:20AM -0700] wrote: 
> >> >Okay it is running and sending data to graylog from windows, 
> >> >Now it is only not installing as a service, having the following 
> error. 
> >> > 
> >> >C:\collector\bin>graylog-collector-service.bat install GA 
> >> >Installing service for Graylog Collector 
> >> > 
> >> >Service name: "GA" 
> >> >JAVA_HOME:    "C:\Program Files\Java\jre7\" 
> >> >ARCH:         "x86" 
> >> > 
> >> >WARNING: JAVA_HOME points to a JRE and not JDK installation; a client 
> >> (not 
> >> >a server) JVM will be used... 
> >> >[2015-05-27 16:00:35] [error] [ 2796] Unrecognized cmd option 
> >> >C:\collector\bin\\windows\graylog-collector-service-x86.exe 
> >> >[2015-05-27 16:00:35] [error] [ 2796] Invalid command line arguments 
> >> >[2015-05-27 16:00:35] [error] [ 2796] Commons Daemon procrun failed 
> with 
> >> >exit value: 1 (Failed to parse command line arguments) 
> >> >ERROR: Failed to install service: GA 
> >> > 
> >> >C:\collector\bin> 
> >> > 
> >> > 
> >> >On Wednesday, May 27, 2015 at 3:30:20 PM UTC+2, Arie wrote: 
> >> >> 
> >> >> Sorry, I see the typo in my config :-( It is running now 
> >> >> 
> >> >> 
> >> >> On Wednesday, May 27, 2015 at 2:29:31 PM UTC+2, Arie wrote: 
> >> >>> 
> >> >>> I am playing around with the collector. 
> >> >>> 
> >> >>> From a linux machine we are getting data into our test machine, 
> Al-tho 
> >> >>> data is flat/ one line message. 
> >> >>> 
> >> >>> Within windows(2003) we have the following error: 
> >> >>> 
> >> >>> C:\collector\bin>graylog-collector.bat run -f 
> >> >>> c:\collector\config\collector.conf 
> >> >>> 2015-05-27T13:20:06.846+0200 INFO  [main] cli.commands.Run - 
> Starting 
> >> >>> Collector v0.2.1 (commit 93f4b8e) 
> >> >>> 2015-05-27T13:20:08.940+0200 INFO  [main] 
> collector.utils.CollectorId 
> >> - 
> >> >>> Collector ID: dd6c1e19-19b5-422e-b06f-14799d5f7b14 
> >> >>> 2015-05-27T13:20:08.987+0200 ERROR [main] cli.commands.Run - 
> >> >>> Configuration Error: [local-syslog] No configuration setting found 
> for 
> >> key 
> >> >>> 'type' 
> >> >>> 2015-05-27T13:20:09.002+0200 INFO  [main] cli.commands.Run - Exit 
> >> >>> 2015-05-27T13:20:09.002+0200 INFO  [Thread-1] cli.commands.Run - 
> >> >>> Stopping... 
> >> >>> 
> >> >>> in the config on windows (2003): 
> >> >>> 
> >> >>> inputs { 
> >> >>>   local-syslog { 
> >> >>>   win-application { 
> >> >>>     type = "windows-eventlog" 
> >> >>>     source-name = "Application" 
> >> >>>     poll-interval = 1s 
> >> >>>     } 
> >> >>>   } 
> >> >>> } 
> >> >>> 
> >> >>> 
> >> >>> 
> >> >>> Is this just where we are now, and are there improvements coming 
> up/ 
> >> >>> 
> >> >>> 
> >> >>> nice work. 
> >> >>> 
> >> >>> 
> >> >>> 
> >> >>> 
> >> >>> 
> >> >>> 
> >> >>> 
> >> >>> 
> >> >>> 
> >> > 
> >> >-- 
> >> >You received this message because you are subscribed to the Google 
> Groups 
> >> "graylog2" group. 
> >> >To unsubscribe from this group and stop receiving emails from it, send 
> an 
> >> email to graylog2+u...@googlegroups.com <javascript:>. 
> >> >For more options, visit https://groups.google.com/d/optout. 
> >> 
> >> 
> >> -- 
> >> Developer 
> >> 
> >> Tel.: +49 (0)40 609 452 077 
> >> Fax.: +49 (0)40 609 452 078 
> >> 
> >> TORCH GmbH - A Graylog company 
> >> Steckelhörn 11 
> >> 20457 Hamburg 
> >> Germany 
> >> 
> >> Commercial Reg. (Registergericht): Amtsgericht Hamburg, HRB 125175 
> >> Geschäftsführer: Lennart Koopmann (CEO) 
> >> 
> > 
> >-- 
> >You received this message because you are subscribed to the Google Groups 
> "graylog2" group. 
> >To unsubscribe from this group and stop receiving emails from it, send an 
> email to graylog2+u...@googlegroups.com <javascript:>. 
> >For more options, visit https://groups.google.com/d/optout. 
>
>
> -- 
> Developer 
>
> Tel.: +49 (0)40 609 452 077 
> Fax.: +49 (0)40 609 452 078 
>
> TORCH GmbH - A Graylog company 
> Steckelhörn 11 
> 20457 Hamburg 
> Germany 
>
> Commercial Reg. (Registergericht): Amtsgericht Hamburg, HRB 125175 
> Geschäftsführer: Lennart Koopmann (CEO) 
>

-- 
You received this message because you are subscribed to the Google Groups 
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to