Page 1 of 1

Problem with NCPA Template xiwizard_ncpa_host NOT FOUND

Posted: Sat Oct 05, 2013 6:10 pm
by dazau
I have installed the new NCPA on NagiosXI (using the Nagios virtual machine .ova file) and when I run the wizard for a NCPA host it creates errors in the nagios.cfg file saying the template cannot be found:

Error: Template 'xiwizard_ncpa_host' specified in host definition could not be not found

I have installed the template successfully, restarted Nagios but still no luck.

I checked the /usr/local/nagios/etc/hosttemplates.cfg and there is no entry in there for xiwizard_ncpa_host.

It looks like it should be in there but I don't know exactly how it should be configured. I thought the wizard installation (that worked successfully) would have added it into there?

Does anyone have a working config for this host definition?

Re: Problem with NCPA Template xiwizard_ncpa_host NOT FOUND

Posted: Sat Oct 05, 2013 9:16 pm
by dazau
Fixed it myself:

The problem was the templates for the xiwizard_ncpa_host and xiwizard_ncpa_service were not set to active.
Configure –> Core Config Manager -> Templates -> Host Templates – select the xiwizard_ncpa_host template and set to active.
Do the same for the xiwizard_ncpa_service template (under service templates).
Now under commands, make the command “check_xi_ncpa_agent” active as well.

The “check_xi_ncpa_agent” has no command line!
Edit using the GUI and add the command line:
$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$

Then it all works!

Re: Problem with NCPA Template xiwizard_ncpa_host NOT FOUND

Posted: Mon Oct 07, 2013 9:38 am
by slansing
Great thanks for letting us know, I'm looking into this right now.

Edit: Hmm, mine are all set to active and persist that way through running the wizard and applying them to a object. Maybe this was recently updated.