local-service' specified in service definition
Posted: Fri Jun 08, 2012 1:28 pm
Hello all,
I recently added RRDTool, PNP4Nagios, PHP 5.2 and PHP Modules and now when trying to:
I get the error:
which is:
I didn't have any problems with this until I made the modifications listed above and I'm not sure what syntax I may have goofed on. I'm sure that when I resolve this I will be able to utilize the solution to fix other problems I likely created while installing and modifying the rest of the feature.
This is a brand new installation monitoring linux and windows machines (which it seems to still be doing) on CentOS release 5.8 (Final)
I'm sorry, I searched online and didn't even bought the Self Paced training but after watching the video's I'm still not sure where I may have messed this one up. Any pointers would be greatly appreciated!
I recently added RRDTool, PNP4Nagios, PHP 5.2 and PHP Modules and now when trying to:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgCode: Select all
Error: Template 'local-service' specified in service definition could not be not found (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 150)
Code: Select all
define service{
use local-service ; Name of service template to use
host_name localhost
service_description HTTP
check_command check_http
notifications_enabled 0
}
This is a brand new installation monitoring linux and windows machines (which it seems to still be doing) on CentOS release 5.8 (Final)
I'm sorry, I searched online and didn't even bought the Self Paced training but after watching the video's I'm still not sure where I may have messed this one up. Any pointers would be greatly appreciated!