All Projects → HiltonGiesenow → Poshmon

HiltonGiesenow / Poshmon

Licence: mit
A PowerShell-based server and farm monitoring solution

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to Poshmon

Microsoft365dsc
Manages, configures, extracts and monitors Microsoft 365 tenant configurations
Stars: ✭ 374 (+592.59%)
Mutual labels:  sharepoint, monitoring
Spm Agent Nodejs
NodeJS Monitoring Agent
Stars: ✭ 51 (-5.56%)
Mutual labels:  monitoring
Examples
Demo applications and code examples for Confluent Platform and Apache Kafka
Stars: ✭ 571 (+957.41%)
Mutual labels:  monitoring
Procmon Parser
Parser to process monitor file formats
Stars: ✭ 49 (-9.26%)
Mutual labels:  monitoring
Stackimpact Nodejs
DEPRECATED StackImpact Node.js Profiler - Production-Grade Performance Profiler: CPU, memory allocations, async calls, errors, metrics, and more
Stars: ✭ 46 (-14.81%)
Mutual labels:  monitoring
Grafana Zabbix Dashboards
Grafana dashboards for Zabbix
Stars: ✭ 50 (-7.41%)
Mutual labels:  monitoring
Ward
Server dashboard
Stars: ✭ 1,026 (+1800%)
Mutual labels:  monitoring
Ostrio
▲ Web services for JavaScript, Angular.js, React.js, Vue.js, Meteor.js, Node.js, and other JavaScript-based websites, web apps, single page applications (SPA), and progressive web applications (PWA). Our services: Pre-rendering, Monitoring, Web Analytics, WebSec, and Web-CRON
Stars: ✭ 52 (-3.7%)
Mutual labels:  monitoring
Overseer
A golang-based remote protocol tester for testing sites & service availability
Stars: ✭ 51 (-5.56%)
Mutual labels:  monitoring
Hubblemon
Stars: ✭ 48 (-11.11%)
Mutual labels:  monitoring
Ldapcp
This claims provider connects SharePoint 2019 / 2016 / 2013 with Active Directory and LDAP servers to enhance people picker with a great search experience in federated authentication (typically ADFS)
Stars: ✭ 48 (-11.11%)
Mutual labels:  sharepoint
Jaeger Client Go
Jaeger Bindings for Go OpenTracing API.
Stars: ✭ 1,035 (+1816.67%)
Mutual labels:  monitoring
Kvmtop
A monitoring tool for black box virtual machines from KVM hypervisor level
Stars: ✭ 51 (-5.56%)
Mutual labels:  monitoring
Azuremonitoringhackathon
Operationalize Azure deployments with Azure platform tools​
Stars: ✭ 46 (-14.81%)
Mutual labels:  monitoring
Spgo
SPGo: A Lightweight, Open Source, SharePoint IDE for Visual Studio Code
Stars: ✭ 52 (-3.7%)
Mutual labels:  sharepoint
Corefreq
CoreFreq is a CPU monitoring software designed for the 64-bits Processors.
Stars: ✭ 1,026 (+1800%)
Mutual labels:  monitoring
Homer7 Docker
HOMER 7 Docker Images
Stars: ✭ 47 (-12.96%)
Mutual labels:  monitoring
Laravel Heartbeat
Periodically schedule a job to send a heartbeat to a monitoring system.
Stars: ✭ 49 (-9.26%)
Mutual labels:  monitoring
Unifi exporter
Multiarch images for scraping Prometheus metrics from a Unifi Controller. Kubernetes / prometheus-operator compatible.
Stars: ✭ 54 (+0%)
Mutual labels:  monitoring
Ethmonitoring
Miner monitoring software with different notifications support
Stars: ✭ 53 (-1.85%)
Mutual labels:  monitoring

PoShMon

PoShMon is an open source PowerShell-based server and farm monitoring solution. It's an "agent-less" monitoring tool, which means there's nothing that needs to be installed on any of the environments you want to monitor - you can simply run or schedule the script from a regular workstation and have it monitor a single server or group of servers, using PowerShell remoting. PoShMon is also able to monitor "farm"-based products like SharePoint, in which multiple servers work together to provide a single platform. For details on why I built PoShMon, see the bottom of this page.

Key Features

