-
Notifications
You must be signed in to change notification settings - Fork 17
Server Setup
Munen Alain M. Lafon edited this page Jul 23, 2014
·
6 revisions
See DEPLOYMENT.md
We use Nagios' Fork Icinga for monitoring our servers.
Tomáš Pospíšek did the initial implementation, so he knows best how to configure that application.
To include a new check to Icinga, do the following:
- The check needs to be configured for checking the Icinga Server (currently Staging)
- The check needs to be configured for checking the Remote Servers (currently only Live)
- The check needs to be executed for checking the Icinga Server (currently Staging)
- The check needs to be executed for checking the Remote Servers (currently only Live)
New Files
- local check (staging)
- /etc/nagios-plugins/config/swap.cfg
# 'check_swap' command definition
define command{
command_name check_swap
command_line /usr/lib/nagios/plugins/check_swap -w '$ARG1$' -c '$ARG2$'
}
- remote check (live)
- /etc/nagios-plugins/config/swap_ssh.cfg
# 'check_swap_ssh' command definition
define command{
command_name check_swap_ssh
command_line /usr/lib/nagios/plugins/check_by_ssh -H '$HOSTADDRESS$' -C "/usr/lib/nagios/plugins/check_swap -w '$ARG1$' -c '$ARG2$'"
}
- local check (staging)
- /etc/icinga/objects/services_icinga.cfg
define service {
hostgroup_name debian-servers
service_description Swap
check_command check_swap
check_command check_swap!75!40
use generic-service
notification_interval 0
}
- remote check (live)
- /etc/nagios-plugins/config/voicerepublic.cfg
define service {
host_name production
service_description Swap
check_command check_swap_ssh!75!40
use generic-service
notification_interval 0
}
- Configure SSH for forwarding ports
Host vrs
HostName voicerepublic-staging.sky.ungleich.ch
User app
LocalForward 8080 localhost:8080
-
Visit RTMP Statistics in your browser
Access the monit by:
ssh [email protected] -L 2812:localhost:2812
Visit http://localhost:2812/
kluuu2_production.db
kluuu_production.db
kluuu2_production.system.tar.gz
kluuu_production.system.tar.gz
ubuntu-md2.fsa
fsarchiver: http://www.fsarchiver.org/QuickStart