SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Service and Servicegroups
Service definitions will be saved in /usr/local/nagios/etc/services.cfg
.
By using templates, you can simplify the entries for individual services by not having repeated entries for common settings.
# Generic service definition template - This is NOT a real service, just a template!
define service{
name generic-service
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 60
notification_period none
register 0
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
register 0
}
Now, the actual service definition can be much shorter:
define service{
use generic-service
host_name <name>
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
Since the number of services being defined might grow large, it's probably easier to store service group definitions in a separate file, if you choose to use them: /usr/local/nagios/etc/servicegroups.cfg
.
define servicegroup{
servicegroup_name smtp
alias SMTP Servers
members mailserver1,SMTP,mailserver2,SMTP
}
- Log in to post comments