Some of the key features / benefits of PoShMon are:

  • Agent-less Monitoring - nothing needs to be installed on the remote servers
  • Core operating system and web-site monitoring
  • Specialized SharePoint monitoring
  • Supports frequent/critical as well as comprehensive daily monitoring
  • Email, Pushbullet (mobile), Office 365 Teams ("Chat-ops") and Twilio (SMS) notifications
  • Provides a framework for a 'self-healing' system

Installation Instructions

PoShMon is available on the PowerShell Gallery so you can either download it from this GitHub page or even install it directly from the gallery onto your local workstation using

PS> Install-Module -Name PoShMon

Prerequisites

While PoShMon is indeed "agent-less", it does need to execute remote PowerShell commands against the servers in question. As a result, you need to ensure that PowerShell remoting is correctly configured and also that you are running PoShMon under an account that has the correct rights to connect to the server remotely and execute the requisite commands. You also need to make sure you're not going to encounter the classic 'Double Hop' issue. If you're already remotely administering your environment you're probably fine, but have a look at the quick Prerequisite Guide to confirm / set up what you need.

Getting Started

(Below is a quick overview - for more, please visit the more complete Getting Started Guide) Once you've installed PoShMon, you can have a look at the Samples folder to get an idea how to use it. As an example, to monitor a farm of web servers you can use

$poShMonConfiguration = New-PoShMonConfiguration {
                General `
                    -EnvironmentName 'Intranet Farm' `
                    -MinutesToScanHistory 15 `
                    -ServerNames 'WebServer1','WebServer2' `
                OperatingSystem `
                    -EventLogCodes 'Critical'
                WebSite `
                    -WebsiteDetails @{ 
                                        "http://intranet" = "Read our terms"
                                     }
                Notifications -When OnlyOnFailure {
                    Email `
                        -ToAddress "[email protected]" `
                        -FromAddress "[email protected]" `
                        -SmtpServer "EXCHANGE.COMPANY.COM" `
                }         
            }

$monitoringOutput = Invoke-OSMonitoring -PoShMonConfiguration $poShMonConfiguration

