NSClient++ in the new millenium!

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

DSX / Video Insight Driver Interface. Prerequisites for Video Insight DVR: 64 Bit Operating System (Windows 7 or equivalent) SQL Server 2008 R2 (Please.
1.  Understanding about How to Working with Server Side Scripting using PHP Framework (CodeIgniter) 2.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
15.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 15: Configuring a Windows.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
Server selection Multiple servers Add a server UDN selection Channel selection Time selection Duration selection Channel window Time window Current time.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
Pro Exchange SPAM Filter An Exchange 2000 based spam filtering solution.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
rg Michael Medin SOA/Middleware Architect Michael Medin
This presentation will guide you though the initial stages of installation, through to producing your first report Click your mouse to advance the presentation.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Passive Monitoring with Nagios Jim Prins
©Kwan Sai Kit, All Rights Reserved Windows Small Business Server 2003 Features.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
Workflow Manager and General Tuning Tips. Topics to discuss… Working with Workflows Working with Tasks General Tuning Tips.
South Dakota Library Network ALEPH v21 Staff User Upgrade Information Circulation and ILL South Dakota Library Network 1200 University, Unit 9672 Spearfish,
Josh Riggs Utilizing Open Source Network Monitoring.
Hands-On Microsoft Windows Server Security Enhancements in Windows Server 2008 Windows Server 2008 was created to emphasize security –Reduced attack.
Elisabetta Ronchieri - How To Use The UI command line - 10/29/01 - n° 1 How To Use The UI command line Elisabetta Ronchieri by WP1 elisabetta.ronchieri.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
Ripple Technologies, Inc 7/98 LogCaster. Ripple Technologies, Inc 7/98 LogCaster NT Real Time System Monitoring.
Module 7: Fundamentals of Administering Windows Server 2008.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
(*Fax messaging is available only upon request; fees apply.) What Is Unified Messaging? Voice, fax* and messaging within a single interface Access.
TELE 301 Lecture 10: Scheduled … 1 Overview Last Lecture –Post installation This Lecture –Scheduled tasks and log management Next Lecture –DNS –Readings:
ITN Wake Tech1 ITN270 Advanced Internet Databases Lecture 15. General MySQL Administration Topics: –Securing a New MySQL Installation –MySQL Server.
Phone: Mega AS Consulting Ltd © 2007  CAT – the problem & the solution  Using the CAT - Administrator  Mega.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
System Initialization 1)User starts application. 2)Client loads settings. 3)Client loads contact address book. 4)Client displays contact list. 5)Client.
Avira Endpoint Security. Introduction of Avira Management Center (AMC)
1 LCH.Clearnet – Sysgem AG Automated Production Manager Requests Discussion, 24 Aug 2011 WebEx Conference.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
All rights reserved, property and © CAD Computer GmbH & Co.KG 2009 Cover Page.
Prasanna K. Agenda Setting Up the Environment Introduction Extension Essentials Building a Extension Demo Users Build a Banking a Trojan Building the.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
CSC 2720 Building Web Applications Server-side Scripting with PHP.
Windows PostgreSQL installation. Pre-requisites Define a local non-administrative Windows account (eg. postgres) Must install on Console, not through.
1 Implementing Monitoring and Reporting. 2 Why Should Implement Monitoring? One of the biggest complaints we hear about firewall products from almost.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting MySQL – Inserting Data.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
Table of Contents TopicSlide Administrator Login 2 Administrator Navigations 3 Managing AlternativeDr.com Blogs 4 Managing Dr. Lloyd May Blogs 5 Managing.
Database Security Cmpe 226 Fall 2015 By Akanksha Jain Jerry Mengyuan Zheng.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 7 - Introduction to Common Gateway Interface (CGI) Outline 7.1Introduction 7.2A Simple HTTP Transaction.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Project 5: Using Pop-Up Windows Essentials for Design JavaScript Level One Michael Brooks.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
PHP Syntax You cannot view the PHP source code by selecting "View source" in the browser - you will only see the output from the PHP file, which is plain.
Interactions & Automations
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
Module 14: Advanced Topics and Troubleshooting. Microsoft ® Windows ® Small Business Server (SBS) 2008 Management Console (Advanced Mode) Managing Windows.
9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Scheduling and Bursting Reports.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
L.A.M.P. İlker Korkmaz & Kaya Oğuz CS 350. Why cover a lecture on LAMP? ● Job Opportunities – There are many hosting companies offering LAMP as a web.
Npush agent deployment Yancy Ribbens
SQL Database Management
Document Management Lindsey & Krystian.
Configuring Internet-related services
How to debug a website using IE F12 tools
Presentation transcript:

NSClient++ in the new millenium! (re)Discovering NSClient++ Name: Michael Medin (@mickem) Email: michael@medin.name Blog: http://blog.medin.name Project: NSClient++ Web: http://nsclient.org Hello my name is Michael Medin. I am from Stockholm, Sweden NSClient++: I am here to talk about NSClient++ (as always) but NOT about Windows (so much) this time Different: For those of you who have seen me before (Means I will screw up more) Questions: Any questions: feel free to chime in at any time • ∘

No disclaimer this year… Still your fault though!

Michael Medin dev not ops worked in ops a long time ago by misstake Always been a fan of DEVOPS Work with soa work with “soa” not, C/C++, nagios, icinga, …

No agenda this year either…

About NSClient++ (the program) linux and windows <0.4.0 Since 2003? Open source Open source not open core 0.4.0: 2012-05-xx modular (pluggable) Written in C++ Since 2003 Windows (pre 0.4.0) Linux and Windows Modular Open source (not core) 0.4.0 (may) 0.4.1 (October) 0.4.2 (next year) Releases every year (in the past) .0 and .1 (same same) .2 and .3 (same same) 0.4.1 is the new stable, means 0.4.0 is legacy, 0.3.9: Time to move on: QUEUE Comic 0.4.1: 2012-10-xx 0.4.2: 2013-02-xx?

About NSClient++ (the project) one-man-band no company , no commercial version , no payed time Please don’t be angry! but… sponsoring! = feedback donations! One man band Don’t be angry If I missed your comment … it was because I forgot not because I hate you support?

NSClient++ (What can I do?) Update the wiki! Fork me on github Respond in the forums… Submit patches Submit bug reports Update wiki Use the forums Submit patches Fork on github Report bugs Come with ideas Tell me what you need Come with ideas Tell me what you need! • ∘

NSClient++ (What’s new) Sockets: ipv6, ssl (true) Protocols: NRPE, NSCA, NRDP, check_mk, check_nt, Graphite, syslog, smtp Real-time checks (eventlog, logfiles) Whats new? Sockets Protocols Realtime checks Command line syntax Command line syntax ∘ •

Thank you! Thank you to my sponsors

More then a 1000 words? The logo: Windows ∘ •

…for windows… ∘ • but it runs on linux …time for a new logo? Probably! By ~Nac-Mac-Feegle but it runs on linux …time for a new logo? …for windows… Probably! Runs on Linux • ∘

Building on Linux ∘ • apt-get install … git clone git://github.com/mickem/nscp.git mkdir build ; cd build cmake ../nscp apt-get install git clone mkdir build cmake make make • ∘

Building on windows… ∘ • Get visual studio (express), python and cmake Download unpack nscp source python nscp\build\python\fetchdeps.py --target x64 --cmake-config dist Manually install visual studio, python, cmake git clone (or download source) Build all dependencies cmake msbuild cmake ../nscp msbuild /p:Configuration=RelWithDebInfo NSCP.sln • ∘

More then a 1000 words? • ∘ The logo: Daemon And this is stretching it a bit but I liked the logo transition concept  ∘ •

