<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="https://uname.pingveno.net/blog/index.php/feed/rss2/xslt" ?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title># uname -a - Mot-clé - status</title>
    <link>https://uname.pingveno.net/blog/index.php/</link>
    <atom:link href="https://uname.pingveno.net/blog/index.php/feed/tag/status/rss2" rel="self" type="application/rss+xml" />
    <description>Le blog de uname.pingveno.net</description>
    <language>fr</language>
    <pubDate>Tue, 18 Aug 2026 13:46:21 +0200</pubDate>
    <copyright>Mathieu Pellegrin</copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>Dotclear</generator>
          <item>
        <title>Push Nagios incidents to Cachet status page</title>
        <link>https://uname.pingveno.net/blog/index.php/post/2015/08/10/Push-Nagios-incidents-to-Cachet-status-page</link>
        <guid isPermaLink="false">urn:md5:cf4f8867303b09f83eaba0fa209caff4</guid>
        <pubDate>Mon, 10 Aug 2015 21:45:00 +0200</pubDate>
        <dc:creator>Mathieu</dc:creator>
                  <category>Hacks</category>
                          <category>cachet</category>
                  <category>monitoring</category>
                  <category>nagios</category>
                  <category>status</category>
                <description>&lt;p&gt;&lt;a class=&quot;media-link&quot; href=&quot;https://uname.pingveno.net/blog/public/captures/cachet-nagios-demo.png&quot;&gt;&lt;img alt=&quot;cachet-nagios-demo.png&quot; class=&quot;media&quot; src=&quot;https://uname.pingveno.net/blog/public/captures/.cachet-nagios-demo_m.png&quot; style=&quot;float: right; margin: 0 0 1em 1em;&quot; title=&quot;cachet-nagios-demo.png, août 2015&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://cachethq.io/&quot; hreflang=&quot;en&quot;&gt;Cachet&lt;/a&gt; is an opensource status page. It displays incidents, manually or automaticaly created to inform users of what is going on the monitored service.&lt;/p&gt;

&lt;p&gt;Note that Cachet does not do any monitoring, that&amp;#8217;s why Nagios will be used to send incidents events through its API.&lt;/p&gt;

&lt;p&gt;The code can be downloaded at&amp;#160;: &lt;a href=&quot;https://github.com/mpellegrin/nagios-eventhandler-cachet&quot;&gt;https://github.com/mpellegrin/nagios-eventhandler-cachet&lt;/a&gt;&lt;/p&gt;          &lt;h3&gt;Prerequisites&lt;/h3&gt;

&lt;ul&gt;
	&lt;li&gt;Have a working Cachet installation&lt;/li&gt;
	&lt;li&gt;Have created some Cachet components to play with&lt;/li&gt;
	&lt;li&gt;Have a Nagios instance with PHP CLI and php-curl installed&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Installation&lt;/h3&gt;

&lt;ul&gt;
	&lt;li&gt;Get a Cachet API key: Create a new user in Cachet dashboard, login with this user, and get the API key in his profile.&lt;/li&gt;
	&lt;li&gt;Copy cachet_notify to /usr/share/nagios3/plugins/eventhandlers (depending on your configuration)&lt;/li&gt;
	&lt;li&gt;Change URL and API key in cachet_notification source code&lt;/li&gt;
	&lt;li&gt;Try it: ./cachet_notify &amp;#8216;My Cachet component&amp;#8217; &amp;#8216;My nagios service&amp;#8217; CRITICAL HARD &amp;#8216;The service is Critical&amp;#8217;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Configuration&lt;/h3&gt;

&lt;ul&gt;
	&lt;li&gt;Make a Nagios command:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;
  define command {
      command_name    cachet_notify
      command_line    /usr/share/nagios3/plugins/eventhandlers/cachet_notify '$ARG1$' '$SERVICEDESC$' '$SERVICESTATE$' '$SERVICESTATETYPE$' '$SERVICEOUTPUT$'
  }
&lt;/pre&gt;

&lt;ul&gt;
	&lt;li&gt;Add an event handler on your services:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;
  define service {
      service_description             My nagios service
      ...
      event_handler                   cachet_notify!My Cachet component
  }
&lt;/pre&gt;

&lt;ul&gt;
	&lt;li&gt;Restart nagios&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Addendum&lt;/h3&gt;

&lt;p&gt;Feel free to ask questions or open issues for this code on Github.&lt;/p&gt;</description>
        
              </item>
      </channel>
</rss>
