Page 4 of 4

Re: check_wmi_plus and check_win_eventlog showing no events

Posted: Wed Jul 06, 2016 10:27 am
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!

Re: check_wmi_plus and check_win_eventlog showing no events

Posted: Wed Jul 06, 2016 10:34 am
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.

Re: check_wmi_plus and check_win_eventlog showing no events

Posted: Wed Jul 27, 2016 3:49 pm
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.

Re: check_wmi_plus and check_win_eventlog showing no events

Posted: Wed Jul 27, 2016 4:28 pm
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.

Re: check_wmi_plus and check_win_eventlog showing no events

Posted: Thu Jul 28, 2016 8:32 am
by mclark
OK. I stopped Nagios, cleared that folder of all files whose name sbegan with cwp and restarted Nagios. No change.

Re: check_wmi_plus and check_win_eventlog showing no events

Posted: Thu Jul 28, 2016 12:17 pm
by tgriep
At this point, you may want to contact the author or search their site on the accuracy issue you are having.