119

Ns client++ icinga camp

Embed Size (px)

Citation preview

Page 1: Ns client++ icinga camp
Page 2: Ns client++ icinga camp
Page 3: Ns client++ icinga camp
Page 4: Ns client++ icinga camp
Page 5: Ns client++ icinga camp
Page 6: Ns client++ icinga camp
Page 7: Ns client++ icinga camp
Page 8: Ns client++ icinga camp
Page 9: Ns client++ icinga camp
Page 10: Ns client++ icinga camp
Page 11: Ns client++ icinga camp
Page 12: Ns client++ icinga camp
Page 13: Ns client++ icinga camp
Page 14: Ns client++ icinga camp
Page 15: Ns client++ icinga camp
Page 16: Ns client++ icinga camp
Page 17: Ns client++ icinga camp
Page 18: Ns client++ icinga camp
Page 19: Ns client++ icinga camp
Page 20: Ns client++ icinga camp
Page 21: Ns client++ icinga camp
Page 22: Ns client++ icinga camp
Page 23: Ns client++ icinga camp
Page 24: Ns client++ icinga camp
Page 25: Ns client++ icinga camp
Page 26: Ns client++ icinga camp

COLLECTD

BUG FIXES

REST CLIENT

IMPROVED WEB UI!

COUNT FIX!

METRICS

Page 27: Ns client++ icinga camp

Please don’t be angry!

Some times I am busy

Get over here and play

NOW!

Page 28: Ns client++ icinga camp
Page 29: Ns client++ icinga camp
Page 30: Ns client++ icinga camp
Page 31: Ns client++ icinga camp
Page 32: Ns client++ icinga camp
Page 33: Ns client++ icinga camp
Page 34: Ns client++ icinga camp
Page 35: Ns client++ icinga camp
Page 36: Ns client++ icinga camp
Page 37: Ns client++ icinga camp
Page 38: Ns client++ icinga camp
Page 39: Ns client++ icinga camp
Page 40: Ns client++ icinga camp
Page 41: Ns client++ icinga camp
Page 42: Ns client++ icinga camp
Page 43: Ns client++ icinga camp
Page 44: Ns client++ icinga camp
Page 45: Ns client++ icinga camp
Page 46: Ns client++ icinga camp
Page 47: Ns client++ icinga camp
Page 48: Ns client++ icinga camp
Page 49: Ns client++ icinga camp

Co

re

Page 50: Ns client++ icinga camp

Co

re

Server

Client

Check

Script

Misc

Page 51: Ns client++ icinga camp

Co

re

ServerNRPE

NSCA

ClientNRPE

NSCA

CheckSystem

Eventlog

ScriptPython

Lua

Misc Scheduler

Page 52: Ns client++ icinga camp

Co

reServer

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 53: Ns client++ icinga camp

Co

re

Modules …

Settings

ini

reg

https://…

Page 54: Ns client++ icinga camp
Page 55: Ns client++ icinga camp
Page 56: Ns client++ icinga camp
Page 57: Ns client++ icinga camp

foobar

key=value

this=that

more this=thattest=test

Page 58: Ns client++ icinga camp

[/modules]

CheckDisk=enabled

NRPEServer=enabled

[/settings/default]

allowed hosts=127.0.0.1,icinga.org

[/log]

level=debug

Page 59: Ns client++ icinga camp
Page 60: Ns client++ icinga camp
Page 61: Ns client++ icinga camp
Page 62: Ns client++ icinga camp

NRPEServer

Cor

e

CheckSystem

CheckEventLog

CheckExternalScripts

check_foo.bat

QUERYNRPE(1024)

QUERY

Port: 5666

allowed hosts

arguments

arguments

