It is often necessary to monitor windows services across your entire SCOM environment. This Management Pack gives you the ability to easily and quickly discover and monitor hundreds of services. The wildcard(*) notation allows great flexibility in discovering the services you are looking for.
This Management Pack is currently under development and may contain errors. Please always test it in DEV environment befor importing the Management Pack to production.
ServiceName;Include;Exclude
Include: comma-separated list of servernames (ShortName; not FQDN)
Exclude: comma-separated list of servernames (ShortName; not FQDN)
*: Every host in the "Microsoft.SystemCenter.ManagedComputerServer" class
ServiceA;HostA,HostB;none
serviceA is monitored for hostA and hostB. There is no (none) exclusion.
ServiceB;*;none
serviceB is monitored on every host. There is no (none) exclusion.
Service;;HostB
service*(wildcard) is monitored on every host and excluded for hostB.
The task which starts the CSV ingestion process is found at the "Management Server View". Select the management server on which the CSV is located and execute the task. (example at Views -> State View Management Server)
Click "Override" to enter the path to the CSV.
Enter the path to the CSV file.
The discovery is configured to run every 24h and detect newly processed services. This setting can be changed at the xml code to meet your requirements. So it can take up to 24 hours until the service can be discovered.
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedPowerShell.DiscoveryProvider">
<IntervalSeconds>86400</IntervalSeconds>
OpsMgr.GenericServiceMonitoring.Scripts.GetServicesToMonitor.Script.ps1
Important events (such as errors or discovered services) are logged in the Operatiosn Manager Log on the management server as well as on the agent. They can be found at event id 5603.
There is also an alarm rule that comes up when a service should be discovered but he does not exist on the server.
Please let me know if you have any problems or questions about the Management Pack. So don't hesitate to contact me via github or twitter @_pabstsebastian
OpsMgr GenericServiceMonitoring Copyright (C) 2019 Sebastian Pabst (spa5603)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.