Jump to content

Disable Services monitoring for specific Services


Recommended Posts

When u use the built-in script "Add Automatically Started Services in Pulseway" some services wil be monitored that are triggert and not always on.

This wil result in unwanted notifications.

The first variable has the servicenames you want to disable.

$services = @('gupdate', 'ShellHWDetection', 'sppsvc', 'RemoteRegistry', 'MapsBroker', 'tiledatamodelsvc', 'WbioSrvc', 'WinDefend', 'CDPSvc')
$servicesRegex = [string]::Join('|', $services) # create the regex
$regservices = Get-ItemProperty "HKLM:\Software\MMSOFT Design\PC Monitor\Services"
$regservicesSplit = $regservices  -split ";"

foreach ($regservice in $regservicesSplit) {
	If ($regservice -match $servicesRegex ) {
		$servicesSplit = $regservice -split "="
		$servicesTrim = $servicesSplit[0]
		$servicesTrim = $servicesTrim.Trim()
        Remove-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\Services" -Name $servicesTrim
        Write-Host $regservice " Verwijderd"
	}
}

Hope it helps.

Link to post
Share on other sites
  • 2 years later...

Question, new here but if you removed the entry as you suggest does that not also remove it from services from the tech side, meaning that if I remove the service from pc monitor\services sure it won't send the notice but lets say I wanted to view services from the manager and restart one, will that service still be listed? I just checked, when clicking the SERVICES tab in the web app you only see auto start services listed, so you'd not be able to manage it without logging in, take a look at this option:

 

 

# Note, This script removes all current excluded services from Notifications and replaces with your selection.

#
Remove-Item -Path "HKLM:\Software\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\"  -Recurse
New-Item -Path "HKLM:\Software\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\"

$exclude = @()
$exclude += 'gpsvc'
$exclude += 'ITmanager.net'
$exclude += 'clr_optimization_v4.0.30319_64'
$exclude += 'clr_optimization_v4.0.30319_32'
$exclude += 'ClickToRunSvc'
$exclude += 'sppsvc'
$exclude += 'SSUService'
$exclude += 'wuauserv'
$exclude += 'BITS'
$exclude += 'gupdate'
$exclude += 'TrustedInstaller'
$exclude += 'VSS'  # Volume Shadow Copy
$exclude += 'WUDO' # Service Host: Delivery Optimization

#
# $exclude += Just keep adding rows with new service name.
#


$i=0
foreach ($service in $exclude){
Set-Itemproperty -path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\' -Name Service$i -value $service
$i++ 
}
Set-Itemproperty -path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\'  -Name 'Count' -value "$i"

 

 

 

Link to post
Share on other sites
  • 1 month later...
  • 2 weeks later...
  • Administrators

I'd like to point out that disabling Windows Update related services is a very BAD idea. We've seen cases on Windows Server 2016 where if you stop, disable the Windows Update service, then use the GUI to check for available updates, the windows update component will crash and corrupt the system in a way where dism and sfc couldn't repair. Just something to keep in mind.

-Paul

Link to post
Share on other sites
  • 3 months later...
On 5/16/2020 at 8:29 PM, eDecisions said:

Question, new here but if you removed the entry as you suggest does that not also remove it from services from the tech side, meaning that if I remove the service from pc monitor\services sure it won't send the notice but lets say I wanted to view services from the manager and restart one, will that service still be listed? I just checked, when clicking the SERVICES tab in the web app you only see auto start services listed, so you'd not be able to manage it without logging in, take a look at this option:

 

 

# Note, This script removes all current excluded services from Notifications and replaces with your selection.

#
Remove-Item -Path "HKLM:\Software\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\"  -Recurse
New-Item -Path "HKLM:\Software\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\"

$exclude = @()
$exclude += 'gpsvc'
$exclude += 'ITmanager.net'
$exclude += 'clr_optimization_v4.0.30319_64'
$exclude += 'clr_optimization_v4.0.30319_32'
$exclude += 'ClickToRunSvc'
$exclude += 'sppsvc'
$exclude += 'SSUService'
$exclude += 'wuauserv'
$exclude += 'BITS'
$exclude += 'gupdate'
$exclude += 'TrustedInstaller'
$exclude += 'VSS'  # Volume Shadow Copy
$exclude += 'WUDO' # Service Host: Delivery Optimization

#
# $exclude += Just keep adding rows with new service name.
#


$i=0
foreach ($service in $exclude){
Set-Itemproperty -path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\' -Name Service$i -value $service
$i++ 
}
Set-Itemproperty -path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\ServicesExcludedFromNotifications\'  -Name 'Count' -value "$i"

 

 

 

This script is exactly what I was searching for, It keeps monitoring the services but disables the notifications.

Thanks a lot for sharing it ;)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By OnsiteITservices
      Using USB external hard drive as backup devices and each drive can be recognized if manually added to the notifications/storage screen but I need to know if there is a way to set this to be automatic when the drive is replaced either daily or weekly.  Also, where would this be set globally for are servers being monitored. Currently have 8.6.8.
       
      Thank you,
      Todd Kollars
      Onsite IT Services
    • By Leah96xxx
      I am trying to configure Pulseway on my Ubuntu Server 20.04 LTS machine, but I'm having issues getting it to recognise systemd services.
      The services I want to monitor are smbd, plexmediaserver and clamav-freshclam. Regardless of what configuration I use, none of these services are even recognised by Pulseway let alone monitored. I have also tried setting each service as "NONE", "UPSTART" and "SYSVINIT" but nothing seems to work.
      The strange part is that ssh is monitored despite the fact that it's configuration is identical to the others.
      Here is a screenshot of my configuration:
      Can someone please help me out here? Is there something I'm missing?
      EDIT: Never mind. It suddenly started working after I posted this.
    • By Astrofrite
      Hi, i want to know how i can monitor the dropbox daemon on linux, i'v tried things with workflow but when i stop the service manualy it won't send me a notification or try to restart the service, and that is bothering me becaus on our servers we need to have dropbox running all the time for our application, i know that dropbox is weird on linux, it won't show with systemctl, but it's still like a daemon.
      I'm running debian buster machine all up to date with the last pulseway agent
       
    • By Cilusse
      Hello there,
      I was in the process of configuring my Pulseway agent on a VPS running Ubuntu Server 20.04 and I ran in this interesting bug.
      Even using the sample config provided by the agent, uncommenting the Ping Responses bloc throws this error in the log, and prevents the service from starting.
      vps pulseway: Starting Pulseway Daemon version 6.5 (2019082205) vps pulseway: Configuration: Values for 'Milliseconds' attribute at 'PingResponse' node 10.6.0.53(1) should be between 1 and 1000 vps systemd: pulseway.service: Main process exited, code=exited, status=1/FAILURE  
      The PingResponse bloc in /etc/pulseway/config.xml looks like this:
      <PingResponses> <PingResponse Address="10.6.0.53" Milliseconds="1500" Minutes="1" PriorityOnSlowResponse="1" PriorityOnNoResponse="1" Alias="vps DNS notif" Enabled="true"/> </PingResponses>  
      So then I tried many Milliseconds values between 1 and 1000 but the same exact error always comes back.
      Is this a known issue or is there anything wrong with my setup?
       
      Many thanks to anyone who can help,
      Best,
    • By Jason Corlett
      Can anyone find the new in 8.5 feature "Network Monitoring" or know how to add a device?
×
×
  • Create New...