Company
Date Published
Author
Michael Carroll
Word count
1242
Language
English
Hacker News points
None

Summary

The tutorial outlines the creation of a Windows service application designed to monitor server load and memory usage, sending alerts to a Windows Phone 8.1 via PubNub's Data Stream Network. Developed with Visual Studio 2015 and .Net Framework 4, the service uses a thread to track CPU consumption and available memory against set thresholds, triggering alerts when these are exceeded or fall below specified levels. Parameters such as MaxCPUUsage, MinRAMAvailable, and monitoring Period can be configured via RegEdit. The service subscribes to the PNRTPM channel, initiating a thread to oversee server performance and dispatch alerts as necessary. A Windows Phone 8.1 app complements this setup, capable of receiving messages from multiple servers, and allows users to start or stop monitoring through a straightforward interface. The tutorial also suggests potential enhancements, such as email notifications and a detailed server process view on the mobile app, and provides links to download the project files.