Tips, techniques and tools for remote monitoring



Similar documents
Opengear Application Note

Opengear Technical Note

Accelerated Cellular Extender: Model 6200-FX Accelerated View Remote Management

Securely manage data center and network equipment from anywhere in the world.

Dan Baxter PA Senior Sales Engineer

TK800-Series Industrial GPRS / UMTS / LTE Router

Executive Summary and Purpose

User Manual. ACM5000 & ACM5500 RMM Gateways IM4000 & IM4200 Infrastructure Managers CM4000 Console Servers SD4000 Secure Device Server

User Manual. Revision Data Center and Remote Site Management - User Manual

Enterprise Cloud Manager

CradleCare Support Agreement The Peace of Mind Plan

WiFi Anywhere. Multi Carrier 3G/4G WiFi Router. IntraTec Solutions Ltd

PCI DSS Compliance and the Digi TransPort Router

Remote Monitoring Unit SC8100. Monitoring Unit SC8100

Talk2M ewon Internet Connection How To

Chapter 8 Router and Network Management

YOUR BEST CONNECTION. HSPA+/UMTS/CDMA/EDGE/GPRS Cellular Router Technology FOR CELLULAR SOLUTIONS. Designed for M2M Applications

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

TK C -25 C 95% RH EMC TK701G TK701U TK704G TK704U TK704W. TK-Series Cellular Router

Smart Tips. Enabling WAN Load Balancing. Key Features. Network Diagram. Overview. Featured Products. WAN Failover. Enabling WAN Load Balancing Page 1

3G Wireless-N Smart Energy Gateway

Cradlepoint COR IBR350 Specifications

Gigabit Multi-Homing VPN Security Router

Preface 1. Introduction to Linux Networking 1.0 Introduction 2. Building a Linux Gateway on a Single-Board Computer 2.0 Introduction 2.

CradlepointCOR IBR350Specifications

Your Best Connection. LTE/HSPA+/UMTS/CDMA/EDGE/GPRS Cellular Router Technology. for Cellular Solutions. Designed for M2M Applications

Accessing Remote Devices via the LAN-Cell 2

WatchGuard SSL v3.2 Update 1 Release Notes. Introduction. Windows 8 and 64-bit Internet Explorer Support. Supported Devices SSL 100 and 560

June 2013 v. 0.2

Availability Management Nagios overview. TEIN2 training Bangkok September 2005

Chapter 4 Managing Your Network

Designed for the needs of automation, telecommunications, remote supervision, and monitoring

LTE SIM Security Guide Cisco Integrated Services Router (ISR G2) and Connected Grid Router

VPN Direct connection How To

15 May 2013 Version 5. for Mac OS X. Public version. Gemfor s.r.o. Tyršovo nám Roztoky Czech Republic

Who s Endian?

A Scalable Network Monitoring System as a Public Service on Cloud

The SSL device also supports the 64-bit Internet Explorer with new ActiveX loaders for Assessment, Abolishment, and the Access Client.

Firewall VPN Router. Quick Installation Guide M73-APO09-380

Manual. IP Sensor and Watchdog IPSW2210. I P S W M a n u a l P a g e 1. Relay Output. Power input. 12VDC adapter LED Indicators. 2 Dry.

Better Integration of Systems Management Hardware with Linux

Chapter 10 Troubleshooting

SNMP-1000 Intelligent SNMP/HTTP System Manager Features Introduction Web-enabled, No Driver Needed Powerful yet Easy to Use

This document is intended to make you familiar with the ServersCheck Monitoring Appliance

Troubleshooting BlackBerry Enterprise Service 10 version Instructor Manual

WAN Failover Scenarios Using Digi Wireless WAN Routers

High-performance VoIP Traffic Optimizer Client Solution

L2F Case Study Overview

Multi-Homing Dual WAN Firewall Router

securityprobe5es -X20

3G Applications on RouterOS. Brian Vargyas Baltic Networks USA MikroTik MUM USA 2011

Tk20 Network Infrastructure

Version Filename Part Number Opcode V_ FL bin FL bin.md5 FL pkg

Enabling Smart Data on M2M Gateways and Aggregators

McAfee Web Gateway 7.4.1

Network Management System (NMS) FAQ

