Page 1 of 1
Check_wmi issues
Posted: Fri Jul 26, 2013 11:22 am
by BanditBBS
Code: Select all
Service Critical2013-07-26 12:20:25SERVICE ALERT: 101l-c2twdv1;Drive C: Disk Usage;CRITICAL;SOFT;1;[Can't locate Config/IniFiles.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr
I keep seeing items like above in my event log. Right after that, the service check goes OK so it is finding it. The folder/file is located in two of the locations is lists in that error.
Any clues?
FYI - I just started using the WMI checks for the first time.
Re: Check_wmi issues
Posted: Fri Jul 26, 2013 12:16 pm
by yancy
BanditBBS,
It looks like you're missing some pearl dependancie (IniFiles.pm).
Did you run the installer described here:
Code: Select all
http://assets.nagios.com/downloads/nagiosxi/docs/Installing_The_WMI_Client_For_XI.pdf
That will install any dependencies needed.
-Yancy
Re: Check_wmi issues
Posted: Mon Jul 29, 2013 8:34 am
by BanditBBS
yancy wrote:BanditBBS,
It looks like you're missing some pearl dependancie (IniFiles.pm).
Did you run the installer described here:
Code: Select all
http://assets.nagios.com/downloads/nagiosxi/docs/Installing_The_WMI_Client_For_XI.pdf
That will install any dependencies needed.
-Yancy
if I was missing something, it wouldn't work the very next retry though, right? LOL I'm so confused!
To answer your question, I did not follow that document, I did not see it and I installed everything manually. I will follow that document though, just to make sure I did everything.
Re: Check_wmi issues
Posted: Mon Jul 29, 2013 9:00 am
by BanditBBS
Just to follow up, I did the install in that document. Everything was already installed as I did it manual, but ran it just in case
In my log, I am still see this:
Code: Select all
Service Recovery2013-07-29 09:56:21SERVICE ALERT: 101l-c2twdv1;Application Log Warnings;OK;SOFT;3;OK - 1 event(s) of Severity Level: "Error", were recorded in the last 1 hours from the Application,1,1 Event Log. (List is on next line. Fields shown are - Logfile:TimeGenerated:SeverityLevel:
Service Critical2013-07-29 09:56:11SERVICE ALERT: 101l-c2twdv1;Application Log Warnings;CRITICAL;SOFT;2;[Can't locate Config/IniFiles.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
This is over and over again, on each service definition. One time it can't find the Config/IniFiles.pm and then 10 seconds later it runs just fine.
Help?!?
Re: Check_wmi issues
Posted: Mon Jul 29, 2013 9:13 am
by BanditBBS
OMG!!!! I think I just thought of the issue.
Short answer: I'm an idiot
Long Answer: I use mod_gearman and always forget I have to duplicate my setup on the workers as well.
Re: Check_wmi issues
Posted: Mon Jul 29, 2013 9:30 am
by yancy
BanditBBS,
Thanks for letting us know
I'll mark the ticket as solved.
-Yancy