Antwort: begginer question ..
Danny García Hernández
danny at g2k.es
Wed Feb 4 11:28:18 CET 2004
Hello. here is my hosts.cfg and service.cfg files.
Thks, Danny
hosts.cfg
------------------------------------------
# Generic host definition template
define host{
name generic-host ; The name of this host template - referenced in other
host definitions, used for template recursion/resolution
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program
restarts
retain_nonstatus_information 1 ; Retain non-status information across
program restarts
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A
TEMPLATE!
}
# 'linux1' host definition
define host{
use generic-host ; Name of host template to use
host_name micalet
alias Linux Server Micalet
address 192.169.1.5
check_command check-host-alive
max_check_attempts 10
notification_interval 480
notification_period 24x7
notification_options d,u,r
}
# 'linux2' host definition
define host{
use generic-host ; Name of host template to use
host_name mestalla
alias Linux Server Mestalla
address 192.168.1.4
check_command check-host-alive
max_check_attempts 10
notification_interval 480
notification_period 24x7
notification_options d,u,r
}
------------------------------------------
services.cfg
------------------------------------------
# Generic service definition template
define service{
name generic-service ; The 'name' of this service template, referenced
in other service definitions
active_checks_enabled 1 ; Active service checks are enabled
passive_checks_enabled 1 ; Passive service checks are enabled/accepted
parallelize_check 1 ; Active service checks should be parallelized
(disabling this can lead to major performance problems)
obsess_over_service 1 ; We should obsess over this service (if necessary)
check_freshness 0 ; Default is to NOT check service 'freshness'
notifications_enabled 1 ; Service notifications are enabled
event_handler_enabled 1 ; Service event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program
restarts
retain_nonstatus_information 1 ; Retain non-status information across
program restarts
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST
A TEMPLATE!
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name micalet
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_ping!100.0,20%!500.0,60%
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name micalet
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 2
retry_check_interval 1
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options w,u,c,r
check_command check_http
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name micalet
service_description Current Users
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options w,u,c,r
check_command check_local_users!75!150
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name micalet
service_description Total Processes
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options w,u,c,r
check_command check_local_procs!150!200!RSZDT
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name micalet
service_description /dev/sda3 Free Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_local_disk!20%!10%!/dev/sda3
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name micalet
service_description /dev/sda5 Free Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_local_disk!20%!10%!/dev/sda5
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name mestalla
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_ping!100.0,20%!500.0,60%
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name mestalla
service_description Current Users
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options w,u,c,r
check_command check_local_users!75!150
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name mestalla
service_description Total Processes
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options w,u,c,r
check_command check_local_procs!150!200!RSZDT
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name mestalla
service_description /dev/sda3 Free Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_local_disk!20%!10%!/dev/sda3
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name mestalla
service_description /dev/sda5 Free Space
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_local_disk!20%!10%!/dev/sda5
}
------------------------------------------
----- Original Message -----
From: <h.baecker at ecofis.de>
To: <danny at g2k.es>
Cc: <nagios-users at lists.sourceforge.net>;
<nagios-users-admin at lists.sourceforge.net>
Sent: Wednesday, February 04, 2004 10:33 AM
Subject: Antwort: [Nagios-users] begginer question ..
Hello Danny,
Can you give us an example of your hosts and service configuration?
Greetz
Hendrik
Danny García Hernández <danny at g2k.es>
Gesendet von: nagios-users-admin at lists.sourceforge.net
04.02.2004 09:26
An
<nagios-users at lists.sourceforge.net>
Kopie
Thema
[Nagios-users] begginer question ..
Helo List.
I´m a begginer with Nagios 1.2 and sorry for the gurus in this list, but i
have the commom begginer´s problem. Host show like DOWN when really are
UP,
command sending to this host /bin/ping -n -U -c 1 192.168.1.5 return
packets. Then HTTP and PING service are failing getting me a "CRITICAL -
Plugin timed out after 10 seconds " errors. Can any body help me?
Is necesary activate external command to verify host status?
Thank in Advanced
Danny
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list