nsclient++ workshop: 01 introduction
TRANSCRIPT
monitoring
Welcome!
…frustration…
devnot ops
Please don’t be angry!
Some times I am busy
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
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
Core
Core
Server
Client
Check
Script
Misc
Core
ServerNRPE
NSCA
ClientNRPE
NSCA
CheckSystem
Eventlog
ScriptPython
Lua
Misc Scheduler
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
CoreModules …
Settings
ini
reg
…Registry
Help
Scheduler (ish)
Command Line
1:1 NSClient++ Command Line
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?
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
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
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
foo
bar
key=value
this=that
more this=thattest=test
[/modules]
CheckDisk=enabled
NRPEServer=enabled
[/settings/default]
allowed hosts=127.0.0.1,nagios.com
[/log]
level = debug
[/modules]
CheckDisk=enabled
NRPEServer=enabled
[/settings/default]
allowed hosts=127.0.0.1,nagios.com
[/log]
level = debug
Configuration
1:2 Configuration
/settings/log
level=debug
What’s the current settings store?
Move settings to registry
Change the log level
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://
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
nscp test
check_memory
CheckSystem.dll
What’s the current memory usage?
Run the query from command line
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
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