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:15] – [CheckMK.links] 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/> | ||
| + | |||
| + | |||
| + | |||
| + | ===== Monitoring metrics ===== | ||
| + | * Victoria Metrics, Mimir, Thanos https:// | ||
| ====== CheckMK ====== | ====== CheckMK ====== | ||
| - | Monitoring software sucsessor of nagios - start in docker | + | Monitoring software sucsessor of nagios - start in docker |
| + | Info '' | ||
| ===== CheckMK.links ===== | ===== CheckMK.links ===== | ||
| - | * https:// | + | * debug check mk checks - https:// |
| - | * https:// | + | * example of agent spool metrics - https:// |
| - | * https:// | + | * create local check in checkmk - https:// |
| - | * https:// | + | * piggy service example - https:// |
| - | * https:// | + | * allow spooling plugin outputs via files - https:// |
| + | * send emails | ||
| ===== CheckMK Information ===== | ===== CheckMK Information ===== | ||
| Line 30: | Line 41: | ||
| ==== LiveStatus ==== | ==== LiveStatus ==== | ||
| + | Get unixtime - < | ||
| * Live status get statehist columns and description | * Live status get statehist columns and description | ||
| '' | '' | ||
| Line 38: | Line 50: | ||
| * get gistory of state of service in period | * get gistory of state of service in period | ||
| '' | '' | ||
| + | |||
| + | * get data for access matrix | ||
| + | '' | ||
| Line 47: | 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 87: | Line 98: | ||
| ==== Agent spool example/ piggyback | ==== Agent spool example/ piggyback | ||
| - | < | + | < |
| # switch CMK-agent | # switch CMK-agent | ||
| Line 111: | Line 122: | ||
| </ | </ | ||
| - | + | ==== Nagios migration metrics to piggyback ==== | |
| - | < | + | < |
| --------------------------- | --------------------------- | ||
| + | # Python performance process migration | ||
| b=pd.split(' | b=pd.split(' | ||
| if(len(b)> | if(len(b)> | ||
| Line 120: | 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 138: | 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:// | ||
| </ | </ | ||