Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
monitoring [2022/08/26 22:09] – [CheckMk.Monitoring Agent] admin | monitoring [2024/11/09 13:09] (current) – [monitoring] admin | ||
---|---|---|---|
Line 3: | Line 3: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | <WRAP left tip 60%> | ||
+ | https:// | ||
+ | </ | ||
+ | <WRAP clear/> | ||
- | ====== CheckMK ====== | ||
- | Monitoring software sucsessor of nagios - start in docker | ||
- | ===== CheckMK.links ===== | ||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
+ | ===== Monitoring metrics ===== | ||
+ | * Victoria Metrics, Mimir, Thanos https:// | ||
+ | |||
+ | ====== CheckMK ====== | ||
+ | Monitoring software sucsessor of nagios - start in docker https:// | ||
Info '' | Info '' | ||
+ | |||
+ | ===== CheckMK.links ===== | ||
+ | * debug check mk checks - https:// | ||
+ | * example of agent spool metrics - https:// | ||
+ | * create local check in checkmk - https:// | ||
+ | * piggy service example - https:// | ||
+ | * allow spooling plugin outputs via files - https:// | ||
+ | * send emails - https:// | ||
===== CheckMK Information ===== | ===== CheckMK Information ===== | ||
Line 32: | Line 41: | ||
==== LiveStatus ==== | ==== LiveStatus ==== | ||
+ | Get unixtime - < | ||
* Live status get statehist columns and description | * Live status get statehist columns and description | ||
'' | '' | ||
Line 40: | Line 50: | ||
* get gistory of state of service in period | * get gistory of state of service in period | ||
'' | '' | ||
+ | |||
+ | * get data for access matrix | ||
+ | '' | ||
Line 49: | Line 62: | ||
$ cat var/ | $ cat var/ | ||
09c823XX-e4b0-4e0d-aeXX-53946ccdcfc8 | 09c823XX-e4b0-4e0d-aeXX-53946ccdcfc8 | ||
- | |||
- | |||
* in cmk user start cmk is utility for checkmk | * in cmk user start cmk is utility for checkmk | ||
- | '' | + | su -s /bin/bash - cmk |
* show all modules | * show all modules | ||
cmk -L # все модули | cmk -L # все модули | ||
- | |||
* Discover on agent | * Discover on agent | ||
Line 81: | Line 90: | ||
==== Test agent ==== | ==== Test agent ==== | ||
- | '' | + | <code BASH> |
- | '' | + | # cmk-agent |
+ | | ||
+ | # test agent on host - network | ||
+ | $ telnet foohost 6556 | ||
+ | </ | ||
==== Agent spool example/ piggyback | ==== Agent spool example/ piggyback | ||
- | < | + | < |
# switch CMK-agent | # switch CMK-agent | ||
Line 110: | Line 122: | ||
</ | </ | ||
- | + | ==== Nagios migration metrics to piggyback ==== | |
- | < | + | < |
--------------------------- | --------------------------- | ||
+ | # Python performance process migration | ||
b=pd.split(' | b=pd.split(' | ||
if(len(b)> | if(len(b)> | ||
Line 119: | Line 132: | ||
| | ||
| | ||
+ | ---------------------------- | ||
+ | # Nagios passive | ||
+ | #f:fed-hw; | ||
+ | # | ||
+ | #ec:0; | ||
+ | #pd:PING OK - Packet loss = 0%, RTA = 1.72 ms|rta=1.722000ms; | ||
- | f:fed-hw; | + | # nagios metric exmaple to piggyback |
- | n: | + | |
- | ec:0; | + | |
- | pd:PING OK - Packet loss = 0%, RTA = 1.72 ms|rta=1.722000ms; | + | |
- | + | ||
- | + | ||
- | b=a.split(' | + | |
- | re.sub(r' | + | |
- | + | ||
1 <<<< | 1 <<<< | ||
2 <<< | 2 <<< | ||
Line 137: | Line 147: | ||
5 0 "test Call-center-router_188.17.152.47" | 5 0 "test Call-center-router_188.17.152.47" | ||
- | |||
- | |||
- | - get data | ||
- | lq "GET statehist\nColumns: | ||
- | |||
- | -- send emails | ||
- | https:// | ||
</ | </ | ||