Check_wmi issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Check_wmi issues

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Check_wmi issues

Post 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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Check_wmi issues

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Check_wmi issues

Post 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?!?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Check_wmi issues

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Check_wmi issues

Post by yancy »

BanditBBS,

Thanks for letting us know :)

I'll mark the ticket as solved.

-Yancy
Locked