Issues with check_wmi_plus checkservice

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
TechnicallyTrue
Posts: 25
Joined: Mon May 13, 2019 11:57 am

Issues with check_wmi_plus checkservice

Post by TechnicallyTrue »

Hello,
I've recently set up basic agentless monitoring for a number of Windows servers using the check_wmi_plus plugin. I've run into an issue though: the "checkservice" command always comes back saying there is no service of that name running, even if there definitely, absolutely, 100% is. I've seen a fewf other threads for people who seem to have the same issue:
https://support.nagios.com/forum/viewto ... =7&t=46551
https://support.nagios.com/forum/viewto ... f=6&t=5126
https://support.nagios.com/forum/viewto ... 35&t=31641
However, my issue does not seem to be one with permissions, as the service account performing the WMI checks can see the services if I just run a WMI check directly through WMIC. My version of Perl is apparently up to date as well.
I'm pretty sure I'm going to be doing some scripting anyway to get some other features working that check_wmi_plus doesn't conveniently offer, but I just figured I'd check if I'm missing something obvious before I dive deep into programming.
Thank you very much.
TechnicallyTrue
Posts: 25
Joined: Mon May 13, 2019 11:57 am

Re: Issues with check_wmi_plus checkservice

Post by TechnicallyTrue »

Figured it out! Turns out the commands provided at https://edcint.co.nz/checkwmiplus/docum ... finitions/ don't all work as written. Any instance where $ARGx$ is surrounded by single quotes, the command won't work. Removing the quotes makes it work fine.
Hopefully this helps anyone struggling with the same issue.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Issues with check_wmi_plus checkservice

Post by cdienger »

Glad to hear and thanks for the follow up!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked