nürnberg, october 29 th 2009€¦ · 3 introduction whatisnconf main theme: designedfor easeof...

25
Nürnberg, October 29 th 2009 Angelo Gargiulo NConf - Enterprise Nagios configurator

Upload: others

Post on 31-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

Nürnberg, October 29th 2009

Angelo Gargiulo

NConf - Enterprise Nagios configurator

Page 2: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

2http://www.nconf.org

Agenda

• Introduction

• What is NConf

• The project

• Working with NConf

• Customizing NConf

• Distributed monitoring

• Application design

• Development roadmap

• Live demo NConf 1.2.6

• Q & A

Page 3: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

3http://www.nconf.org

IntroductionWhat is NConf

Main theme:

Designed forease of use, aimed at large, distributedsetups.

Page 4: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

4http://www.nconf.org

IntroductionWhat is NConf

Page 5: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

5http://www.nconf.org

IntroductionWhy NConf

• NConf is meant for large, distributed monitoring setups

• It allows a very quick initial deployment of Nagios

• We have been using NConf in a production environment for 3 years

• NConf supports numerous authentication mechanisms and user roles

• The NConf data structure is easily expandable

• The target audience are sysadmins with Nagios know-how*

* Nagios know-how required for initial deployment of NConf,not required for later usage of the tool

Page 6: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

6http://www.nconf.org

IntroductionMain features

• effortlessly maintain a distributed Nagios topology

• user-friendly web-GUI

• define host templates for your hosts

• define dependencies between hosts

• browse dependencies graphically

• choose from multiple authentication modes

• import existing Nagios configuration files

• easily expandable and customizable data schema

• perl database API

• customizable appearance

• runs on Linux / Apache / PHP / MySQL

Page 7: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

7http://www.nconf.org

IntroductionHistory

• 2006Initial deployment of Nagios for ~400 systems, first version of NConf (originally called „NagiosConf“)

• 2007Continuous improvement of NConf, bugfixing, additional features

• 2008Start of project „Nagios II“, deployment of Nagios for ~1000 additional systems

• 2009Release of NConf under GPL license, implementation of additional features required for project „Nagios II“

Page 8: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

8http://www.nconf.org

IntroductionThe development team

• Fabian Gander

Development of web GUIs, install/update procedure;

• Angelo Gargiulo

DB development, perl-API, backend functionality, quality assurance;

• Bernhard Waldvogel

Specifications, testing, project management;

Page 9: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

9http://www.nconf.org

IntroductionLicense

• NConf is published under GPL (v2)

• Copyright holder is Sunrise Communications AG

• Development has so far been sponsored by Sunrise

• The goal is to give something back to the OS-community, as well as to profit from third party extensions some day

Page 10: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

10http://www.nconf.org

IntroductionWho is Sunrise

Page 11: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

11http://www.nconf.org

Working with NConfMode of operation

NConf

User

Nagios / Icinga

generatedCFG files

NConf DB

generate CFGdep

loyment

existingCFG files

import (initial load)

Page 12: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

12http://www.nconf.org

Working with NConfObject definitions: Nagios vs. NConf

define host {

host_name localhost

alias localhost.localdomain

address 127.0.0.1

}

define service {

service_description check_local_load

host_name localhost

check_command check_local_load!5!10

}

define command {

command_name check_local_load

command_line $USER1$/check_load -w $ARG1$ -c $ARG2$

}

host

check command

service

+ host_name+ alias+ address

+ service_description+ host_name+ check_command+ (service params)

+ command_name+ command_line+ (default params)

Nagios NConf

Page 13: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

13http://www.nconf.org

Working with NConfHost-templates in NConf

host

host-template

host-alive check

default servicesto monitor

check command- path to plugin script- check parameters

Nagios collector server(aka slave, satellite etc.)

soft-links

Page 14: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

14http://www.nconf.org

• Users may editcontacts,contactgroups, commands,timeperiods,host-templates,etc...

• Commands can beany Perl / shell scriptsor binaries, using SNMP, NRPE, etc...