Page 63: Ns client++ icinga camp
Page 64: Ns client++ icinga camp
Page 65: Ns client++ icinga camp
Page 66: Ns client++ icinga camp
Page 67: Ns client++ icinga camp
Page 68: Ns client++ icinga camp
Page 69: Ns client++ icinga camp
Page 70: Ns client++ icinga camp
Page 71: Ns client++ icinga camp
Page 72: Ns client++ icinga camp
Page 73: Ns client++ icinga camp
Page 74: Ns client++ icinga camp
Page 75: Ns client++ icinga camp
Page 76: Ns client++ icinga camp
Page 77: Ns client++ icinga camp
Page 78: Ns client++ icinga camp
Page 79: Ns client++ icinga camp
Page 80: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

Page 81: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

filter=”level=’error’”

Page 82: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

filter=”source=’App1’”

Page 83: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

filter=”source=’App1’ or source=’App3’”

Page 84: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

filter=”source=’App1’ or source=’App3’or level=’error’”

Page 85: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

filter=”source=’App1’ or source=’App3’or level=’error’ or level=’warning’”

Page 86: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

filter=”(source=’App1’ or source=’App3’or level=’error’ or level=’warning’) and

source!=’Excel’”

Page 87: Ns client++ icinga camp

filter=”(source in (’App1’,’App3’) or level in (’error’,’warning’)) and source

!= ’Excel’”

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

Page 88: Ns client++ icinga camp