Reverse Shells Enable Attackers To Operate From Your Network. Richard Hammer August 2006

Gigabit Multi-Homing VPN Security Router

Chapter 6 Using Network Monitoring Tools

Open Source in Network Administration: the ntop Project

CenterMind P+ Solution for efficient power management

Overview. 1. GPS data tracking via GSM SMS / GPRS. 2. GPS data logging in internal memory. 3. Alarm alert via GSM SMS / Dialing / GPRS

ADMINISTRATION GUIDE Cisco Small Business

Interconnecting IPv6 Domains Using Tunnels

SPECTRE Router CONFIGURATION MANUAL

Lighthouse User Manual

GSMPBX version 1.3 Datasheet

AfNOG 2010 Network Monitoring and Management Tutorial. Introduction to Networking Monitoring and Management

Flexy-ble M2M router for remote access and data services. Industrial M2M Router.

Installing and Configuring Websense Content Gateway

ADMINISTRATION GUIDE Cisco Small Business

EDM Cloud Remote Monitoring Solutions. Crystal Instruments, January 2014

Balance Model Comparison

MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE (OSS) PROGRAMME. COMPARISON REPORT ON NETWORK MONITORING SYSTEMS (Nagios and Zabbix)

Amplicon.com IT and Instrumentation for industry. Sales: +44 (0) Website:

Compatible with all of the Ravica range of Intelligent Sensors it provides a complete environmental, access control and security monitoring solution.

mbits Network Operations Centrec

Zenprise Device Manager 6.1.5

Magnum Network Software DX

OpenWRT - embedded Linux for wireless routers

GobiTM SDK Developing Code to Connect, Locate, and Manage 3G/4G Data Devices. Monte Giles Director Product Management, Qualcomm

securityprobe 5E Standard

AnyConnect VPN Client FAQ

Digi Cellular Gateway Security Overview

Ways to Use USB in Embedded Systems

How To Industrial Networking

Your remote sites at your fingertips?

GSM GATEWAY PRI / E1 RACK 3U

Chapter 6 Using Network Monitoring Tools

Using a Sierra Wireless AirLink Raven X or Raven-E with a Cisco Router Application Note

MONITORING. m 3 /s. m/s F. g/m 3. Software. Data Input. M2M Transfer. Processing. Reports Graphs, Excel Alarms. Measurement Sensors Dry contacts

CIP Best Practices Guide for the Digi TransPort Router

Configuring SSL VPN on the Cisco ISA500 Security Appliance

Transcription:

Tips, techniques and tools for remote monitoring Michael Sallaway Engineer at Opengear michael.sallaway@opengear.com 2015 Opengear

Who am I? Embedded Linux software engineer (~10 years) Snapgear: VPN routers & firewalls Opengear: remote out-of-band management Tinkerer / hobbyist / jack-of-all-trades

What do we do? Embedded Linux appliances Out-of-band & remote access OSS-friendly, hacker-friendly Providing custom development kits Support custom scripts & functionality

Monitoring: Why? Detecting Very Bad Stuff Determine standard conditions with remote access, fixing it Pre-empt Very Bad Stuff SLAs & Reporting: metric bounds

Monitoring: Where? Data centres Wiring closets Remote locations

Monitoring: Where? Really remote locations...

Monitoring: Where? Mobile locations Buses Gas tankers Industrial vehicles Internet of Things Each dictates different monitoring & access needs & methods

Monitoring: What? Basic: Devices are up: ping Network is working: interfaces, routes Services available: HTTP, DNS, SSH

Monitoring: What? More complex examples: Application statistics: load, performance SSL certificate validity, web APIs Network performance, latency, data usage

Monitoring: What? Environmental: Power supply, load, and UPS Temperature & humidity TTL I/O: alarms, contact sensors GPS (mobile installations)

Monitoring: How (access)? Primary connection: Can go down May not be present Out-of-band: independent channel When primary network is down When provisioning/troubleshooting remote hardware PSTN modem, Wi-fi, Cellular (3G/4G)

Out-of-band

Cellular Out-of-band Network independent from primary carrier Pervasive: straight out of the oven Quick to provision Fast (remote access, site access) SMS for portable notifications/control

