topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 25, 2024, 6:04 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - timns [ switch to compact view ]

Pages: prev1 ... 3 4 5 6 7 [8] 9 10 11 12 13 ... 49next
176
Speaking for myself, I suspect that part of the reason many of us are no longer seduced by expensive, feature-rich e-mail clients (says he who uses Outlook!), is that e-mail seems to have SERIOUSLY declined in use over the past five or so years. The decline may well have started before then, but I don't receive or send anything near the volume of e-mail that I did in the past. This is a general trend, not just my experience, I *think*, non?

Non. In my case anyway. If anything I find that email is busier than ever. Then again, our company is getting busier, and I live away from most of my family and friends. Which is both  :down: and  :up: depending on one's mood  :D

177
Living Room / Re: Do it yourself dropbox
« on: March 09, 2011, 09:41 AM »
I achieved something similar on our own Windows servers using VPN, auto-login scripts and a shared drive.

178
I think it would be possible to know which services are due to be started, and also which applications. Once the OS reports that all those processes are running, it would be safe to infer the boot has completed. Adding a timeout to this may help to also tell you if something failed to start up in a spritely manner.

179
Mini-Reviews by Members / Re: Mini Review of SugarSync and DropBox
« on: March 08, 2011, 11:52 AM »
I always had a 'thing' for Wilma off the Flintstones. But I knew it could never be...

... she'd never leave Fred.

181
Is that it then? Have we ground to a halt?

I can still release all my bits-n-bobs but I have to say I don't feel _quite_ as motivated if it's just me peeing into the wind here  :P

182
Site/Forum Features / Re: Shortcomings of DC and How to Improve
« on: March 07, 2011, 10:13 PM »
Actually, it's the $5500 mark for some reason...

183
Put me down for the 9th - I'll do a mini-review,
and later I'll do that RegEx How-To, too.

184
Living Room / Re: When you make your 100'th Post
« on: March 07, 2011, 09:35 AM »
Ah! Good catch chaps - thank you for spotting those for me.  :Thmbsup:

185
@lotusrootstarch: very nice of you to say so.

I may make some small tweaks to the system over time. If so, I'll try to update the article accordingly.

186
Three cheers for Stoic Joker! Is there a teaser?

187
Site/Forum Features / Re: Shortcomings of DC and How to Improve
« on: March 06, 2011, 07:02 PM »
I have to disagree. Where does one go to see a complete list of the software available on DC? Certainly not the "Software" link at the top of the page.

I would definitely say that's one area that has been quite well identified as "needs improvement" and is (I hope) being very ably addressed even as I type this.  :)

188
Wow, cool stuff you realised. :-)

Would it be possible to have the Skype DLL's on a server without really installing skype.
That way, we could create a monitoring system on servers that arn't really ours, but where we install a particulair software. :-)

Thank you!

Unfortunately skype has to be running for this to work. You can launch it from within your software, but this probably means it would have to be installed on the machine in question.

189
I can finally see your new avatar

Yeah, me too! It's there to remind me to give it a rest every once in a while.  ;)


Yeah, you know what they say: 39 may be uncomfortable, but 40hz

190
Living Room / Re: Note taking Methods and Software
« on: March 06, 2011, 02:41 PM »
By the way perhaps worth mentioning that Pagico tries to help you adhere to some of the GTD principles.

191
Living Room / Re: Note taking Methods and Software
« on: March 06, 2011, 01:50 PM »
Pagico: www.pagico.com

AceText: www.acetext.com

Micorsoft's OneNote which I am really warming to

192
Thank you Chris.

I do realise it's a rather rarefied topic but I'm hoping that it's food for thought.

193
I just posted today's how-to over in the mini-reviews section:

https://www.donation....msg240333#msg240333

194
Mini-Reviews by Members / Using Skype to Monitor Remote Systems
« on: March 06, 2011, 09:58 AM »
Background

One of the options my company offers is SaaS  to companies who need a plug-in to help with their logistics operations. We provide a little network of servers that host several web services with various API's. Obviously, as part of this we have to offer support and are committed to fairly aggressive SLA's.

In order to help with this, I decided to implement a continual monitoring system to alert us of any systems falling over in our little farm. Being on a limited budget and an inveterate code tinkerer, I set up a little project to see if I could rustle something up. As far as I am aware, this is a novel approach to real-time systems monitoring. A sort of "poor man's Tivoli" if you like.

Approach

I have set up each machine in our cluster to monitor two others. I've found this to be the optimal arrangement. If we lose a node, we get a maximum of two other servers alerting us to the fact. Even multiple node failures will always ensure a manageable quantity of alert messages instead of being swamped.

WhoToWho.png

So what happens is that every minute, each machine asks its partner machines their status. This is achieved by a small self-written program installed as a Windows service. Every 60 seconds it wakes up and executes a simple call to each web service that it knows about. Depending on the result of this call, the software performs various logging operations and takes further actions if required.

In my case, our webservices will respond to the equivalent of a ping request, returning a brief status message.

One of three things can happen:

- no response: panic in the streets!
- bad response: check as soon as possible
- good response: back to sipping coffee

This diagram exemplifies the steps taken.

NetworkMonitor.png

I decided to keep it very simple: if we bump into an issue, the event is logged so we can trace back when things began to go wrong. But also, if there is an important state change, several of us on the support team are instantly notified by a Skype instant message right to our desktops. Our monitoring app can also dial out via Skype to whoever is on call.

And this is the part that I believe is quite unique. I utilised the Skype API so that we could use it to send messages to anyone who was currently interested in the status of our servers, without them having to be logged in. Or even have any type of account on the boxes. This means we can safely include end-users if they are interested in collating their own uptime stats.

SampleMessage.png

