Nagiosgraph template Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mkot
Posts: 68
Joined: Tue Feb 25, 2014 1:47 am
Location: Poland

Nagiosgraph template Error

Post 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).
mkot
Posts: 68
Joined: Tue Feb 25, 2014 1:47 am
Location: Poland

Re: Nagiosgraph template Error

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagiosgraph template Error

Post by slansing »

That resolved the problem for you?
mkot
Posts: 68
Joined: Tue Feb 25, 2014 1:47 am
Location: Poland

Re: Nagiosgraph template Error

Post by mkot »

Yes, thread can be closed.
Locked