LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Nagios FAN (https://www.linuxquestions.org/questions/linux-newbie-8/nagios-fan-4175463469/)

Moinul18 05-26-2013 02:48 AM

Nagios FAN
 
hi Guys,iam new here. its a great place to share problem.so igot an problem in my Nagios fan:
i got an error while i run:

Error: Template 'linux-server' specified in host definition could not be not found (config file '/etc/nagios/objects/localhost.cfg', starting on line 922)
Error processing object config files!

what should i do please help !!!
This is an emergency!!!

Thanking you
Moinul

EricTRA 05-26-2013 03:00 AM

Hello and Welcome to LinuxQuestions,

First of all, this is only an emergency to you, not to us. The error is pretty clear, you don't have any template definition for 'linux-server' and you're using it in your configuration file. So follow the documentation and create a template in the correct file so that Nagios can use it. A template in Nagios is used so that you don't have to retype repeating variables / values for each and every host to which you want to apply those. Check in your Nagios directory structure for a file called templates.cfg (nagios/etc/objects maybe?). That one holds a lot of examples. Also check in your nagios.cfg if you're including the templates file.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric


All times are GMT -5. The time now is 07:44 AM.