Some things to note on the above:

  • The actual "monitoring" takes place on the last line with Invoke-OSMonitoring. The lines above are just setting up your specific configuration.
  • To make the config a little more readable, I've put each parameter on a new line (note the '`' PowerShell line-continuation character). This is not required, or course, so your configuration could be shorter.

Here's another example, to monitor a SharePoint farm

$poShMonConfiguration = New-PoShMonConfiguration {
                General -EnvironmentName 'SharePoint' -MinutesToScanHistory 1440 -PrimaryServerName 'SPAPPSVR01' -ConfigurationName SpFarmPosh -TestsToSkip "SPDatabaseHealth"
                OperatingSystem -EventLogCodes 'Error','Warning'
                WebSite -WebsiteDetails @{ 
                                        "http://intranet" = "Read our terms"
                                        "http://extranet.company.com" = "Read our terms"
                                     }
                Notifications -When All {
                    Email -ToAddress "[email protected]" -FromAddress "[email protected]" -SmtpServer "EXCHANGE.COMPANY.COM"
                }
            }

$monitoringOutput = Invoke-SPMonitoring -PoShMonConfiguration $poShMonConfiguration
  • Note the use of PrimaryServerName instead of ServerNames. Instead of a list of servers, you need only to supply PoShMon with details of a "primary" server (you can choose any of the SharePoint servers, but typically this is an "application" or "batch" server, on which the main monitoring work will occur) and it will use SharePoint's API to determine the remaining servers.
  • Note also the use of Invoke-SPMonitoring instead of Invoke-OSMonitoring. "EnvironmentName", which appears in notifications (emails etc.) is also changed to something more suitable.
  • 'MinutesToScanHistory' is 1440 instead of 15, so this is more of a daily monitoring example. We've also got Notifications -When All instead of Notifications -When OnlyOnFailure because we want notifications (emails or similar) in all cases for daily monitoring, unlike for Critical monitoring where we only want to be alerted of major issues. This is also why the EventLogCodes have been changed.
  • An important note for monitoring tests where direct access to the servers is required, like in SharePoint where certain commands need to be run remotely: In this case, remote PowerShell sessions are used and, to improve security, PowerShell sessions have been configured to run under appropriate user accounts. You can find out more about the related 'double-hop' issue here and learn about how to configure remote sessions in this way (instead of using Kerberos or CredSSP) by visiting this link.
  • Storing the output of the monitoring ($monitoringOutput) is not required, of course, but it's helpful if you want to do anything with it, like try automatically correct regular issues in your environment.

After that, simply run the script and it will perform an on-demand monitoring of the servers or environments. Of course, you might like to schedule these monitoring tests to run automatically, so see the next section for how to do this.

Scheduled Monitoring

Ad-hoc monitoring can be useful to troubleshoot specific issues, but mostly we want our monitoring to be automated and scheduled. Because PoShMon simply consists of PowerShell scripts, to have then be scheduled we can rely on simple Windows Task Scheduler, and just set the Tasks to run on a reasonable basis. Here are some example Task Scheduler definitions that can be imported. The first runs "Critical" level monitoring, so it runs every 15 minutes, skips some of the longer-running and less essential tests and notifies only on failure, whereas the latter runs the full barrage of tests on a nightly basis and send a detailed breakdown.

That's It!

That's all there is to it! Hopefully PoShMon is of use to you and of course feel free to contribute to the project, there's tons more that can be done!


A Note on Why I built PoShMon

Of course there are loads of monitoring systems and tools out there, both paid and free / open source ones. However, there are two main reasons I initially built PoShMon:

  1. I wanted to grow my PowerShell knowledge and there didn't seem to be anything purely PowerShell based that could offer what I wanted

  2. Many of the tools don't have a lot of product depth. For instance, many Windows monitoring tools can do basic disk / memory / event log monitoring for SharePoint servers but few can actually give me SharePoint-specific metrics, like how healthy the Search service is, what Timer jobs have failed, or whether any of the servers need to be upgraded (note that many of these tests can be greatly improved). I'm hoping that PoShMon becomes the home for powerful, specialised monitoring of many other products and platforms, like Exchange, SQL Server, CRM and more.


Release Notes

1.3.0

  • Added storing of exceptions for later resolution, where possible (Exception might be environmental, and repairable)
  • Fixed bug in Windows Event Log monitoring returning empty details
  • Added platform build number to email notifications (SharePoint and OOS)
  • Added ability to set SMTP authentication separately from other Internet access

1.2.0

  • Improved ability to ignore event log entries (based on a minimum count)
  • Added a repair for Office Online Server (previously 'Office Web Apps') to repair the W3C service if stopped
  • Improved discovery of other servers in a 'farm' product (e.g. SharePoint, Office Online Server)
  • Improved some Verbose output
  • Improved formatting for Exception and Repair emails
  • Other minor bug fixes

1.1.1

  • Various bug fixes in Web tests
  • Renamed html ad hoc report function
  • Various bug fixes in html ad hoc report function

1.1.0

  • Added ability to create ad-hoc html report
  • For Drive Space test, added Volume Name to output
  • Added html formatting to Exception emails

1.0.0

  • Official 1.0.0 release
  • Added SMS notification via Twilio
  • Improved SharePoint Distributed Cache health test
  • Fixed some unit tests
  • Fixed Unsupported Verbs warning
  • Notification refactor
  • Fixed failing Websites test for cookie prompt
  • Fixed CPU test failing on local machine
  • Fixed CPU test bug for group of servers
  • Fixed EventLog test bug
  • Improved failure message for Windows Service tests

0.15.1

  • Adding capability to run without any config (to scan local machine)
  • Minor wording change

0.15.0

  • Bug fixes for Pushbullet and Microsoft Teams message posting
  • Added sample for self-healing
  • Minor code cleanups

0.14.0

  • Integration with Operation Validation Framework (OVF)

0.13.0

  • Implement hyperlinks in output
  • Implemented CI server
  • Created a Merger framework (to merge multiple outputs)
  • Create a Merger for OS output
  • Removed ApplicationName from SharePoint Job Health Test
  • Add 'Last Reboot Time' test

0.12.0

  • Added Office Web Apps / Office Online Server monitoring
  • Added some style to Email output
  • Changed display to Hard Drive and Memory output
  • Fixed bug in email footer for skipped tests

See here for full Changelog

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].