CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

69
Central Management of Network and Call Services Mohammad Nazmul Hossain Mohammad Ashiqur Rahman Md Mhabub Hossain Md Shahinul Haque Chowdhury Advanced –Multimedia Communication

Transcript of CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Page 1: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Central Management of Network and Call Services

Mohammad Nazmul HossainMohammad Ashiqur RahmanMd Mhabub HossainMd Shahinul Haque Chowdhury

Advanced –Multimedia Communication

Page 2: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Abstract

• Make servers of web service, ftp service, VoIP video call service

• Monitor & manage them centrally from a host in private connection or from remote connection.

• The remote connection can be established through Secure Shell (SSH) connection which will connect to the servers through Router (or Routers).

Page 3: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Network and connection:

Page 4: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

IP Table for Our NetworkDevice (Hostname) Interfaces Used Software IP Address Gateway

Monitor Server NIC Nagios 10.10.0.135/25 10.10.0.129

Call Server NIC Asterisk 10.10.0.130/25 10.10.0.129

http Server VM XAMPP 10.10.0.131/25 10.10.0.129

ftp Server VM ProFTPD 10.10.0.132/25 10.10.0.129

IP Phone NIC Grandstream 10.10.0.140/25 10.10.0.129

IP Phone NIC Grandstream 10.10.0.141/25 10.10.0.129

Switch Vlan99 Catalyst 2960 10.10.0.200/25 10.10.0.129

Wi-Fi RouterWireless Linksys 10.10.1.129/25

Internet Linksys 10.10.0.129/25

Page 5: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

SSH Connection For Remote Management

Page 6: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Call Server

• We used Asterisk as call server.• IP: 10.10.0.130 (call server IP)• SIP.conf (Configuration file)• Extensions.conf (Configuration file)• We have video call service enabled

-We have used GXV3140 IP Multimedia Phone

Page 7: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Manager 2nd managerIP:10.10.0.140 IP:10.10.0.141

Page 8: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

We can use call server service by any smart phone remotely using Antisip.

VoIP by antisip

Page 9: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

HTTP Server

• We are using HTTP server to get the Web service.• The HTTP server has setup using LAMPP (Common

name XAMPP) software• XAMPP stand for

X = Any of the different operating systems A = Apache

M = MySQLP = PHPP = Perl

Page 10: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Main Services (LAMPP)

• http server for Web service• ProFTPD fo file transfer service• MySQL Database• Interpreters for scripting languages

Page 11: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

HTTP Server

• Command : sudo ./manager-linux-x64.run

• This will open Graphical interface of XAMPP.

Page 12: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

From terminal: sudo /opt/lamp/lamp start

Page 13: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Sample Login

Page 14: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

FTP Server

• ProFTPD is an open source software for file transfer service Ubuntu or Linux based OS.

• We are using ProFTPD software for file transfer service

Page 15: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Connect to ftp server

Page 16: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

FTP Server

Page 17: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

FTP server through file browse

Page 18: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

MONITOR

Page 19: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

WHY??

• Network monitoring is the information collection function of network management.

• Network monitoring provides the information necessary for network management. It is important to find network trends and locate network problems quickly.

• Can automatically detect and respond to threats and performance issues in real time, as well as predict possible issues in the future.

Page 20: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

There are generally three basic goals for network monitoring:• Performance monitoring• Fault monitoring• Account monitoring

Page 21: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Wireshark vs Nagios

• Wireshark: protocol analyzer.

• Nagios: Completely Monitor detect and receive aterts.

Page 22: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

IT manager with

Page 23: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES
Page 24: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Benefits of Nagios

• Allows to detect and resolve problems before they have a negative effect on Networks.

• Can completely monitor and receive alerts for Networks services, servers, switches and applications, and even mitigate any future issues.

• Fully flexible and scalable, and gives total peace-of-mind that IT systems will continue running without causing any interruptions.

Page 25: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Prerequisite for NAGIOS

• wget• build-essential• apache2• apache2-utils• php5-gd• libgd2-xpm-dev• libapache2-mod-php5• postfix

Page 26: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Nagios Configuration:

Object Used forhosts servers or devices being monitoredhostgroups group of hostsservices services being monitoredservicegroups groups of servicestimeperiod scheduling of checks and notificationscommands checking hosts and services notifying contacts