…daemon ∘ • let me work let nagios/icinga/* rest passive monitoring? Tobias Leeger let me work …daemon let nagios/icinga/* rest passive monitoring? NO! event based monitoring? real-time monitoring? Distribute your monitoring load (less strain on central server) Luleå story Would you want your doctor to call you every 5 minutes asking if you are ok? The right way to do monitoring? simplified monitoring? preventive monitoring? • ∘

More then a 1000 words? The logo: Secure ∘ •

Secure monitoring ∘ • Check_nt: no encryption! Check_nrpe: no authentication, encryption? Check_nsca: no (strong) authentication! Check_mk: no authentication, no encryption! Problems => Solutions Not supported in the various clients though  Check_nrdp: No ecryption (in nsclient++) Check_nscp: Encryption! Authentication! • ∘

Secure monitoring • ∘ Check_nt: Encryption! Authentication! Check_nrpe: Encryption! Authentication! Check_nsca: Encryption! Authentication! Check_mk: Encryption! Authentication! Problems => Solutions Not supported in the various clients though  Check_nrdp: No ecryption (Yet!) Check_nscp: Encryption! Authentication! ∘ •

Security ∘ • Strong encryption Ssl (standard) Certificates Certificate based authentication Client AND(or) server Standard SSL solution …but you never know… Remember clients usually do not support it  Secure? I hope so… • ∘

∘ • Secure? I hope so… But you never know… Standard SSL solution Remember clients usually do not support it  Secure? I hope so… But you never know… • ∘

DEMO: Using NSClient++ Time to get real… DEMO: Using NSClient++ Time to make a fool of my self  • ∘

General usage nscp Display all(?) available context nscp --help Get help (can be used in many places) nscp <context or alias> [options] [-- [module options]] General usage syntax

Contexts help Get help client Act as a client. (think check_nrpe) Usually aliases we can use instead. service (un)Install and display windows service settings Work with configuration test Find errors and problems unit Run unit test scripts

Aliases lua Run lua scripts python Run python scripts nrpe Think check_nrpe nsca Think send_nsca sys Nice pdh front-end (more to come) wmi WMI front end eventlog Add event log message from command line

Settings (Configuration) nscp settings --help nscp settings --add-missing --generate [--load-all] Will update your configuration with ALL keys nscp settings --add-missing --activate-module <module> Great way to "enable a new module“ nscp settings --remove-defaults --generate Will remove all default keys/sections nscp settings --validate Show problems with the settings file Remember there is no "--delete-missing“ (yet)

check_nrpe nscp nrpe -- --help The -- is important nscp nrpe -- -H 127.0.0.1 -c foo -a foo bar Execute nrpe query from nsclient++ 0.4.2 will introduce: nrpe_client -H 127.0.0.1 -c foo -a foo bar nsca_client … …_client … Time for demo rm nsclient.ini ./nscp settings --activate-module NRPEServer --add-defaults vi nsclient.ini # change port ./nscp settings --remove-defaults --generate #add foo=bar ./nscp settings --validate

DEMO: real-time log file monitoring Time to get real… DEMO: real-time log file monitoring More demos (this time for real) • ∘

Modules CheckLogFile Subscribes to filechanges SimpleFileWriter Write notifications to file NSCAClient Submit NSCA messages ./nscp settings --activate-module CheckLogFile --add-defaults vi nsclient.ini # file=./test.txt # filter=column1 like ‘hello’ # warning = column2 like ‘warn’ # critical = column2 like ‘crit’ # destination = FILE ./nscp settings --activate-module SimpleFileWriter ./nscp test echo –e “hello\tworld” echo –e “hello\tcrit” ./nscp settings --activate-module NSCAClient # encryption = xor # password = secret ./nscp settings –generate --remove-defaults NSCP NSCA NSCAClient CheckLogFile FILE SimpleFileWriter

Resulting config from DEMO [/modules] CheckLogFile = enabled SimpleFileWriter = enabled [/settings/logfile/real-time/checks/sample] critical = column2 like 'crit' destination = FILE file = ./test.txt filter = column1 like 'hello' warning = column2 like 'warn' [/settings/logfile/real-time] enabled = true

Resulting config from DEMO [/modules] CheckLogFile = enabled NSCAClient = enabled SimpleFileWriter = enabled [/settings/logfile/real-time/checks/sample] critical = column2 like 'crit' destination = FILE,NSCA file = ./test.txt filter = column1 like 'hello' warning = column2 like 'warn' [/settings/logfile/real-time] enabled = true [/settings/NSCA/client/targets/default] address = 127.0.0.1 encryption = xor password = secret

Run the following ./nscp test tail –f ./output.txt echo –e “hello\tworld” echo –e “hello\twarn” echo –e “hello\tcrit”

DEMO: real-time log file monitoring… Time to get real… DEMO: real-time log file monitoring… …via NRPE? After all these mistakes…yet more demos? • ∘

Modules CheckLogFile Subscribes to filechanges SimpleCache Store our result NRPEClient Accept remote checks (if there is time) NRPEServer NSCP CheckLogFile CACHE SimpleCache

Resulting config from DEMO [/modules] CheckLogFile = enabled NSCAClient = enabled SimpleFileWriter = enabled SimleCache = enabled [/settings/logfile/real-time/checks/sample] critical = column2 like 'crit' destination = FILE,NSCA,CACHE file = ./test.txt filter = column1 like 'hello' warning = column2 like 'warn' [/settings/logfile/real-time] enabled = true [/settings/NSCA/client/targets/default] address = 127.0.0.1 encryption = xor password = secret

Run the following ./nscp test echo –e “hello\tworld” echo –e “hello\twarn” echo –e “hello\tcrit” In nsclient console execute: check_cache index=sample

Photo by Olga Berrios Questions? Q&A

facebook.com/nsclient Thank You! Michael Medin michael@medin.name http://www. .com/in/mickem http://blog.medin.name/ Information about NSClient++ http://nsclient.org facebook.com/nsclient Slides, and examples http://nsclient.org/nscp/conferances/osmc/2012/ The end!