Skip to content
Munen Alain M. Lafon edited this page Jul 23, 2014 · 6 revisions

Deployment

See DEPLOYMENT.md

General changes after cdist

Icinga

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:

Example of including a Swap check

  1. The check needs to be configured for checking the Icinga Server (currently Staging)
  2. The check needs to be configured for checking the Remote Servers (currently only Live)
  3. The check needs to be executed for checking the Icinga Server (currently Staging)
  4. The check needs to be executed for checking the Remote Servers (currently only Live)

Configuration

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$'"
        }

Execution

  • 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
}

RTMP Statistics

  1. Configure SSH for forwarding ports
Host vrs
  HostName voicerepublic-staging.sky.ungleich.ch
  User app
  LocalForward 8080 localhost:8080
  1. Visit RTMP Statistics in your browser

    http://localhost:8080/stat

Monitoring of issues

Developer Driven Monit

Access the monit by:

ssh [email protected] -L 2812:localhost:2812

Visit http://localhost:2812/

Database dumps

kluuu2_production.db
kluuu_production.db

Archives of 'system' folders with user assets

kluuu2_production.system.tar.gz
kluuu_production.system.tar.gz

Dump of main partition

ubuntu-md2.fsa
fsarchiver: http://www.fsarchiver.org/QuickStart
Clone this wiki locally