Nagios
Jump to navigation
Jump to search
Config files /etc/nagios3/conf.d Config check nagios3 -v /etc/nagios3/nagios.cfg Plugins /etc/nagios-plugins/config
./usr/share/nagios ./usr/lib/nagios ./var/lib/nagios
define service{
use generic-service ; Inherit default values from a template
hostgroup_name zimbra-servers
service_description IMAP
check_command check_imap
}
define service{ use generic-service ; Inherit default values from a template hostgroup_name zimbra-servers service_description SMTP check_command check_smtp }
- check that MySQL services are up
define service {
hostgroup_name mysql-servers
service_description MySQL
check_command check_mysql
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}
define command{
command_name check_http_auth
command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$'q
}
define service{
use generic-service ; Name of service template to use
host_name localhost
service_description HTTP
check_command check_http_auth!user:pass ; Enter actual user/pass
}
define hostextinfo{
hostgroup_name debian-servers
notes Debian GNU/Linux servers
icon_image base/debian.png
icon_image_alt Debian GNU/Linux
vrml_image debian.png
statusmap_image base/debian.gd2
}
define hostextinfo{
hostgroup_name ubuntu-servers
notes Ubuntu servers
icon_image base/ubuntu.png
icon_image_alt Ubuntu
vrml_image ubuntu.png
statusmap_image base/ubuntu.gd2
}