Page 1 of 1

Nagiosgraph template Error

Posted: Sat Mar 08, 2014 3:19 pm
by mkot
Hi, I've installed Nagiosgraph at my backup Nagios server - I want test this feature. I did all from http://www.linuxfunda.com/2013/04/02/st ... agios-core but i get error after I check my Nagios configuration at the end.

I've added new template [nagiosgraph] in my templates.cfg file (/usr/local/nagios/etc/objects/templates.cfg). I've added this template [nagiosgraph] in my hosts' services definitions (/usr/local/nagios/etc/objects/taiwa/TAIWA.cfg), so it looks:

Code: Select all

define service{
use generic-service, nagiosgraph
hostgroup_name TAIWA
service_description DISK Load C
check_command check_nrpe!DISK Load C
notification_options w,c,r
active_checks_enabled 0
passive_checks_enabled 1
}
When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.conf for check my configuration, I get error:

Code: Select all

Error: Template 'nagiosgraph' specified in service definition could not be not found (config file '/usr/local/nagios/etc/objects/taiwa/TAIWA.cfg', starting on line 672)"
Did I miss something?

My OS's Ubuntu 12.04.4 LTS. Nagios is working via NSCA Addon (passive checks for monitoring PC/NB, active checks for monitoring Windows Srv machines).

Re: Nagiosgraph template Error

Posted: Sat Mar 08, 2014 4:11 pm
by mkot
Ok, I found the issue, I wrote:

Code: Select all

use generic-service, nagiosgraph
but it should be:

Code: Select all

use generic-service,nagiosgraph

Re: Nagiosgraph template Error

Posted: Mon Mar 10, 2014 9:43 am
by slansing
That resolved the problem for you?

Re: Nagiosgraph template Error

Posted: Tue Mar 11, 2014 8:19 am
by mkot
Yes, thread can be closed.