Working with NConfCustomizing NConf

Page 15: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

15http://www.nconf.org

Working with NConfDistributed monitoring „a la NConf“

site 1 site 2

- knows all devices

alerting

- only runs passive checks(check freshness)

Nagios monitor server

- knows and checksonly a part of the devices

- runs active checks

Nagios collector server(s)

NSCAetc.

Page 16: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

16http://www.nconf.org

Working with NConfDistributed monitoring „a la NConf“

NConf

- checkcommands.cfg- contactgroups.cfg- contacts.cfg- misccommands.cfg- timeperiods.cfg- (.htpasswd_nagios)- (custom objects)

- hosts.cfg- extended_host_info.cfg- hostgroups.cfg- services.cfg- extended_service_info.cfg- servicegroups.cfg

global

server-specific

Deployment of filesmust be set up individually

Page 17: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

17http://www.nconf.org

Application designComponents of the application

database

CSS

PHP webinterface

Perl-API

auth modules

misc modules

Nagios cfg

NConf cfg

existing

user database

(LDAP, SQL etc.)

Page 18: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

18http://www.nconf.org

Application designDomain model

Page 19: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

19http://www.nconf.org

Application designExtending the data structure

Page 20: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

20http://www.nconf.org

Application designData model

Items Classes

AttributesValues

Item „18“ is of class „host“

Class „host“ possesses an attribute named „host_name“

The attribute „host_name“ carriesthe value „localhost“

The value „localhost“ is assignedto item „18“

Page 21: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

21http://www.nconf.org

ID_class_FKID

Items

127.0.0.193

localhost73

ID_item_FK attr_valueID_attr_FK

Values

attr datatypeID ID_class_FKmust

Attributes

classID

Classes

ID_item_FK ID_attr_FKID_item_linked2

Links

Host1

classID

Classes

1textip_address9

1Xtexthostname7

attr datatypeID ID_class_FKmust

Attributes

13

ID_class_FKID

Items

ID_item_FK attr_valueID_attr_FK

Values

Service2

Host1

classID

Classes

2Xtextservice_desc10

2selectservice_level13

1textip_address9

1Xtexthostname

attr datatypeID ID_class_FKmust

Attributes

24

13

ID_class_FKID

Items

webserver104

4

ID_item_FK

7x2413

attr_valueID_attr_FK

Values

2Xtextservice_desc10

2selectservice_level13

1assign_nsrv_to_host14

1textip_address9

1Xtexthostname

attr datatypeID ID_class_FKmust

Attributes

3

ID_item_FK

144

ID_attr_FKID_item_linked2

Links

Application designData model

Page 22: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

22http://www.nconf.org

Development roadmapUpcoming version

• Current stable version is NConf 1.2.5

• Version 1.2.6 is planned to be released within the next 2 weeks

New features in NConf 1.2.6:

• CSV importer

• GUI improvement

• New deployment features

• Lots of bugfixing

• New nconf.org portal (will be launched with NConf 1.2.6)

Page 23: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

23http://www.nconf.org

Development roadmapWhat‘s ahead

Near future:

• simplified deployment

• service dependencies

• service-templates (Nagios-like)

• host-templates (Nagios-like)

• several Nagios 3.x related features

Far future:

• reporting functionality

• move NConf access control and config to database

• additional export interfaces (e.g. LDAP)

• allow proprietary add-on's

• Contributions of any kind to the project are welcome!

Page 24: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

24http://www.nconf.org

Live demo NConf 1.2.6

Start NConf demo

Page 25: Nürnberg, October 29 th 2009€¦ ·  3 Introduction WhatisNConf Main theme: Designedfor easeof use, aimedat large, distributed setups

25http://www.nconf.org

ContactHow to stay in touch

• www.nconf.org

• NConf forumhttp://sourceforge.net/apps/phpbb/nconf/

• XINGhttps://www.xing.com/net/nconf/

• Facebookhttp://www.facebook.com/group.php?gid=53666978172