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?
Problem with NCPA Template xiwizard_ncpa_host NOT FOUND
Re: Problem with NCPA Template xiwizard_ncpa_host NOT FOUND
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!
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!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Problem with NCPA Template xiwizard_ncpa_host NOT FOUND
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.
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.