No hosttemplates.cfg file. Config Error.
Posted: Tue Apr 08, 2025 8:39 am
I am extremely new to Nagios and am trying to get a number of servers added, but immediately ran into an issue. I followed the directions in: https://library.nagios.com/documentatio ... with-ncpa/ and verified that the host is reporting checks to the NCPA dashboard per step 4.
I used the Windows Server Configuration Wizard and got this error at the end: "Configuration Error. An error occurred while attempting to apply your configuration to the monitoring engine. Contact your Nagios administrator if this problem persists."
The Command Output of said Config Error reads:
Reading configuration data...
Read main config file okay...
Error: Template '' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 504)
Error: Template '' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 710)
Error processing object config files!
I checked the host server at C: > Program Files > Nagios > NCPA > etc, but there is no hosttemplates.cfg file, and the ncpa.cfg file only reaches 362 lines. The template assigned to the host in question is xiwizard_ncpa_host, which is set to Active. I tried the Config File Management > Delete Files > Write Files > Verify Files step suggested in another thread.
All hosts that were added to Nagios a year ago used one of the config wizards, many using xiwizard_ncpa_host as well.
This host shows up in Core Config Manager, but not on the dashboard.
I used the Windows Server Configuration Wizard and got this error at the end: "Configuration Error. An error occurred while attempting to apply your configuration to the monitoring engine. Contact your Nagios administrator if this problem persists."
The Command Output of said Config Error reads:
Reading configuration data...
Read main config file okay...
Error: Template '' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 504)
Error: Template '' specified in host definition could not be not found (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 710)
Error processing object config files!
I checked the host server at C: > Program Files > Nagios > NCPA > etc, but there is no hosttemplates.cfg file, and the ncpa.cfg file only reaches 362 lines. The template assigned to the host in question is xiwizard_ncpa_host, which is set to Active. I tried the Config File Management > Delete Files > Write Files > Verify Files step suggested in another thread.
All hosts that were added to Nagios a year ago used one of the config wizards, many using xiwizard_ncpa_host as well.
This host shows up in Core Config Manager, but not on the dashboard.