nsclient++ workshop: 01 introduction

55
monitoring Welcome!

Upload: michael-medin

Post on 13-Jul-2015

123 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: NSClient++ Workshop: 01 Introduction

monitoring

Welcome!

Page 2: NSClient++ Workshop: 01 Introduction

…frustration…

devnot ops

Page 3: NSClient++ Workshop: 01 Introduction
Page 4: NSClient++ Workshop: 01 Introduction
Page 5: NSClient++ Workshop: 01 Introduction
Page 6: NSClient++ Workshop: 01 Introduction
Page 7: NSClient++ Workshop: 01 Introduction
Page 8: NSClient++ Workshop: 01 Introduction
Page 9: NSClient++ Workshop: 01 Introduction
Page 10: NSClient++ Workshop: 01 Introduction

Please don’t be angry!

Some times I am busy

Page 11: NSClient++ Workshop: 01 Introduction
Page 12: NSClient++ Workshop: 01 Introduction
Page 13: NSClient++ Workshop: 01 Introduction
Page 14: NSClient++ Workshop: 01 Introduction
Page 15: NSClient++ Workshop: 01 Introduction
Page 16: NSClient++ Workshop: 01 Introduction
Page 17: NSClient++ Workshop: 01 Introduction
Page 18: NSClient++ Workshop: 01 Introduction
Page 19: NSClient++ Workshop: 01 Introduction
Page 20: NSClient++ Workshop: 01 Introduction

Active Passive Realtime Future

Every x minute Every x minute Only on errors Only on errors

For each service For most services Only on errors Only on errors

Very chatty Very chatty Less chatty Not chatty

Page 21: NSClient++ Workshop: 01 Introduction
Page 22: NSClient++ Workshop: 01 Introduction
Page 23: NSClient++ Workshop: 01 Introduction
Page 24: NSClient++ Workshop: 01 Introduction
Page 25: NSClient++ Workshop: 01 Introduction
Page 26: NSClient++ Workshop: 01 Introduction
Page 27: NSClient++ Workshop: 01 Introduction
Page 28: NSClient++ Workshop: 01 Introduction

Active Passive Realtime Future

Every x minute Every x minute Only on errors Only on errors

For each service For most services Only on errors Only on errors

Very chatty Very chatty Less chatty Not chatty

NRPE NRPE (ish)

NSCA NSCA

check_nt (ish)

NRDP

REST REST REST REST

NSCP NSCP NSCP NSCP

Page 29: NSClient++ Workshop: 01 Introduction
Page 30: NSClient++ Workshop: 01 Introduction

Core

Page 31: NSClient++ Workshop: 01 Introduction

Core

Server

Client

Check

Script

Misc

Page 32: NSClient++ Workshop: 01 Introduction

Core

ServerNRPE

NSCA

ClientNRPE

NSCA

CheckSystem

Eventlog

ScriptPython

Lua

Misc Scheduler

Page 33: NSClient++ Workshop: 01 Introduction

Core

Server

NRPE

NSCA

Client

NRPE check_remote

NSCA notify_remote

Check

System

check_cpu

check_memory

Eventlog Check_eventlog

Script

Python Script Check_???

Lua Script Check_???

Misc Scheduler

Page 34: NSClient++ Workshop: 01 Introduction

CoreModules …

Settings

ini

reg

…Registry

Help

Scheduler (ish)

Page 35: NSClient++ Workshop: 01 Introduction

Command Line

Page 36: NSClient++ Workshop: 01 Introduction

1:1 NSClient++ Command Line

Page 37: NSClient++ Workshop: 01 Introduction

Start command shell (cmd.exe) as admin.

cd C:\nsclient

What’s the command for configuring the NRPE server?

How do you exit test mode?

Page 38: NSClient++ Workshop: 01 Introduction

What’s the command for configuring the NRPE server?

How do you exit test mode?

Start command shell (cmd.exe) as admin.

cd C:\nsclient

nscp help

Page 39: NSClient++ Workshop: 01 Introduction

What’s the command for configuring the NRPE server?

How do you exit test mode?

Start command shell (cmd.exe) as admin.

cd C:\nsclient

nscp help

nscp nrpe help

nscp test

Page 40: NSClient++ Workshop: 01 Introduction

What’s the command for configuring the NRPE server?

How do you exit test mode?

Start command shell (cmd.exe) as admin.

cd C:\nsclient

nscp help

nscp nrpe install (--help)

nscp test

exit

Page 41: NSClient++ Workshop: 01 Introduction
Page 42: NSClient++ Workshop: 01 Introduction

foo

bar

key=value

this=that

more this=thattest=test

Page 43: NSClient++ Workshop: 01 Introduction

[/modules]

CheckDisk=enabled

NRPEServer=enabled

[/settings/default]

allowed hosts=127.0.0.1,nagios.com

[/log]

level = debug

Page 44: NSClient++ Workshop: 01 Introduction

[/modules]

CheckDisk=enabled

NRPEServer=enabled

[/settings/default]

allowed hosts=127.0.0.1,nagios.com

[/log]

level = debug

Page 45: NSClient++ Workshop: 01 Introduction

Configuration

Page 46: NSClient++ Workshop: 01 Introduction

1:2 Configuration

Page 47: NSClient++ Workshop: 01 Introduction

/settings/log

level=debug

What’s the current settings store?

Move settings to registry

Change the log level

Page 48: NSClient++ Workshop: 01 Introduction

What’s the current settings store?

Move settings to registry

Change the log level to debug

Section: /settings/log, Key: level, value: debug

settings help

registry://

Page 49: NSClient++ Workshop: 01 Introduction

What’s the current settings store?

Move settings to registry

Change the log level

nscp settings --help

nscp settings --migrate-to reg

nscp settings --path /settings/log --key level

--set debug

Page 50: NSClient++ Workshop: 01 Introduction

nscp test

Page 51: NSClient++ Workshop: 01 Introduction

check_memory

CheckSystem.dll

What’s the current memory usage?

Run the query from command line

Page 52: NSClient++ Workshop: 01 Introduction

What’s the current memory usage?

Run the query from command line

Module: CheckSystem.dll, command: check_memory

nscp settings --activate module ???

nscp client --help

nscp test

Page 53: NSClient++ Workshop: 01 Introduction

What’s the current memory usage?

Run the query from command line

Module: CheckSystem.dll, command: check_memory

nscp settings --activate module CheckSystem

nscp client --query check_memory

nscp test

check_memory

exit

Page 54: NSClient++ Workshop: 01 Introduction
Page 55: NSClient++ Workshop: 01 Introduction