• filter = (id NOT IN ('3', '4', '6', '11', '16', '23', '24', '27', '29', '36', '46', '47', '50', '56', '134', '142', '219', '267', '270', '1006', '1009', '1014', '1030', '1035', '1036', '1055', '1058', '1071', '1073', '1085', '1102', '1110', '1111', '1112', '1131', '1291', '1500', '3095', '5719', '5722', '5783', '5788', '5789', '6008', '7000', '7001', '7003', '7005', '7009', '7011', '7022', '7023', '7024', '7026', '7030', '7031', '7034',

'7038', '7041', '9015', '9018', '9026', '9028', '10009', '10010', '10016', '10149', '12294', '15300', '15301', '24679', '36887', '36888', '40960', '40961', '45056') AND

level IN ('error', 'warning')) OR (id IN ('3') AND source NOT IN ('FilterManager') AND level IN ('error', 'warning')) OR (id IN ('4') AND source NOT IN ('q57','L2ND') AND level

IN ('error', 'warning')) OR (id IN ('6') AND source NOT IN ('Security-Kerberos') AND level IN ('error', 'warning')) OR (id IN ('11') AND source NOT IN ('Kerberos-Key-

Distribution-Center') AND level IN ('error', 'warning')) OR (id IN ('16') AND source NOT IN ('WindowsUpdateClient') AND level IN ('error', 'warning')) OR (id IN ('23') AND source NOT IN ('Eventlog') AND level IN ('error', 'warning')) OR (id IN ('24') AND source NOT IN ('Time-Service') AND level IN ('error', 'warning')) OR (id IN ('27') AND source NOT IN

('Eventlog') AND level IN ('error', 'warning')) OR (id IN ('29') AND source NOT IN ('Kerberos-Key-Distribution-Center') AND level IN ('error', 'warning')) OR (id IN ('36') AND source NOT IN ('Time-Service') AND level IN ('error', 'warning')) OR (id IN ('46') AND source NOT IN ('Time-Service') AND level IN ('error', 'warning')) OR (id IN ('47') AND source NOT IN ('Time-Service') AND level IN ('error', 'warning')) OR (id IN ('50') AND source NOT IN ('TermDD','Time-Service') AND level IN ('error', 'warning')) OR (id IN ('56') AND source NOT IN ('TermDD') AND level IN ('error', 'warning')) OR (id IN ('134') AND source NOT IN ('Time-Service') AND level IN ('error', 'warning')) OR (id IN ('142') AND source NOT IN ('Time-Service') AND level IN ('error', 'warning')) OR (id IN ('219')

AND source NOT IN ('Kernel-pnp') AND level IN ('error', 'warning')) OR (id IN ('267') AND source NOT IN ('Storage-agents') AND level IN ('error', 'warning')) OR (id IN ('270') AND source NOT IN ('Storage-agents') AND level IN ('error', 'warning')) OR (id IN ('1006') AND source NOT IN ('DNS Client Events','GroupPolicy') AND level IN ('error', 'warning')) OR (id IN ('1009') AND source NOT IN ('picadm') AND level IN ('error', 'warning')) OR (id IN ('1014') AND source NOT IN ('DNS Client Events') AND level IN ('error', 'warning')) OR (id IN ('1030') AND source NOT IN ('GroupPolicy') AND level IN ('error', 'warning')) OR

(id IN ('1035') AND source NOT IN ('TerminalServices-RemoteConnectionManager') AND level IN ('error', 'warning')) OR (id IN ('1036') AND source NOT IN ('TerminalServices-RemoteConnectionManager') AND level IN ('error', 'warning')) OR (id IN ('1055') AND

source NOT IN ('GroupPolicy') AND level IN ('error', 'warning')) OR (id IN ('1058') AND source NOT IN ('GroupPolicy') AND level IN ('error', 'warning')) OR (id IN ('1071') AND

source NOT IN ('TerminalServices-RemoteConnectionManager') AND level IN ('error', 'warning')) OR (id IN ('1073') AND source NOT IN ('USER32') AND level IN ('error',

'warning')) OR (id IN ('1085') AND source NOT IN ('GroupPolicy') AND level IN ('error', 'warning')) OR (id IN ('1102') AND source NOT IN ('SNMP') AND level IN ('error',

'warning')) OR (id IN ('1110') AND source NOT IN ('GroupPolicy') AND level IN ('error', 'warning')) OR (id IN ('1111') AND source NOT IN ('Server Agents') AND level IN ('error', 'warning')) OR (id IN ('1112') AND source NOT IN ('GroupPolicy') AND level IN ('error',

'warning')) OR (id IN ('1131') AND source NOT IN ('TerminalServices-RemoteConnectionManager') AND level IN ('error', 'warning')) OR (id IN ('1291') AND

source NOT IN ('NIC-agents') AND level IN ('error', 'warning')) OR (id IN ('1500') AND source NOT IN ('SNMP') AND level IN ('error', 'warning')) OR (id IN ('3095') AND source NOT IN ('Netlogon') AND level IN ('error', 'warning')) OR (id IN ('5719') AND source NOT IN ('Netlogon') AND level IN ('error', 'warning')) OR (id IN ('5722') AND source NOT IN ('Netlogon') AND level IN ('error', 'warning')) OR (id IN ('5783') AND source NOT IN ('Netlogon') AND level IN ('error', 'warning')) OR (id IN ('5788') AND source NOT IN ('Netlogon') AND level IN ('error', 'warning')) OR (id IN ('5789') AND source NOT IN ('Netlogon') AND level IN ('error', 'warning')) OR (id IN ('6008') AND source NOT IN ('Eventlog') AND level IN ('error', 'warning')) OR (id IN ('7000') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7001') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN

('7003') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7005') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7009') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7011') AND source NOT IN ('service control manager')

AND level IN ('error', 'warning')) OR (id IN ('7022') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7023') AND source NOT IN (

('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7024') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN

('7026') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7030') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7031') AND source NOT IN ('service control manager') AND strings not like 'citrix' AND level IN ('error', 'warning')) OR (id IN ('7034') AND source NOT IN

('service control manager') AND level IN ('error', 'warning')) OR (id IN ('7038') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN

('7041') AND source NOT IN ('service control manager') AND level IN ('error', 'warning')) OR (id IN ('9015') AND source NOT IN ('Metaframe') AND level IN ('error', 'warning')) OR (id IN ('9018') AND source NOT IN ('Metaframe') AND level IN ('error', 'warning')) OR (id IN ('9026') AND source NOT IN ('Metaframe') AND level IN ('error', 'warning')) OR (id IN ('9028') AND source NOT IN ('Metaframe') AND level IN ('error', 'warning')) OR (id IN

('10009') AND source NOT IN ('DistributedCOM') AND level IN ('error', 'warning')) OR (id IN ('10010') AND source NOT IN ('DistributedCOM') AND level IN ('error', 'warning')) OR (id IN ('10016') AND source NOT IN ('DistributedCOM') AND level IN ('error', 'warning')) OR (id IN ('10149') AND source NOT IN ('WindowsRemoteManagement') AND level IN ('error', 'warning')) OR (id IN ('12294') AND source NOT IN ('Directory-Services-SAM') AND level IN ('error', 'warning')) OR (id IN ('15300') AND source NOT IN ('HTTPEVENT') AND level IN ('error', 'warning')) OR (id IN ('15301') AND source NOT IN ('HTTPEVENT') AND level IN ('error', 'warning')) OR (id IN ('24679') AND source NOT IN ('Cissesrv') AND level IN ('error', 'warning')) OR (id IN ('36887') AND source NOT IN ('Schannel') AND level IN ('error', 'warning')) OR (id IN ('36888') AND source NOT IN ('Schannel') AND level IN ('error', 'warning')) OR (id IN ('40960') AND source NOT IN ('LSASRV') AND level IN ('error', 'warning')) OR (id IN ('40961') AND source NOT IN ('LSASRV') AND level IN ('error', 'warning')) OR (id IN ('45056') AND source NOT IN ('LSASRV') AND level IN

('error', 'warning'))

Page 89: Ns client++ icinga camp

Numbers, constants etcKey Safe Key Description

= eq Equals

!= ne Not equals

> gt Greater than

< lt Less than

>= ge Greater or equal than

<= le Less or equal than

in (<LIST OF VALUES>) In a given list

not in (<LIST OF VALUES>) Not in a given list

Page 90: Ns client++ icinga camp

StringsKey Safe Key Description

= eq Equals

!= ne Not equals

> gt Greater than

< lt Less than

>= ge Greater or equal than

<= le Less or equal than

in (<LIST OF VALUES>) In a given list

not in (<LIST OF VALUES>) Not in a given list

like Substring matching

regexp Regular expression

not like Opposite of like

not regexp Opposite of regexp

Page 91: Ns client++ icinga camp

SyntaxKey Safe Key Description

${foo} %(foo) Expression

‘this is a string’ str(this is a string) Strings

Page 92: Ns client++ icinga camp
Page 93: Ns client++ icinga camp

Filter “good”

Warning

Critical

Page 94: Ns client++ icinga camp

Level Source … …

Error Word … …

Error Excel … …

Info Word … …

Warning Excel … …

Error App1 … …

Warning App1 … …

Error App3 … …

filter=”source = ’App1’“

warn=”level = ’Warning’“

Page 95: Ns client++ icinga camp

detail-syntax=”s: ${source} “top-syntax=“Hello: ${list}”

Hello: s: App1, s: App1, s: App3

Page 96: Ns client++ icinga camp
Page 97: Ns client++ icinga camp
Page 98: Ns client++ icinga camp
Page 99: Ns client++ icinga camp
Page 100: Ns client++ icinga camp
Page 101: Ns client++ icinga camp
Page 102: Ns client++ icinga camp
Page 103: Ns client++ icinga camp
Page 104: Ns client++ icinga camp
Page 105: Ns client++ icinga camp
Page 106: Ns client++ icinga camp
Page 107: Ns client++ icinga camp
Page 108: Ns client++ icinga camp
Page 109: Ns client++ icinga camp
Page 110: Ns client++ icinga camp
Page 111: Ns client++ icinga camp
Page 112: Ns client++ icinga camp
Page 113: Ns client++ icinga camp
Page 114: Ns client++ icinga camp
Page 115: Ns client++ icinga camp
Page 116: Ns client++ icinga camp
Page 117: Ns client++ icinga camp
Page 118: Ns client++ icinga camp
Page 119: Ns client++ icinga camp

NSClient++https://nsclient.org

Michael [email protected]

https://medin.name

@mickem

https://www.linkedin.com/in/mickem

Slides:http://www.slideshare.net/MichaelMedin