Cellular Linux support Originally RS232 serial, later USB CDC ACM serial AT commands with GSM extensions (APN, RSSI) PPP to tunnel IP over serial

Cellular Linux support Carrier Became multiple serial endpoints Modem Firmware Modem (command, data, GPS, ) Proprietary SDKs to Kernel ttyusb6 access and manage interfaces pppd Userland sshd ttyusb4 sms tools3 ttyusb3 GPS monitor

Cellular Linux support 4G / LTE evolving to USB ethernet (some serial channels for control) Interfaces are becoming more standardized Sierra directip Qualcomm QMI / GOBI modems

Cellular: what can go wrong? Dropped Connections Idle or unresponsive connections Overloaded base station Hardware unresponsive Firmware bugs, edge case triggers Marginal reception, high USB power draw

Cellular: what can go wrong? Kernel/driver/SDK problems Memory leaks, OOM-killer failures Kernel panics TTY interface endpoint problems Modem config changes (APN, auth, etc.) Unauthorized SMS commands

Cellular: how can we handle that? Upgrading modem firmware and SW support Monitor RSSI for good antenna placement Multiple carriers (dual SIM) Restrict SMS: trusted #'s Wrappers: eg. handle TTY loss Watchdogs. Lots of watchdogs.

Cellular: Watchdogs Network connectivity: Periodic ping test Periodic DNS lookup Restart PPP or interface if suspicious Helps as an ISP keepalive

Cellular: Watchdogs Software interface: Monitor device (AT commands) Monitor TTY endpoints Restart software stack Reset modem (power cycle USB)

Cellular: Watchdogs Nuclear option: Something's wrong : reboot after long periods of failed connectivity Something's really wrong : hardware watchdog for kernel panics, hard locks With multiple levels of watchdogs and checks, we will have a reliable OOB connection What do we do with it?

Monitoring: How (software)? Central framework Custom scripts and binaries Digital I/O Environmental (Zenoss, Solarwinds, Zabbix, Nagios) OSS tools NUT: 'Network UPS Tools': power management Powerman: power outlets smstools3: SMS spooler over cell TTY SNMP polling of other devices

Monitoring: Nagios Widely used OSS infrastructure monitoring Based on 'checks' Program/script that runs to test something, reports status Active & passive checks (NRPE, NSCA) Integrates into other commercial systems

Nagios over Cellular Mobile plans usually NAT'ed; inbound needed: Active checks (NRPE) Remote access & troubleshooting Remote initiated tunnel or VPN to central server SSH stunnel OpenVPN

SSH over Cellular ( Call Home ) Remote device initiates SSH, with port forward: Keepalives to avoid carrier timeouts: ssh -N -R 2222:localhost:22 tunnel@central.nagios.server -o ServerAliveInterval=30 o ServerAliveCountMax=3 Restart if the port forward fails: -o ExitOnForwardFailure=yes

SSH over Cellular ( Call Home ) Use reciprocal key auth for user on both sides Check fingerprints (on both sides!) Consider restricting user's shell (eg. GNU rush) Will have automatic tunnel to remote devices: ssh tunnel@localhost:2222 Can proxy tunnels on server: Match User tunnel GatewayPorts yes

SSH over Cellular: caveats Data usage! Can minimize data usage Pooled business data plans Use in-band when available Alternative carrier networks: Public IPs (can be hard to get) IPv6 (ensure software support) Carrier-managed VPN networks

Data usage tips and tricks Enable SSH compression Tunnel passive Nagios checks: ssh -C -N -L 5667:localhost:5667... Tune Nagios checks: Increase check_interval for regular checks Decrease max_check_attempts before alerting Use volatile & passive checks where possible

Data usage: monitoring ISP web API iptables accounting rules Polling procfs interface statistics OSS packages: vnstat, ntop, MRTG, etc.

Data usage: complement with in-band Bring up cellular dynamically Monitoring script Connection management daemon Manually with SMS command SSH tunnel restarts/reconnects automatically Smart connection manager: dependencies, failover groups, smart checking

Bringing it all together Monitoring & remote access: Out-of-band access is essential Cellular is an excellent candidate network Data usage is a big trap Defensive design: assume it will fail, and always try to recover Remote home VPN gives central access

Questions?