Configuring Nagios Cross Platform Agent (NCPA)

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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Configuring Nagios Cross Platform Agent (NCPA)

Post by lmiltchev »

Does the "check_wmi_plus.ini" file exist? Can you run the following commands and show us the output?

Code: Select all

updatedb
locate check_wmi_plus.ini
Be sure to check out our Knowledgebase for helpful articles and solutions!
clombardo
Posts: 41
Joined: Thu Mar 06, 2014 12:36 pm

Re: Configuring Nagios Cross Platform Agent (NCPA)

Post by clombardo »

When I run:

Code: Select all

[root@develop plugins]# updatedb
it hangs and I do NOT see any output. What do I need to do?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Configuring Nagios Cross Platform Agent (NCPA)

Post by ssax »

updatedb will look like it's hung but is actually scanning all the files on the system, let it run until it finishes, it may take a while depending on how many files you have on your system.
clombardo
Posts: 41
Joined: Thu Mar 06, 2014 12:36 pm

Re: Configuring Nagios Cross Platform Agent (NCPA)

Post by clombardo »

Okay I ran these commands:

Code: Select all

[root@develop ~]# updatedb
[root@develop ~]# locate check_wmi_plus.ini
/usr/lib64/nagios/plugins/check_wmi_plus.d/check_wmi_plus.ini
/usr/lib64/nagios/plugins/tmp/check_wmi_plus.d/check_wmi_plus.ini
[root@develop ~]# 
Please let me know what must I do next to get this working. Thank you all for all your help so far :-)
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Configuring Nagios Cross Platform Agent (NCPA)

Post by lmiltchev »

Open the plugin in a text editor and set the $wmi_ini_dir with the correct path. If you don't want to use the ini dir, I believe you can use ' '. Save, exit and try to view the help again:

Code: Select all

./check_wmi_plus.pl --help
Be sure to check out our Knowledgebase for helpful articles and solutions!
clombardo
Posts: 41
Joined: Thu Mar 06, 2014 12:36 pm

Re: Configuring Nagios Cross Platform Agent (NCPA)

Post by clombardo »

We ended up using a new server with a clean CentOS 7 install and a clean Nagios Core install. I think the new Nagios Core install comes with check_wmi_plus packaged in. So my boss did all this as he is a Linux expert. He ran into some problems similar I have posted here but he was able to find and install the Perl packages that were needed and installed them. So now were up an running and I'm learning how to use WMI on Nagios to monitor and control our users.

Thank you for all your help everyone :-)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Configuring Nagios Cross Platform Agent (NCPA)

Post by ssax »

I'm glad it's now working for you, I'll be marking this as resolved and locking it.
Locked