So after installing skype on our servers, all I had to do was write a little bit of code. This was almost pathetically easy: the entire monitoring application is perhaps 300 lines of Delphi code. Skype provides an API with some easy examples to show you how to hook in. Every 60 seconds the program awakens and firstly pings each node on its list. If successful it then makes a status enquiry to the web services themselves.

Code fragment from the app's OnCreate method: (constructor)
Code: Delphi [Select]
  1. Skype := TSkype.Create(self);
  2.     Skype.OnMessageStatus := SkypeMessageStatus;
  3.     try
  4.       Skype.Attach(8, False);
  5.       SendMessage('Bxxxxx Monitor started');
  6.     except
  7.       on e: Exception do begin
  8.         HandleException(e);
  9.       end;
  10.     end;

Code fragment showing how easy it is to send an IM:
Code: Delphi [Select]
  1. if Skype.AttachmentStatus <> 0 then
  2.   begin
  3.     try
  4.       Skype.Attach(8, false);
  5.     Skype.SendMessage(SkypeContacts, message);
  6.   except
  7.      on e: Exception do begin
  8.        HandleException(e);
  9.      end;
  10.   end;

... and to handle incoming messages:
Code: Delphi [Select]
  1. procedure TMainForm.SkypeMessageStatus(Sender: TObject;
  2.   const pMessage: IChatMessage;
  3.   Status: TChatMessageStatus);
  4. begin
  5.   case Status of
  6.     cmsReceived: Logger.Log('Recv ' + pMessage.FromHandle + ': ' + pMessage.Body);
  7.     cmsSent: Logger.Log('Sent ' + pMessage.Chat.DialogPartner + ': ' + pMessage.Body); // handle multiple partners

As you can see, what's really nice is that I can now write entries into any server's log file from my desktop, simply by sending an IM from my skype account to the destination server! We use this facility to annotate various activities and it provides a useful audit trail.

Sample from our log file:
Code: Text [Select]
  1. 9/25/2010 1:36:22 PM-I-Sent Timxxxxx: WARNING: Bxxxxx DOWN on node xxx.xxx.xxx.xxx
  2. 9/25/2010 1:36:22 PM-I-Recv Timxxxxx: Ok, I got this one
  3. 9/25/2010 1:36:25 PM-I-Sent Txxxxx: INFORMATION: Bxxxxx UP on node xxx.xxx.xxx.xxx
  4. 9/25/2010 1:36:27 PM-I-Recv Timxxxxx: Ping timeout. I blame the ISP ;)

Of course at this point you are saying to yourself "how do you keep skype running when you are not even logged into the servers?" and it's a good question. In order to keep skype running, and have it survive reboots without a re-login, I set up the program as a Windows service. To achieve this, I used the excellent XYNTservice program

In conclusion I believe this approach is very useful for small and budget conscious businesses who need some automated way to keep an eye on the health of their services. I've been using this technique for 9 months now and it has proven to be very reliable, and so far we have not missed a single occurence of downtime.

Summary of advantages
  • It is a lightweight, free solution
  • It has proven to be very stable
  • You get an instant message and/or a call immediately any problem is detected
  • You and your team can subscribe or unsubscribe to any of the servers contact lists in order to switch yourselves in and out of support (we use block/unblock)
  • It requires minimal development and configuration
  • The paradigm is scalable

Disadvantages
  • You have to have skype running. Personally I rely on skype a great deal, and encourage our userbase to contact us via skype for low-priority support.
  • If Skype goes down, as it famously did in early January 2011, you will have to find an alternative way to check your systems
  • I would not call it an Enterprise solution

If you're at all interested in more information just give me a shout. I would be happy to show you an instance of the system in action on a test server, and/or help you set up something similar for yourself.

195
Living Room / Re: On the Road to Terror!
« on: March 06, 2011, 09:47 AM »
The major errors were of course intentional.  :P

As for the grammatical or 'picky' errers - probably just typos although I have been known to make silly mistakes. Usually my grammer and spellling is being beyond reproach  8)

196
Where do I post this here "How-To?"

Actually it's more like a "How I Did" but comes with an offer of further explanation if anyone's interested.

197
Cool! We should let mouser take charge of the IRS....    :-\

On second thought, maybe Chris Krainioskoppcialxxit..   errrrrr   :-[

Jim

Anyone up for a buck a day for the rest of the month?
-cranioscopical (March 05, 2011, 06:45 PM)

What does one have to do?

As the doe said as she staggered out of the woods, "that's the last time I do THAT for a couple of bucks"

198
General Software Discussion / Re: Any XML gui tools out there?
« on: March 05, 2011, 07:28 PM »
Ok well it's not very 'pretty' because this is a bit of a dry old manifest, but basically we go from this:

Input XML
xmlin.png

through the stylesheet, to create this
htmlout.png

At this point you have complete control over the layout, since the stylesheet is turning your XML into HTML. In otherwords, you're telling the stylesheet what to look for in the XML, and then how to present it using HTML commands.

So it appears nicely in your browser and from there you can print, save etc.


199
Living Room / Re: On the Road to Terror!
« on: March 05, 2011, 07:13 PM »
And thanks folks. I was striving for that sort of "Reader's Digest / Dail Mail Strike Fear into the Hearts of the Middle Classes" sort of tone.

200
Living Room / Re: On the Road to Terror!
« on: March 05, 2011, 07:11 PM »
Having lived in Stoatford for 67 of his 53 years

He lived there 14 years longer than he was alive? - and 53 isnt OAP  :huh:
-Stephen66515 (March 05, 2011, 05:01 PM)

He also set off at 8am in the afternoon!  :o

Pages: prev1 ... 3 4 5 6 7 [8] 9 10 11 12 13 ... 49next