This script helps you to monitor message flow in a NoSpamProxy environment using a PRTG custom PowerShell sensor.
This custom sensor contains the following five channels:
- In/Out Success
Total of inbound/outbound successfully delivered messages over the last X minutes.
- Inbound Success
The number of inbound successfully delivered messages over the last X minutes.
- Outbound Success
The number of outbound successfully delivered messages over the last X minutes.
- Inbound PermanentlyBlocked
The number of inbound blocked messages over the last X minutes.
- Outbound DeliveryPending
Number of outbound messages with pending delivery over the last X minutes
The default interval is five minutes. But you might want to change the interval as needed for your environment.
These channels can easily be modified, and additional channels can also be added.
NoSpamProxy is a powerful anti-spam gateway solution providing additional functionality like centralized S/MIME and PGP encryption for on-premises and Exchange Online deployments.
PRTG is an industry-standard system monitoring solution.
The script takes no additional attributes and is called by the PRTG probe.
To verify your setup, you quickly execute the PowerShell script. It returns an XML result.
PS C:\Scripts> .\Get-NoSpamProxyPrtgData.ps1 In/Out Success 0 Count Inbound Success 0 Count Outbound Success 0 Count Inbound PermanentlyBlocked 0 Count Inbound DeliveryPending 0 Count 10 1
The PRTG channel configuration
The following screenshot shows PRTG example graphs.
The custom PowerShell script must be saved to the following location of the PRTG probe:
[INSTALLPATH]\PRTG Network Monitor\Custom Sensors\EXEXML
Ensure to have the PowerShell execution policy is set correctly. Otherwise, the PRTG service won’t be able to execute the PowerShell script.
Ensure that the service account used by the PRTG probe has access to the script and is a member of the NoSpamProxy Monitoring Administrators security group.
- 1.0, Initial community release
- Download and follow at Github: https://github.com/Apoc70/Get-NoSpamProxyPrtgData
- PRTG Manual: EXE/Script Advanced Sensor, https://www.paessler.com/manuals/prtg/exe_script_advanced_sensor
- NoSpamProxy, https://www.granikos.eu/en/Products/NetatWork
Additional credits go to Brian Addicks, https://github.com/brianaddicks/prtgshell
Sie sehen gerade einen Platzhalterinhalt von Facebook. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfläche unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.Mehr Informationen