<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Davide Madrisan</title>
    <description>The latest articles on DEV Community by Davide Madrisan (@madrisan).</description>
    <link>https://dev.to/madrisan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F578461%2Fdcf9ad65-ec9b-4005-b955-c01cc0b193fa.jpeg</url>
      <title>DEV Community: Davide Madrisan</title>
      <link>https://dev.to/madrisan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/madrisan"/>
    <language>en</language>
    <item>
      <title>Nagios Plugins for Linux v31</title>
      <dc:creator>Davide Madrisan</dc:creator>
      <pubDate>Wed, 31 Aug 2022 19:56:45 +0000</pubDate>
      <link>https://dev.to/madrisan/nagios-plugins-for-linux-v31-2njc</link>
      <guid>https://dev.to/madrisan/nagios-plugins-for-linux-v31-2njc</guid>
      <description>&lt;p&gt;What's new in version v31 "Counter-intuitive"&lt;/p&gt;

&lt;h3&gt;
  
  
  Fixes
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Libraries&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;lib/container_docker_memory&lt;/code&gt;: fix an issue reported by &lt;em&gt;clang-analyzer&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Make sure &lt;code&gt;sysfs&lt;/code&gt; is mounted in the plugins that require it.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Enhancements / Changes
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Plugin &lt;code&gt;check_filecount&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;New plugin &lt;code&gt;check_filecount&lt;/code&gt; that returns the number of files found in one or more directories.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Plugin &lt;code&gt;check_memory&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;check_memory&lt;/code&gt;: support new units kiB/MiB/GiB.
Feature asked by &lt;a href="https://github.com/mdicss"&gt;mdicss&lt;/a&gt;.
See discussion &lt;a href="https://github.com/madrisan/nagios-plugins-linux/discussions/120"&gt;#120&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;code&gt;contrib/icinga2/CheckCommands.conf&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contribution from Lorenz &lt;a href="https://github.com/RincewindsHat"&gt;RincewindsHat&lt;/a&gt;: add &lt;em&gt;icinga2&lt;/em&gt; command configurations.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Build&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;configure: ensure libprocps is v4.0.0 or better if the experimental option &lt;code&gt;--enable-libprocps&lt;/code&gt; is passed to &lt;code&gt;configure&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Test framework&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add some unit tests for &lt;code&gt;lib/xstrton&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;New unit tests &lt;code&gt;tslibfiles_{filecount,hiddenfile,size}&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Package creation&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add Linux Alpine 3.16 and remove version 3.13.&lt;/li&gt;
&lt;li&gt;Do not package experimental plugins in the rpm &lt;code&gt;nagios-plugins-linux-all&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add Fedora 36 and drop Fedora 33 support.&lt;/li&gt;
&lt;li&gt;CentOS 8 died a premature death at the end of 2021. Add packages for CentOS Stream 8 and 9.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;GitHub Workflows&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build the Nagios Plugins Linux on the LTS Ubuntu versions only. The version 21 seems dead.&lt;/li&gt;
&lt;li&gt;Add build tests for all the supported oses.&lt;/li&gt;
&lt;li&gt;Update the os versions used in tests.&lt;/li&gt;
&lt;li&gt;CentOS 8 died a premature death at the end of 2021. Remove it from the list of test oses.&lt;/li&gt;
&lt;li&gt;Add CodeQL analysis&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>nagios</category>
      <category>c</category>
      <category>linux</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Nagios Plugins for Linux v30</title>
      <dc:creator>Davide Madrisan</dc:creator>
      <pubDate>Sun, 20 Feb 2022 21:18:44 +0000</pubDate>
      <link>https://dev.to/madrisan/nagios-plugins-for-linux-v30-2bk0</link>
      <guid>https://dev.to/madrisan/nagios-plugins-for-linux-v30-2bk0</guid>
      <description>&lt;p&gt;This open-source project "Nagios Plugins for Linux" provides several binary plugins for monitoring (physical and virtual) Linux hosts with &lt;a href="http://www.nagios.org/"&gt;Nagios&lt;/a&gt; and Nagios-compatible monitoring systems like &lt;a href="https://icinga.com/learn/"&gt;Icinga&lt;/a&gt; and &lt;a href="https://www.naemon.org/"&gt;Naemon&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's new in this release&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FIXES&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Plugin &lt;code&gt;check_pressure&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Display values per second regardless of the delay, and ensure the delta of "some" is calculated correctly.&lt;/li&gt;
&lt;li&gt;Thanks to &lt;a href="https://github.com/epleterte"&gt;Christian Bryn (epleterte)&lt;/a&gt; for reporting and fixing a typo in the git clone command.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Package creation&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fix Debian packages creation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;ENHANCEMENTS / CHANGES&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Libraries&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;lib/netinfo&lt;/code&gt;: fix a LGTM static analyzer alert.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Packages&lt;/p&gt;

&lt;p&gt;Release updates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add Debian 11 and drop Debian 8,&lt;/li&gt;
&lt;li&gt;Add Fedora 35 and drop Fedora 32,&lt;/li&gt;
&lt;li&gt;Add Linux Alpine 3.15 and drop version 3.12.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>c</category>
      <category>nagios</category>
    </item>
    <item>
      <title>HadCRUT5 visualization</title>
      <dc:creator>Davide Madrisan</dc:creator>
      <pubDate>Thu, 08 Apr 2021 21:19:51 +0000</pubDate>
      <link>https://dev.to/madrisan/hadcrut5-visualization-5222</link>
      <guid>https://dev.to/madrisan/hadcrut5-visualization-5222</guid>
      <description>&lt;p&gt;HadCRUT5 is a gridded dataset of global historical surface temperature anomalies relative to a 1961-1990 reference period. The dataset is a collaborative product of the Met Office Hadley Centre and the Climatic Research Unit at the University of East Anglia.&lt;/p&gt;

