<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Surveillance on falkp.no/blog</title>
    <link>/blog/tags/surveillance/</link>
    <description>falkp.no/blog (Surveillance)</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
      

      
    

    
    <lastBuildDate>Sat, 24 Oct 2020 00:00:00 +0000</lastBuildDate>
    
    <atom:link href="/blog/tags/surveillance/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Check Commander - Curses interface for Checkmk</title>
      <link>/blog/posts/check_commander_curses_interface_for_checkmk/</link>
      <pubDate>Sat, 24 Oct 2020 00:00:00 +0000</pubDate>
      
      <guid>/blog/posts/check_commander_curses_interface_for_checkmk/</guid>
      <description>&lt;p&gt;A curses interface for &lt;a href=&#34;https://checkmk.com/&#34;&gt;checkmk&lt;/a&gt;. I named it Checkmk Commander, but Check Commander is easier to say.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;chkcomlogo.png&#34; alt=&#34;logo&#34;&gt;&lt;/p&gt;
&lt;p&gt;I use Checkmk daily. A few common tasks are acknowledging, downtiming and reinventorizing hosts and services. In the web UI this takes lots of clicks and time. So I wrote this client to optimize my workflow.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;chkcom.png&#34; alt=&#34;check commander screenshot&#34;&gt;&lt;/p&gt;
&lt;p&gt;Example workflow in web UI:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A new service has been detected on host1, thus I have to reinventorize it.&lt;/li&gt;
&lt;li&gt;Click on host name.&lt;/li&gt;
&lt;li&gt;Click WATO&lt;/li&gt;
&lt;li&gt;Click services&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;fix all missing/vanished&amp;rdquo;, wait.&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;1 change&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Activate affected&amp;rdquo;, wait.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The same in Check Commander:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A new service has been detected on host1, thus I have to reinventorize it.&lt;/li&gt;
&lt;li&gt;Navigate up/down to target the host&lt;/li&gt;
&lt;li&gt;Hit &amp;ldquo;r&amp;rdquo; and enter to confirm. Reinventorize happens in background, and one does not have to wait for it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are hotkeys for opening web pages (or run other commands) linked with the selected host. I use &amp;ldquo;w&amp;rdquo; to open the host&amp;rsquo;s wiki page, &amp;ldquo;b&amp;rdquo; to open the checkmk web UI in browser and &amp;ldquo;t&amp;rdquo; for opening a new terminal with ssh to the host.&lt;/p&gt;
&lt;p&gt;Since this is in curses, one can also run it in tmux or on a terminal server. Browser commands can then open in elinks, w3c, or other suitable CLI software.&lt;/p&gt;
&lt;p&gt;Easy install from pip. See screenshots and read more at &lt;a href=&#34;https://gitlab.com/larsfp/checkmk-commander&#34;&gt;gitlab&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Checkmk Plugins, part 1</title>
      <link>/blog/posts/checkmk_plugins/</link>
      <pubDate>Sat, 11 Apr 2020 00:00:00 +0000</pubDate>
      
      <guid>/blog/posts/checkmk_plugins/</guid>
      <description>&lt;p&gt;Some of my &lt;a href=&#34;https://checkmk.com/&#34;&gt;checkmk&lt;/a&gt; plugins, Webchecks, Blacklist and SQL Dump. Easy deployments.&lt;/p&gt;
&lt;h2 id=&#34;blacklist&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#blacklist&#34;&gt;
        #
    &lt;/a&gt;
    Blacklist
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;If you have a server which is sending mail, drop this check in place. It will check the host it&amp;rsquo;s running from against a bunch of blacklists. No configuration needed.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://gitlab.com/larsfp/checkmk-blacklist&#34;&gt;checkmk-blacklist&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;blacklist.png&#34; alt=&#34;One positive&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;webchecks&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#webchecks&#34;&gt;
        #
    &lt;/a&gt;
    Webchecks
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;Easy and expansive check of web services. It will:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Follow redirects&lt;/li&gt;
&lt;li&gt;Check (configurable) status code&lt;/li&gt;
&lt;li&gt;If ssl, check cert and chain. Check remaining time.&lt;/li&gt;
&lt;li&gt;Configurable string check.&lt;/li&gt;
&lt;li&gt;If URL contains dev, stage or such, complain if the site isn&amp;rsquo;t robots-blocked. Else, complain if the site &lt;em&gt;is&lt;/em&gt; robots-blocked.&lt;/li&gt;
&lt;li&gt;Find URLs to check from apache or nginx config.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&#34;https://gitlab.com/larsfp/checkmk-WebChecks&#34;&gt;checkmk-webchecks&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;webchecks-ok.png&#34; alt=&#34;Webchecks&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sql-dumps&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#sql-dumps&#34;&gt;
        #
    &lt;/a&gt;
    SQL dumps
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;This one is of less general use, and is published more as an example for further development. It&amp;rsquo;s written for an inhouse SQL dumper, somewhat similar to &lt;a href=&#34;https://github.com/sixhop/AutoMySQLBackup&#34;&gt;automysqlbackup&lt;/a&gt;. It will check for a running database server, and if found check for recent database dumps.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://gitlab.com/larsfp/checkmk-stasissqldump&#34;&gt;checkmk-stasissqldump&lt;/a&gt;:&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
