Search found 40 matches
- Thu Oct 18, 2012 12:31 am
- Forum: Scripts and Tips
- Topic: Event Log Monitor
- Replies: 4
- Views: 27544
ok, sorted now VBSTART strComputer = "ITSDEV" Function ReadEventLog(LogFile,Code) Set objWMIService = GetObject("winmgmts:"&"{impersonationLevel=impersonate}!\\"&strComputer&"\root\cimv2") Set colLoggedEvents = objWMIService.ExecQuery ("Select * from Win32_NTLogEvent Where Logfile = '" & LogFile & "...
- Wed Oct 17, 2012 9:54 pm
- Forum: Scripts and Tips
- Topic: Event Log Monitor
- Replies: 4
- Views: 27544
Thanks Marcus, so, the code is Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") If I set this to (servername = ITSDEV) Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\&ITSDEV&\root\cimv2") I think my syntax is wrong perhaps? I get a...
- Wed Oct 17, 2012 12:21 am
- Forum: Scripts and Tips
- Topic: Event Log Monitor
- Replies: 4
- Views: 27544
Multiple Server Support?
Excellent script thanks Marcus!! I am currently using it, and I was wanting to know if it is it possible to scan the windows event logs of other servers? Rather than having to install MS on all my servers - I prefer to have the one server doing all the monitoring. I have 5 servers on the same networ...
- Sun Sep 30, 2012 10:19 pm
- Forum: Technical / Scripting
- Topic: Creating a line graph from script created data
- Replies: 14
- Views: 16509
- Wed Sep 26, 2012 12:28 am
- Forum: Technical / Scripting
- Topic: Creating a line graph from script created data
- Replies: 14
- Views: 16509
I was thinking if I can have an HTML Page, which has say a 60second autorefresh, that would re-generate any new data written to the file into the graph being displayed. Date, Time, FileCount 19/09/2012,9:46:03 a.m., 32, 19/09/2012,9:54:03 a.m., 15, 19/09/2012,10:02:03 a.m., 28, 19/09/2012,10:10:03 a...
- Tue Sep 25, 2012 11:21 pm
- Forum: Technical / Scripting
- Topic: Creating a line graph from script created data
- Replies: 14
- Views: 16509
- Tue Sep 25, 2012 1:10 am
- Forum: Technical / Scripting
- Topic: Creating a line graph from script created data
- Replies: 14
- Views: 16509
Thanks mate, Yes I do want to output the graph so i can publish on a site. I just tested your script - and when it gets to line AddDialogHandler>Dialog1,,OnClose,Quit I get an error "Invalid Numeric Date or Date format in "Add>Dialog1,,OnClose,Quit". Any ideas on that? I click OK and continue debugg...
- Tue Sep 18, 2012 10:52 pm
- Forum: Technical / Scripting
- Topic: Creating a line graph from script created data
- Replies: 14
- Views: 16509
Thanks JRL, I had a look at the samples and delivered a headache!!! So I have a file - webstat.txt inside it I have the following data: Date, Time, FileCount 19/09/2012,9:46:03 a.m., 32, 19/09/2012,9:54:03 a.m., 15, 19/09/2012,10:02:03 a.m., 28, 19/09/2012,10:10:03 a.m., 22, 19/09/2012,10:18:03 a.m....
- Tue Sep 18, 2012 8:38 pm
- Forum: Technical / Scripting
- Topic: Creating a line graph from script created data
- Replies: 14
- Views: 16509
Creating a line graph from script created data
Hi Guys, I have a script that I run every x minutes that does three things: 1. Send an Alert if files received are not being processed 2. Send an Alert if no files received for x amount of time 3. Display statistical data onto a basic website ( http://www.itslonline.com/DropStats.html ) I have it al...
- Mon Feb 28, 2011 1:01 am
- Forum: General Discussion
- Topic: Remote Desktop Session Conflict?
- Replies: 2
- Views: 10362
- Wed Dec 09, 2009 3:24 am
- Forum: Technical / Scripting
- Topic: adding lines to a file
- Replies: 6
- Views: 7895
- Wed Dec 09, 2009 1:29 am
- Forum: Technical / Scripting
- Topic: adding lines to a file
- Replies: 6
- Views: 7895
- Wed Dec 09, 2009 1:27 am
- Forum: Technical / Scripting
- Topic: adding lines to a file
- Replies: 6
- Views: 7895
thanks mate - exactly what I am after - problem is that as you can see the below 2 lines are not writing the name correctly - I cant see an error so not sure whats happening - any ideas? 13970,Raeoni Jackson,0,0,NO DATA,NO DATA, 32331,%Dialog2.msedit1%,0,0,NO DATA,NO DATA 34234,%Dialog2.msedit1%,0,0...
- Tue Dec 08, 2009 7:43 pm
- Forum: Technical / Scripting
- Topic: adding lines to a file
- Replies: 6
- Views: 7895
adding lines to a file
Hi all, I have a file which staff will open in notepad, then add their own line and save. The problem is - they tend to stuff things up. The format of the file is below - it has a header followed by the data. It is a csv but uses a .sb extension. BASE,100,DRIVERS,100,6,29/08/2002 9:04,29/08/2002 9:0...
- Mon Nov 02, 2009 3:37 am
- Forum: Technical / Scripting
- Topic: Backup - ZIP - Then email
- Replies: 15
- Views: 15037