check_wmi_plus and check_win_eventlog showing no events

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.
mclark
Posts: 18
Joined: Thu Jun 09, 2016 6:51 am
Location: Tampa, FL

Re: check_wmi_plus and check_win_eventlog showing no events

Post by mclark »

I reverted to the previously installed version to allow time for other projects and then to revisit this again. The error I got was this,

"SERVICE ALERT: <hostname>;CPU Utilization Detail;CRITICAL;HARD;3;(No output on stdout) stderr: execvp(/usr/local/nagios/bin/plugins/check_wmi_plus/check_wmi_plus.pl, ...) failed. errno is 2: No such file or directory"

So, that told me the files were not in the correct place or the config file was not correct.

Reviewing the upgrade instructions, http://edcint.co.nz/checkwmiplus/?q=upgrading, it's a little unclear what gets put into the /nagios/etc directory. Do the individual files go in there or does the entire directory of this files go into the /nagios/etc directory. From the page, "Move the etc directory to /etc (Make sure they are all readable and writable by the Nagios user)." Should I put the entire directory from the upgrade into the /etc folder?

Thanks for your assistance tgriep! You're a big help!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_wmi_plus and check_win_eventlog showing no events

Post by tgriep »

The easiest thing to do is to put the check_wmi_plus.conf file and the check_wmi_plus.ini file in to the same folder as the check_wmi_plus.pl file and then edit the settings to point to that folder.
Try that and see if it works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mclark
Posts: 18
Joined: Thu Jun 09, 2016 6:51 am
Location: Tampa, FL

Re: check_wmi_plus and check_win_eventlog showing no events

Post by mclark »

OK, so I'm back at it after handling other issues.

I removed all the files from the check_wmi_plus v1.61 upgrade and started the upgrade again.

I tried following the steps shown on the Check WMI Plus website and still couldn't get it going. I finally had to use tgriep's solution of putting the CONF and INI files in the same directory and the plugin. Now I'm upgraded and Nagios is working as it should.

I still am not getting accurate information from the Application or System Event logs on the Windows servers.

I'm thinking we'll need to look at another solution for getting data from Windows Event Viewer.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_wmi_plus and check_win_eventlog showing no events

Post by tgriep »

The check_wmi plugin stores temporary data in the /tmp folder. Maybe there is a left over file that could be causing the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mclark
Posts: 18
Joined: Thu Jun 09, 2016 6:51 am
Location: Tampa, FL

Re: check_wmi_plus and check_win_eventlog showing no events

Post by mclark »

OK. I stopped Nagios, cleared that folder of all files whose name sbegan with cwp and restarted Nagios. No change.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_wmi_plus and check_win_eventlog showing no events

Post by tgriep »

At this point, you may want to contact the author or search their site on the accuracy issue you are having.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked