GithubHelp home page GithubHelp logo

asunel / wsw Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 36 KB

Window service that sends SMTP Notification on failure of configured window services

C# 99.32% Batchfile 0.68%
windows-service c-sharp service-monitor

wsw's Introduction

WSW

Email

WSW currently supports sending mail notification through following accounts:

  • GMAIL
  • OUTLOOK

Update following attributes of email node in mail.config.xml

Attribute Meaning
fromMailAddress Mail sender address
fromDisplayName Display name for sending email address
toMailAddress Mail receiving comma-separated addresses
enableSsl Enable SSL or not
timeoutInMilliseconds Timeout for sending email

Password

In App.config. Replace YOUR_PASSWORD with plain password.

<!--<secure fromMailPassword="YOUR_PASSWORD"/>-->

After first run, WSW.exe.config will contain the encrypted secure section. No need for plain password after that.

Services

Service settings can be configured in serviceSettings.config.xml

serviceCategory: We can categories services using the category attribute.

services: Collection of service.

service: We can have multiple service elements in services collection.

Attribute Meaning
name Name of service
Source Value of the Source column of a log entry in Event Viewer
logName Value of the Log column of a log entry in Event Viewer
enableNotification Enable/disable email notification for a service without restarting WSW.
enableStart Enable/disable restart for a service without restarting WSW.
isMailSent If unfortunately WSW crashes or someone stops it, then after it gets restarted it needs to know whether email notification for currently stopped configured services has already been sent before WSW failure or not. This attribute helps WSW in deciding that. DON’T CHANGE ITS VALUE MANUALLY. LET IT BE FALSE FOR THE FIRST TIME.
waitTimeoutForStartInSeconds Timeout value for restarting a windows service
otherConfigs Comma-separated relative paths of files/folders for other configuration files whose details needs to be part of the email notification

wsw's People

Contributors

asunel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.