Presentation is loading. Please wait.

Presentation is loading. Please wait.

NSClient++ in the new millenium! Name:Michael Medin Blog:http://blog.medin.name Project:NSClient++ Web:http://nsclient.org.

Similar presentations


Presentation on theme: "NSClient++ in the new millenium! Name:Michael Medin Blog:http://blog.medin.name Project:NSClient++ Web:http://nsclient.org."— Presentation transcript:

1 NSClient++ in the new millenium! Name:Michael Medin (@mickem) Email:michael@medin.name Blog:http://blog.medin.name Project:NSClient++ Web:http://nsclient.org ∘

2

3

4

5

6

7

8

9

10

11

12

13

14

15 ∘ Tobias Leeger

16

17

18

19

20

21

22 nscpDisplay all(?) available context nscp --helpGet help (can be used in many places) nscp [options] [-- [module options]] General usage syntax nscpDisplay all(?) available context nscp --helpGet help (can be used in many places) nscp [options] [-- [module options]] General usage syntax

23 helpGet help clientAct as a client. (think check_nrpe) Usually aliases we can use instead. service(un)Install and display windows service settingsWork with configuration testFind errors and problems unitRun unit test scripts helpGet help clientAct as a client. (think check_nrpe) Usually aliases we can use instead. service(un)Install and display windows service settingsWork with configuration testFind errors and problems unitRun unit test scripts

24 luaRun lua scripts pythonRun python scripts nrpeThink check_nrpe nscaThink send_nsca sysNice pdh front-end (more to come) wmiWMI front end eventlogAdd event log message from command line luaRun lua scripts pythonRun python scripts nrpeThink check_nrpe nscaThink send_nsca sysNice pdh front-end (more to come) wmiWMI front end eventlogAdd event log message from command line

25 nscp settings --help nscp settings --add-missing --generate [--load-all] Will update your configuration with ALL keys nscp settings --add-missing --activate-module nscp settings --add-missing --activate-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 nscp settings --help nscp settings --add-missing --generate [--load-all] Will update your configuration with ALL keys nscp settings --add-missing --activate-module nscp settings --add-missing --activate-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

26 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 … 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 …

27

28 CheckLogFile Subscribes to filechanges SimpleFileWriter Write notifications to file NSCAClient Submit NSCA messages CheckLogFile Subscribes to filechanges SimpleFileWriter Write notifications to file NSCAClient Submit NSCA messages NSCA FILE SimpleFileWriter NSCAClient CheckLogFile NSCP

29 [/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 [/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

30 [/settings/logfile/real-time] [/settings/NSCA/client/targets/default] address = 127.0.0.1 encryption = xor password = secret [/settings/logfile/real-time] enabled = true [/settings/NSCA/client/targets/default] address = 127.0.0.1 encryption = xor password = secret [/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' [/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'

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

32

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

34 [/settings/logfile/real-time] enabled = true [/settings/NSCA/client/targets/default] address = 127.0.0.1 encryption = xor password = secret [/settings/logfile/real-time] enabled = true [/settings/NSCA/client/targets/default] address = 127.0.0.1 encryption = xor password = secret [/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' [/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'

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

36 Photo by Olga Berrios

37


Download ppt "NSClient++ in the new millenium! Name:Michael Medin Blog:http://blog.medin.name Project:NSClient++ Web:http://nsclient.org."

Similar presentations


Ads by Google