monitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
monitoring [2022/08/26 22:22] – [CheckMK.links] adminmonitoring [2024/11/09 13:09] (current) – [monitoring] admin
Line 3: Line 3:
   * https://downdetector.ru/   * https://downdetector.ru/
   * https://downdetector.com/   * https://downdetector.com/
 +<WRAP left tip 60%>
 +https://sensu.io/ - посмотреть 
 +</WRAP>
 +<WRAP clear/>
  
-====== CheckMK ====== 
-Monitoring software sucsessor of nagios - start in docker 
  
 +
 +===== Monitoring metrics =====
 +  * Victoria Metrics, Mimir, Thanos https://habr.com/ru/companies/slurm/news/741948/
 +
 +====== CheckMK ======
 +Monitoring software sucsessor of nagios - start in docker https://gist.github.com/tttest25/eedede9aab0d33e17b3f8623dec25b49 \\
   Info ''http://localhost:8080/ cmkadmin -e.................9''   Info ''http://localhost:8080/ cmkadmin -e.................9''
  
Line 33: Line 41:
  
 ====  LiveStatus ==== ====  LiveStatus ====
 +Get unixtime - <https://www.unixtimestamp.com/>
   * Live status get statehist columns and description   * Live status get statehist columns and description
 ''OMD[cmk]:~$ lq "GET columns\nOutputFormat: json"| jq -r '.[]| select(.[2]=="statehist")|join("|")' | grep time'' ''OMD[cmk]:~$ lq "GET columns\nOutputFormat: json"| jq -r '.[]| select(.[2]=="statehist")|join("|")' | grep time''
Line 41: Line 50:
   * get gistory of state of service in period   * get gistory of state of service in period
 ''OMD[cmk]:~$   lq "GET statehist\nColumns: host_name service_description state from until\nFilter: time >= 1661123454\nFilter: time < 1661127106\nFilter: host_name = docker01_host\nFilter: service_description = Memory\nOutputFormat: json"'' ''OMD[cmk]:~$   lq "GET statehist\nColumns: host_name service_description state from until\nFilter: time >= 1661123454\nFilter: time < 1661127106\nFilter: host_name = docker01_host\nFilter: service_description = Memory\nOutputFormat: json"''
 +
 +  * get data for access matrix
 +''lq "GET statehist\nColumns: host_name service_description state from until\nFilter: time >= 1661123454\nFilter: time < 1661127106\nFilter: host_name = docker01_host\nOutputFormat: json"''
  
  
Line 86: Line 98:
  
 ==== Agent spool example/ piggyback  ==== ==== Agent spool example/ piggyback  ====
-<code>+<code BASH>
  
 # switch CMK-agent # switch CMK-agent
Line 110: Line 122:
 </code> </code>
  
- +==== Nagios migration metrics to piggyback ==== 
-<code>+<code BASH>
 --------------------------- ---------------------------
 +# Python performance process migration
 b=pd.split('|'                                                                                                                                                                        b=pd.split('|'                                                                                                                                                                       
 if(len(b)>1):                                                                                                                                                                           if(len(b)>1):                                                                                                                                                                          
Line 119: Line 132:
    b[0]=pd.strip()                                                                                                                                                                        b[0]=pd.strip()                                                                                                                                                                    
    b.append('-'    b.append('-'
 +----------------------------
  
 +# Nagios passive 
 +#f:fed-hw;
 +#n:SHERB-24-ATS_10.59.170.2;
 +#ec:0;
 +#pd:PING OK - Packet loss = 0%, RTA = 1.72 ms|rta=1.722000ms;100.000000;500.000000;0.000000 pl=0%;40;60;0
  
-f:fed-hw; +# nagios metric exmaple to piggyback 
-n:SHERB-24-ATS_10.59.170.2; +
-ec:0; +
-pd:PING OK - Packet loss = 0%, RTA = 1.72 ms|rta=1.722000ms;100.000000;500.000000;0.000000 pl=0%;40;60;+
- +
- +
-b=a.split('|'+
-re.sub(r'\s+',r'|',b[1].strip()) +
- +
 1 <<<<fed_serv>>>> 1 <<<<fed_serv>>>>
 2 <<<local>>> 2 <<<local>>>
Line 136: Line 146:
 4 <<<local>>> 4 <<<local>>>
 5 0 "test Call-center-router_188.17.152.47" rta=24.062000ms;200.000000;500.000000;0.000000|pl=20%;40;60;0 PING OK - Packet loss = 0%, RTA = 8.06 ms 5 0 "test Call-center-router_188.17.152.47" rta=24.062000ms;200.000000;500.000000;0.000000|pl=20%;40;60;0 PING OK - Packet loss = 0%, RTA = 8.06 ms
- 
- 
- 
-- get data  
-lq "GET statehist\nColumns: host_name service_description state from until\nFilter: time >= 1661123454\nFilter: time < 1661127106\nFilter: host_name = docker01_host\nOutputFormat: json" 
- 
  
 </code> </code>
  
  
  • monitoring.1661552535.txt.gz
  • Last modified: 2022/08/26 22:22
  • by admin