Icinga monitoring Asterisk€¦ · Icinga 2 Packages Debian Upstream, DebMon, Icinga Repository Ubuntu Upstream, Icinga PPA, Icinga Repository RHEL/CentOS Icinga Repository OpenSUSE

Post on 14-Apr-2020

13 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

Transcript

Monitoring Asterisk with Icinga

Main What is Icinga?

How it works?

Monitoring agents check_by_ssh, check_by_nrpe.

Host and Services.

Existing Plugins.

Create custom plugins.

Preference Data from plugins.

Icinga is…Icinga 2 is an open source monitoring system which checks the availability of your network resources.(From Icinga site)

Icinga 1 is a Nagios fork and it is compatible with Nagios Plugins.

Icinga 2 is rewritten from scratch and is compatible Nagios Plugins to.

Icinga is very flexible and extensible.

Multithreaded and scalable for small embedded systems as well as large scale environments

A lot of plugins already exists and it is very simple to create your custom plugin.

Icinga UI.Three kind of UI exist today.

Classic UI.

Icinga Web.

Icinga Web 2.

How it works?Icinga server and Modules.

Icinga check agents. Check by SSH check by NRPE.

Plugins. Nagios plugins and custom plugins.

Icinga ServerMultithreaded and scalable for small embedded systems as well as large scale environments.

Real-time monitoring capabilities. Can run checks every second.

Modularity just enable or disable module and run reload.

Live Status protocol. You can query Icinga to get info.

DB IDO (Database Icinga Data Output)

Icinga Checks

Agent less checks. Http, Ping, SSH.

Agent Based Checks. Agents use plugins

check_by_ssh, check_by_nrpe

Icinga Agents

Check By SSH.

Check By NRPE (Nagios Remote Plugin Executor).

NSClient++ (For Windows and Linux).

SNMP (Cisco routers not only).

Check by ssh

Icinga server

check_by_ssh plugin

CheckCommand “by_ssh”

ssh automatic connection

Asterisk inbound Asterisk outbound

Asterisk ss7

ssh server

ssh server ssh server

Check by nrpe

Icinga 2 serverAsterisk inbound

check_nrpe plugin

Nrpe serverNrpe checkNrpe check

Nagios plugins

Nrpe server

CheckCommand “by_nrpe”

CheckCommand “nrpe”

Nagios plugins

Asterisk outbound

xinetd xinetd

Icinga Plugins

Nagios Plugins http://exchange.nagios.org/

https://www.monitoringexchange.org/

Icinga Plugins https://exchange.icinga.org/

Custom Plugins.

Custom Plugins.

Plugin Directory.

Plugin.

Command inside nrpe.conf.

Custom PluginIf (CRITICAL STATE){

echo "CRITICAL: Current calls 60 and critical alert is 55 | 'critlimit‘=55 'curcalls‘ = 60” ;

exit(2);

} else

If (WARNING STATE){

echo “WARNING: Current calls 45 and warning alert is 40 | ‘warnlimit‘=40 'curcalls‘ = 45” ;

exit(1);

}else {

echo "OK - Current calls 15 | 'calls'= 15”;

exit(0);

}

Performance DataIcinga2-enable-future prefdata.

Spool Dir /var/spool/icinga2/perfdata/

File name for host data: host-perfdata.<timestamp>

File name for Service data : service-perfdata.<timestamp>

Graphing Add-ons

PNP4nagius (PrefdataWriter )

InGraph (PrefdataWriter )

Graphite (GraphiteWriter)

The End

top related