event handlingcontacts individuals to alertcontactgroups groups of contacts

We have configured two configuration file:• commands.cfg• localhost.cfg

Page 27: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Localhost.cfgCan be found in objects folder of Nagios

Page 28: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Define a host for the local machine.

define host{use linux-serverhost_name callserveralias Call Server

address 10.10.0.130}

Page 29: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Define hostgroup for linux machines.

define hostgroup{hostgroup_name grp6serveralias Group 6 Serversmembers webserver,ftpserver,callserver

}

Page 30: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Define a service to ping the host or server machines.

define service{use local-servicehost_name callserverservice_description PINGcheck_command check_ping!100.0,20%!500.0.60%

}

Page 31: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Commands.cfgCan be found in objects folder of Nagios

Page 32: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Define a command to see a host is alive by pinging it.

# ‘check-host-alive’ command definitiondefine command{command_name check-host-alivecommand_line $USER1$/check_ping –H

$HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5}

Page 33: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

To Enter the Nagios monitor page

• http://localhost/nagios

• Or

• http://127.0.0.1/nagios

Page 34: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Nagios Login Page

Page 35: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Nagios Monitor Home Page

Page 36: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Hosts view in Nagios

Page 37: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Host Groups

Page 38: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Problems in one page

Page 39: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

IT manager without Nagios

Page 40: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

IT Manager with Nagios

Page 41: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Nagios-Plugin

• What is plug-in?• It is a software component that adds a specific

feature to an existing computer program.

Page 42: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Install Nagios plugins• https://exchange.nagios.org/directory/Plugins/Telephony/Asterisk

Page 43: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Copy to libexec folder

# cp /home/amcprak/Downloads/check_asterisk_peers /usr/local/nagios/libexec/

Page 44: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

commands.cfg#’check_asterisk_peers’ command definition

Define commands{

Command_name check_asterisk_peers

Command_line $USER1$/check_asterisk_peers $ARG1$ -p ‘’Manager 2nd –manager’’

}

-p A space separated list of peers to check.

Page 45: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

localhost.cfgdefine service{Use local-serviceHost_name callserverService_description check SIP peersCheck_command check_asterisk_peers}

Page 46: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Output of installed Nagios plugins

Page 47: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

NRPE Server

• Nagios Remote Plugin Executor• Nagios cannot execute commands to remote

servers from remote connection.• NRPE Server do this job remotely for Nagios.

Page 48: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Direct Checks

Check_asterisk

Check_calls

Asterisk

Page 49: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Via Proxy Checks

Page 50: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

NRPE server & Asterisk peers availibility check

Page 51: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Peers check of remote Asetrisk

Page 52: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Service Details View

Page 53: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Flapping

• (7 observed state changes / possible 20 state changes) * 100 = 35 %

Page 54: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Peer Ashiq not Connected

Page 55: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

CRITICAL status peer not connected

Page 56: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

TROUBLES

SHOOTS

Page 57: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

SSL handshake

• ./check_nrpe –H 10.10.0.130• Check_nrpe: error – could not complete SSL handshake

• By default nrpe.cfg allowed_hosts line only holds localhost address:

• allowed_hosts=127.0.0.1 • We have to put the nagios IP address here:• allowed_hosts=127.0.0.1, 10.10.0.135

Page 58: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Allow host in the Nagios conf file

Page 59: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Connection Success With NRPE Server

Page 60: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

NRPE Unable to Connect Remote Asterisk

Page 61: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Asterisk.ctl needs proper permission

Page 62: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Unable to read outputPlugin needs full permission to run

Page 63: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Give file permission

Page 64: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

# chmod 777

Owner permission

Group permission

Permission for Everyone

0 – no permission1 – execute2 – write3 – write and execute

4 – read5 – read and execute6 – read and write7 – read, write, and execute

Page 65: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

• /usr/local/nagios/plugins/check_nrpe -H comxps -c check_openmanage NRPE: Unable to read output

Page 66: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Apache server start fail

Page 67: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

• Go to terminal > service apache2 status• service apache2 stop

Page 68: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES

Thank You for Your Attention

Page 69: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES