NSClient++ Workshop: 01 Introduction
-
Upload
michael-medin -
Category
Technology
-
view
119 -
download
1
Transcript of NSClient++ Workshop: 01 Introduction
![Page 1: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/1.jpg)
monitoring
Welcome!
![Page 2: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/2.jpg)
…frustration…
devnot ops
![Page 3: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/3.jpg)
![Page 4: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/4.jpg)
![Page 5: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/5.jpg)
![Page 6: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/6.jpg)
![Page 7: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/7.jpg)
![Page 8: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/8.jpg)
![Page 9: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/9.jpg)
![Page 10: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/10.jpg)
Please don’t be angry!
Some times I am busy
![Page 11: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/11.jpg)
![Page 12: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/12.jpg)
![Page 13: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/13.jpg)
![Page 14: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/14.jpg)
![Page 15: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/15.jpg)
![Page 16: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/16.jpg)
![Page 17: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/17.jpg)
![Page 18: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/18.jpg)
![Page 19: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/19.jpg)
![Page 20: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/20.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/21.jpg)
![Page 22: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/22.jpg)
![Page 23: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/23.jpg)
![Page 24: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/24.jpg)
![Page 25: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/25.jpg)
![Page 26: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/26.jpg)
![Page 27: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/27.jpg)
![Page 28: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/28.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/29.jpg)
![Page 30: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/30.jpg)
Core
![Page 31: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/31.jpg)
Core
Server
Client
Check
Script
Misc
![Page 32: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/32.jpg)
Core
ServerNRPE
NSCA
ClientNRPE
NSCA
CheckSystem
Eventlog
ScriptPython
Lua
Misc Scheduler
![Page 33: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/33.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/34.jpg)
CoreModules …
Settings
ini
reg
…Registry
Help
Scheduler (ish)
![Page 35: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/35.jpg)
Command Line
![Page 36: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/36.jpg)
1:1 NSClient++ Command Line
![Page 37: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/37.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/38.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/39.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/40.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/41.jpg)
![Page 42: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/42.jpg)
foo
bar
key=value
this=that
more this=thattest=test
![Page 43: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/43.jpg)
[/modules]
CheckDisk=enabled
NRPEServer=enabled
[/settings/default]
allowed hosts=127.0.0.1,nagios.com
[/log]
level = debug
![Page 44: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/44.jpg)
[/modules]
CheckDisk=enabled
NRPEServer=enabled
[/settings/default]
allowed hosts=127.0.0.1,nagios.com
[/log]
level = debug
![Page 45: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/45.jpg)
Configuration
![Page 46: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/46.jpg)
1:2 Configuration
![Page 47: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/47.jpg)
/settings/log
level=debug
What’s the current settings store?
Move settings to registry
Change the log level
![Page 48: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/48.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/49.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/50.jpg)
nscp test
![Page 51: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/51.jpg)
check_memory
CheckSystem.dll
What’s the current memory usage?
Run the query from command line
![Page 52: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/52.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/53.jpg)
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](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/54.jpg)
![Page 55: NSClient++ Workshop: 01 Introduction](https://reader030.fdocuments.in/reader030/viewer/2022020207/55a2cc311a28ab472e8b457e/html5/thumbnails/55.jpg)