&lt;p&gt;This project is made of a couple Python scripts: &lt;code&gt;hadcrut5-plot.py&lt;/code&gt; and &lt;code&gt;hadcrut5-bars.py&lt;/code&gt;. They parse the HadCRUT5 data files and produce a few different plots:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;line plot&lt;/li&gt;
&lt;li&gt;line plot using the N-year means data (smoother version)&lt;/li&gt;
&lt;li&gt;bar plot&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each plot can be generated on different periods:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1961-1990 (the default one)&lt;/li&gt;
&lt;li&gt;1850-1900&lt;/li&gt;
&lt;li&gt;1880-1920&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The scripts require the Python libraries: &lt;code&gt;Matplotlib&lt;/code&gt;, &lt;code&gt;netCDF4&lt;/code&gt;, &lt;code&gt;NumPy&lt;/code&gt;, and &lt;code&gt;Requests&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Project code available at: &lt;a href="https://github.com/madrisan/HadCRUT5"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Nagios Plugins for Linux v28</title>
      <dc:creator>Davide Madrisan</dc:creator>
      <pubDate>Sat, 13 Feb 2021 23:06:10 +0000</pubDate>
      <link>https://dev.to/madrisan/nagios-plugins-for-linux-v28-3gb7</link>
      <guid>https://dev.to/madrisan/nagios-plugins-for-linux-v28-3gb7</guid>
      <description>&lt;p&gt;A set of Ansi-C opensource &lt;a href="http://www.nagios.org/"&gt;Nagios&lt;/a&gt; plugins for monitoring Linux boxes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;check_clock&lt;/li&gt;
&lt;li&gt;check_cpu&lt;/li&gt;
&lt;li&gt;check_cpufreq&lt;/li&gt;
&lt;li&gt;check_cswch&lt;/li&gt;
&lt;li&gt;check_docker&lt;/li&gt;
&lt;li&gt;check_fc&lt;/li&gt;
&lt;li&gt;check_ifmountfs&lt;/li&gt;
&lt;li&gt;check_intr&lt;/li&gt;
&lt;li&gt;check_iowait&lt;/li&gt;
&lt;li&gt;check_load&lt;/li&gt;
&lt;li&gt;check_memory&lt;/li&gt;
&lt;li&gt;check_multipath&lt;/li&gt;
&lt;li&gt;check_nbprocs&lt;/li&gt;
&lt;li&gt;check_network&lt;/li&gt;
&lt;li&gt;check_paging&lt;/li&gt;
&lt;li&gt;check_pressure&lt;/li&gt;
&lt;li&gt;check_podman&lt;/li&gt;
&lt;li&gt;check_readonlyfs&lt;/li&gt;
&lt;li&gt;check_swap&lt;/li&gt;
&lt;li&gt;check_tcpcount&lt;/li&gt;
&lt;li&gt;check_temperature&lt;/li&gt;
&lt;li&gt;check_uptime&lt;/li&gt;
&lt;li&gt;check_users&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These plugins have been reported to also work with &lt;a href="https://www.icinga.org/"&gt;Icinga&lt;/a&gt; and &lt;a href="https://www.icinga.org/icinga/icinga-2/"&gt;Icinga2&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Project home page at &lt;a href="https://github.com/madrisan/nagios-plugins-linux"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The full documentation is available online in the GitHub &lt;a href="https://github.com/madrisan/nagios-plugins-linux/wiki"&gt;wiki page&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>nagios</category>
      <category>plugins</category>
      <category>monitoring</category>
      <category>linux</category>
    </item>
    <item>
      <title>A simple Mattermost notifier written in Go</title>
      <dc:creator>Davide Madrisan</dc:creator>
      <pubDate>Fri, 12 Feb 2021 23:40:02 +0000</pubDate>
      <link>https://dev.to/madrisan/a-simple-mattermost-notifier-written-in-go-281o</link>
      <guid>https://dev.to/madrisan/a-simple-mattermost-notifier-written-in-go-281o</guid>
      <description>&lt;p&gt;I’m very proud to announce the immediate release of &lt;strong&gt;go-mattermost-notify&lt;/strong&gt; version 1.0.0, a simple Mattermost notifier written in Go.&lt;/p&gt;

&lt;p&gt;You can post text or markdown-formatted messages to a Mattermost &lt;em&gt;channel&lt;/em&gt; (via its ID) or send &lt;em&gt;direct messages&lt;/em&gt; to a user.&lt;/p&gt;

&lt;p&gt;This program makes use of the Go libraries &lt;code&gt;http&lt;/code&gt; and &lt;code&gt;url&lt;/code&gt; for interacting with a Mattermost server (via its REST API v4 interface) and &lt;code&gt;Cobra&lt;/code&gt; coupled with &lt;code&gt;Viper&lt;/code&gt; to implement the CLI interface.&lt;/p&gt;

&lt;p&gt;Project code available at &lt;a href="https://github.com/madrisan/go-mattermost-notify/"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>mattermost</category>
      <category>go</category>
      <category>cli</category>
      <category>bot</category>
    </item>
  </channel>
</rss>
