CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES
-
Upload
nazmul-rakib -
Category
Engineering
-
view
75 -
download
2
Transcript of CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES
![Page 1: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/1.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/2.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/3.jpg)
Network and connection:
![Page 4: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/5.jpg)
SSH Connection For Remote Management
![Page 6: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/7.jpg)
Manager 2nd managerIP:10.10.0.140 IP:10.10.0.141
![Page 8: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/8.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/9.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/10.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/11.jpg)
HTTP Server
• Command : sudo ./manager-linux-x64.run
• This will open Graphical interface of XAMPP.
![Page 12: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/12.jpg)
From terminal: sudo /opt/lamp/lamp start
![Page 13: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/13.jpg)
Sample Login
![Page 14: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/14.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/15.jpg)
Connect to ftp server
![Page 16: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/16.jpg)
FTP Server
![Page 17: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/17.jpg)
FTP server through file browse
![Page 18: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/18.jpg)
MONITOR
![Page 19: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/19.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/20.jpg)
There are generally three basic goals for network monitoring:• Performance monitoring• Fault monitoring• Account monitoring
![Page 21: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/21.jpg)
Wireshark vs Nagios
• Wireshark: protocol analyzer.
• Nagios: Completely Monitor detect and receive aterts.
![Page 22: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/22.jpg)
IT manager with
![Page 23: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/23.jpg)
![Page 24: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/24.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/25.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/26.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/27.jpg)
Localhost.cfgCan be found in objects folder of Nagios
![Page 28: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/28.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/29.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/30.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/31.jpg)
Commands.cfgCan be found in objects folder of Nagios
![Page 32: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/32.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/33.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/34.jpg)
Nagios Login Page
![Page 35: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/35.jpg)
Nagios Monitor Home Page
![Page 36: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/36.jpg)
Hosts view in Nagios
![Page 37: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/37.jpg)
Host Groups
![Page 38: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/38.jpg)
Problems in one page
![Page 39: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/39.jpg)
IT manager without Nagios
![Page 40: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/40.jpg)
IT Manager with Nagios
![Page 41: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/41.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/42.jpg)
Install Nagios plugins• https://exchange.nagios.org/directory/Plugins/Telephony/Asterisk
![Page 43: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/43.jpg)
Copy to libexec folder
# cp /home/amcprak/Downloads/check_asterisk_peers /usr/local/nagios/libexec/
![Page 44: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/44.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/45.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/46.jpg)
Output of installed Nagios plugins
![Page 47: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/47.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/48.jpg)
Direct Checks
Check_asterisk
Check_calls
Asterisk
![Page 49: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/49.jpg)
Via Proxy Checks
![Page 50: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/50.jpg)
NRPE server & Asterisk peers availibility check
![Page 51: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/51.jpg)
Peers check of remote Asetrisk
![Page 52: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/52.jpg)
Service Details View
![Page 53: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/53.jpg)
Flapping
• (7 observed state changes / possible 20 state changes) * 100 = 35 %
![Page 54: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/54.jpg)
Peer Ashiq not Connected
![Page 55: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/55.jpg)
CRITICAL status peer not connected
![Page 56: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/56.jpg)
TROUBLES
SHOOTS
![Page 57: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/57.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/58.jpg)
Allow host in the Nagios conf file
![Page 59: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/59.jpg)
Connection Success With NRPE Server
![Page 60: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/60.jpg)
NRPE Unable to Connect Remote Asterisk
![Page 61: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/61.jpg)
Asterisk.ctl needs proper permission
![Page 62: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/62.jpg)
Unable to read outputPlugin needs full permission to run
![Page 63: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/63.jpg)
Give file permission
![Page 64: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/64.jpg)
# 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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/65.jpg)
• /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](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/66.jpg)
Apache server start fail
![Page 67: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/67.jpg)
• Go to terminal > service apache2 status• service apache2 stop
![Page 68: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/68.jpg)
Thank You for Your Attention
![Page 69: CENTRAL MANAGEMENT OF NETWORK AND CALL SERVICES](https://reader036.fdocuments.net/reader036/viewer/2022081514/58cf1e311a28abc05f8b596d/html5/thumbnails/69.jpg)