Il 01/03/2013 12.07, Elio Exposito ha scritto:

After configuring the service I need to run some command to display it
in the WATO panel, that is to appear in the inventory?

Sorry, I don't know and use WATO, but for view one host in the nagios desk you need to define this in hosts.cfg file (that you will find in /opt/omd/site/$YOURSITENAME/etc/nagios/conf.d/).
The hosts.cfg file appear like this at last:

define host {
  host_name                      www.foo.bar
  alias                          WEB Server
  use                            host
  address                        172.31.1.9
  contact_groups                 sys
  parents                        switch_address_or_router_address
}

This is the minimal configuration needed for one host, and the template file must appear like this:

# Generic host definition template
define host {
  name                           generic-host
  check_command                  check-host-alive
  check_interval                 5
  check_period                   24x7
  event_handler_enabled          1
  failure_prediction_enabled     1
  flap_detection_enabled         1
  max_check_attempts             3
  notification_interval          120
  notification_options           d,u,r
  notification_period            24x7
  notifications_enabled          1
  process_perf_data              1
  register                       0
  retain_nonstatus_information   1
  retain_status_information      1
  retry_interval                 1
}

In the OMD project the nagios configuration are already done for put only host definition in hosts.cfg file and service definition in service.cfg

After restart nagios process and you should find the host in the nagios desk.

I will find the quick guide for create one host and one service in your local nagios documentation. It sound like this: http://your-nagios-server/your-site-name/nagios/docs/monitoring-publicservices.html
Here you find either configuring one host and configuring one service on that 
host.

Regards
Rizio
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to