Page 1 of 1

Problem in adding the plugin as SERVICE

Posted: Wed Oct 22, 2014 1:54 am
by TIO
Hi all,

i have a problem in adding the F5 load balancer plugin. i added the plugin and added the associate "command". After that I tried to add it as a SERVICE on existing F5(it was added through wizard with Standard Network Device option) but below error prompt:

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/10.20.2.141.cfg', starting on line 16)

Below is that cfg file which starting from line 16:
define service {
host_name 10.20.2.141
service_description Ping
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard genericnetdevice
register 1
}

Can anyone give me some hints? Thx.

Re: Problem in adding the plugin as SERVICE

Posted: Wed Oct 22, 2014 3:30 pm
by slansing
That is a fairly generic error, on the service that you created in XI, did you assign one of the generic service templates to it? That will take care of some basics, you need to make sure everything listed in red on the below page regarding service configurations is defined in your ccm configuration for that service:

http://nagios.sourceforge.net/docs/nagi ... ml#service

Re: Problem in adding the plugin as SERVICE

Posted: Wed Oct 22, 2014 8:41 pm
by TIO
Thank you slansing. As your hints, I found that I missed to add "Manage Hosts" and "Manage Templates". It now can be successfully apply the configuration(although still get warning on the said service).

Anyway. You gave me a great help, cheers.

Re: Problem in adding the plugin as SERVICE

Posted: Thu Oct 23, 2014 2:40 pm
by abrist
TIO wrote:(although still get warning on the said service).
What is the new error?