Page 6 of 6
Re: Configuring Nagios Cross Platform Agent (NCPA)
Posted: Thu Feb 19, 2015 1:17 pm
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
Re: Configuring Nagios Cross Platform Agent (NCPA)
Posted: Fri Feb 20, 2015 12:35 pm
by clombardo
When I run:
it hangs and I do NOT see any output. What do I need to do?
Re: Configuring Nagios Cross Platform Agent (NCPA)
Posted: Fri Feb 20, 2015 1:36 pm
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.
Re: Configuring Nagios Cross Platform Agent (NCPA)
Posted: Mon Feb 23, 2015 10:34 am
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

Re: Configuring Nagios Cross Platform Agent (NCPA)
Posted: Mon Feb 23, 2015 5:36 pm
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:
Re: Configuring Nagios Cross Platform Agent (NCPA)
Posted: Wed Mar 04, 2015 10:25 am
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

Re: Configuring Nagios Cross Platform Agent (NCPA)
Posted: Wed Mar 04, 2015 11:48 am
by ssax
I'm glad it's now working for you, I'll be marking this as resolved and locking it.