<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#032DFD;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#032DFD">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">The svcs check is based on this Powershell command:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">Get-WmiObject -Class Win32_Service | Sort-Object -Property Name<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">Occasionally I have seen issues when the WMI repository on the host becomes corrupt and this causes empty results. There used to be a decent Microsoft article on this but they’ve reorganised everything… I found
 this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><a href="https://techcommunity.microsoft.com/t5/Ask-The-Performance-Team/WMI-Rebuilding-the-WMI-Repository/ba-p/373846">https://techcommunity.microsoft.com/t5/Ask-The-Performance-Team/WMI-Rebuilding-the-WMI-Repository/ba-p/373846</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><a href="https://community.spiceworks.com/how_to/21413-rebuilding-the-wmi-repository">https://community.spiceworks.com/how_to/21413-rebuilding-the-wmi-repository</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">I have had some success in the past with the following commands:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">winmgmt /verifyrepository<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">winmgmt /salvagerepository<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">There’s also:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">winmgmt /resetrepository<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD">The articles linked above has more info and explanation, obviously, use at your own risk, make sure you have a backup / snapshot etc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#032DFD;mso-fareast-language:EN-GB">Zak <o:p>
</o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#032DFD"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Xymon <xymon-bounces@xymon.com>
<b>On Behalf Of </b>Brandon Dale<br>
<b>Sent:</b> Wednesday, 21 August 2019 03:04<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [External] [Xymon] powershell client blank service list<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-AU" style="color:red;mso-fareast-language:EN-GB">This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.</span><span lang="EN-AU" style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-AU" style="mso-fareast-language:EN-GB">
<hr size="2" width="100%" noshade="" style="color:red" align="center">
</span></div>
<p class="MsoNormal"><span lang="EN-AU" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-AU">I have one 2016 server that is running the 2.42 version of the powershell client and it’s intermittently returning nothing for the svcs check, so I get a blank section like below, which causes the service check to fail
 with no matching services. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">[svcs]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">Name                                    StartupType  Status         DisplayName<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">If I run it manually it works fine each time. It’s happening intermittently – anyone had this before and know what to check? I have tried the 2.27 and 2.42 version of the client and it’s happening on both. It’s likely
 related to this specific server but I can’t see anything wrong and it has been working for a long time and reporting the services ok.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">Regards, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-AU" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#000097">Brandon<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom:8.0pt;line-height:105%"><span lang="EN-AU" style="mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by
 you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement
 at https://www.accenture.com/us-en/privacy-policy. <br>
______________________________________________________________________________________<br>
<br>
www.accenture.com<br>
</font>
</body>
</html>