<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Adrien le Maire</title>
	<link>http://www.alemaire.be/</link>
	<language>en</language>
	<description>My presence on internet</description>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://www.alemaire.be/feed.php" />
	<lastBuildDate>Fri, 20 May 2011 18:13:00 +0200</lastBuildDate>
	<generator>PluXml</generator>
	<item>
		<title>Piwik&#039;s extension for Pluxml</title> 
		<link>http://www.alemaire.be/article4/piwik-extension-for-pluxml</link>
		<guid>http://www.alemaire.be/article4/piwik-extension-for-pluxml</guid>
		<description>This is the first plugin I&#039;ve created it from the one for google analytics.
It has a similar purpose, except that Piwik is hosted on your server.
I invite you to go take a look at &lt;a href=&quot;http://piwik.org/&quot;&gt; Piwik website &lt;/a&gt;here&#039;s &lt;a href=&quot;http://www.alemaire.be/data/documents/plxpiwik.tgz&quot;&gt;the file&lt;/a&gt; :-)</description>
		<pubDate>Fri, 20 May 2011 18:13:00 +0200</pubDate>
		<dc:creator>Adrien le Maire</dc:creator>
	</item>
	<item>
		<title>Use NSCA easily with nsca-wrapper modified</title> 
		<link>http://www.alemaire.be/article3/use-nsca-easily-with-nsca-wrapper-modified</link>
		<guid>http://www.alemaire.be/article3/use-nsca-easily-with-nsca-wrapper-modified</guid>
		<description>&lt;h2&gt;Nagios&#039;s aim is to monitor a lot of different services on differents operating systems.&lt;/h2&gt;&lt;br /&gt;
&lt;p&gt;To allow to check a huge number of services,  the monitoring server need a big computing capacity, or change your way to perform the checks, and ensure that your monitored hosts send the state of each service to the Nagios server. That&#039;s why I choose NSCA. Just install the server package on your Nagios host, then the nagios-plugins on the remote; and I perform the checks automaticaly with nsca-wrapper. &lt;/p&gt;&lt;p&gt;I was using nsca-wrapper but, I though that&#039;s use to much my database, so, I decide to modify the script &lt;a href=&quot;http://exchange.nagios.org/directory/Addons/Passive-Checks/NSCA-Wrapper/details&quot;&gt;NSCA Wrapper&lt;/a&gt; available on Nagios Exchange.&lt;/p&gt;

&lt;p&gt;I wanna get any modification of the state of my monitored services.
So it doesn&#039;t have to send update if no change.&lt;br /&gt;
I decide to add the &quot;memory&quot; option to that script.
It needs as argument, a folder in witch the state of all commands will be safe.&lt;br /&gt;
To generate the name of each file, I choose to use a md5 hash of the command.&lt;/p&gt;

&lt;p&gt;Now, I&#039;m sending my nsca checks using cron with a file grouping all my commands like :&lt;br /&gt;
[code lang=&quot;bash&quot;]NSCA_WRAPPER=&quot;/etc/nagios-plugins/nsca_wrapper -N watch -b /usr/sbin/send_nsca -c /etc/send_nsca.cfg -d /var/local/nsca -q -H dom0&quot;
$NSCA_WRAPPER -S SSH -C &#039;/usr/lib/nagios/plugins/check_ssh &#039;127.0.0.1&#039;&#039; [/code]&lt;/p&gt;

&lt;p&gt;Here is my modify version : &lt;a href=&#039;http://www.alemaire.be/data/documents/nsca_wrapper.tar.gz&#039;&gt;nsca_wrapper.tar.gz&lt;/a&gt;&lt;/p&gt;

Enjoy :-)</description>
		<pubDate>Fri, 25 Mar 2011 12:01:00 +0100</pubDate>
		<dc:creator>Adrien le Maire</dc:creator>
	</item>
	<item>
		<title>Samba4 as Primary Domain Controller</title> 
		<link>http://www.alemaire.be/article2/samba4-pdc</link>
		<guid>http://www.alemaire.be/article2/samba4-pdc</guid>
		<description>&lt;img class=&quot;alignright size-medium wp-image-284&quot; title=&quot;Samba_Logo_4c&quot; src=&quot;http://www.alemaire.be/data/images/samba_logo_4c.png&quot; alt=&quot;&quot; width=&quot;300&quot; height=&quot;53&quot; /&gt;&lt;br /&gt;
It is a service available under GNU/Linux. Originally build for sharing files with windows using a smb-compatible protocol.&lt;br /&gt;&lt;br /&gt;

The version 4 implements a lot of new fetaures :&lt;ul&gt;
	&lt;li&gt; support of the &#039;Active Directory&#039; logon and administration protocols&lt;/li&gt;
	&lt;li&gt; new &#039;full coverage&#039; testsuites&lt;/li&gt;
	&lt;li&gt; full NTFS semantics for sharing backends&lt;/li&gt;
	&lt;li&gt; Internal LDAP server, with AD semantics&lt;!--more--&gt;&lt;/li&gt;
	&lt;li&gt; Internal Kerberos server, including PAC support&lt;/li&gt;
	&lt;li&gt; Bind9 integration for AD DNS support&lt;/li&gt;
	&lt;li&gt; fully asynchronous internals&lt;/li&gt;
	&lt;li&gt; flexible process models&lt;/li&gt;
	&lt;li&gt; better scalablilty from micro to very large installations&lt;/li&gt;
	&lt;li&gt; new RPC infrastructure (PIDL)&lt;/li&gt;
	&lt;li&gt; flexible database architecture (LDB)&lt;/li&gt;
	&lt;li&gt; Python support - used excessively for client and management tools&lt;/li&gt;
	&lt;li&gt; generic security subsystem (GENSEC)&lt;/li&gt;
	&lt;li&gt; over 50% auto-generated code!&lt;/li&gt;
&lt;/ul&gt;
So if you want to have an Active Directory like server but completly free and under Ubuntu ; there&#039;s a way to install it very easily way to install the daily-build version. If you wanna do less update of samba; you would use the version provided by ubuntu.&lt;br /&gt;&lt;br /&gt;

For those who want to use the Ubuntu version, pass directly to the point 3.
&lt;ol&gt;
&lt;h4&gt;
	&lt;li&gt;Add two repositories&lt;/li&gt;
&lt;/h4&gt;
&lt;pre class=&quot;brush: shell&quot;&gt;$ apt-add-repository ppa:samba-team/ppa
$ apt-add-repository ppa:openchange/daily&lt;/pre&gt;
if you don&#039;t have the command apt-add-repo ; install it :
&lt;pre class=&quot;brush: shell&quot;&gt;sudo apt-get install python-software-properties&lt;/pre&gt;
&lt;h4&gt;
	&lt;li&gt;Set the packages from ppa repositories prioritirly&lt;/li&gt;
&lt;/h4&gt;
You need to create the file /etc/apt/preferences.d/ppa with the following content :
&lt;pre class=&quot;brush: shell&quot;&gt;Package: *
Pin: origin ppa.launchpad.net
Pin-Priority: 600&lt;/pre&gt;
&lt;h4&gt;
	&lt;li&gt;Install the right pakages&lt;/li&gt;
&lt;/h4&gt;
&lt;pre class=&quot;brush: shell&quot;&gt;aptitude update &amp;&amp; aptitude install samba4 openchangeserver samba4-ldb libwbclient0&lt;/pre&gt;
If you get an error during the process ; you may need to create a link :
# ln -s /usr/lib/libwbclient.so.0 /usr/lib/libwbclient.so
then run &quot;dpkg --configure -a&quot;
&lt;h4&gt;
	&lt;li&gt;To configure and install your domain&lt;/li&gt;
&lt;/h4&gt;
Check your hosts file to match with the hostname.
Remove the configuration file &quot; /etc/samba/smb.conf&quot;
Adapt the following command line to your case.
&lt;pre class=&quot;brush: shell&quot;&gt;bash /usr/share/samba/setup/provision --realm=pdc.mydomain --domain=MYDOMAIN --adminpass=password --server-role=&#039;domain controller&#039;&lt;/pre&gt;
add /var/lib/samba/private/named.conf to /etc/bind/named.conf&lt;/ol&gt;
If you get an error after an upgrade; search on the web or wait for a new version ; it&#039;s still an alpha version.

Sources :
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://wiki.samba.org/index.php/Samba4/HOWTO&quot;&gt;http://wiki.samba.org/index.php/Samba4/HOWTO&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://jelmer.vernstok.nl/blog/archives/263-Samba-4-and-OpenChange-daily-Ubuntu-packages.html&quot;&gt;http://jelmer.vernstok.nl/blog/archives/263-Samba-4-and-OpenChange-daily-Ubuntu-packages.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
		<pubDate>Fri, 25 Mar 2011 11:54:00 +0100</pubDate>
		<dc:creator>Adrien le Maire</dc:creator>
	</item>
	<item>
		<title>Public IP from a command line</title> 
		<link>http://www.alemaire.be/article1/public-ip-cli</link>
		<guid>http://www.alemaire.be/article1/public-ip-cli</guid>
		<description>There&#039;s a little tirck to get your ip by another way than &quot;grep / sed&quot; from a web page.

&lt;a href=&quot;http://ifconfig.me&quot;&gt;ifconfig.me&lt;/a&gt; allows you to get your ip with one simple command :
&lt;pre class=&quot;brush: shell&quot;&gt;curl ifconfig.me&lt;/pre&gt;

or

&lt;pre class=&quot;brush: bash&quot;&gt;curl ifconfig.me/ip&lt;/pre&gt;
for the reverse dns of your ip :
&lt;pre class=&quot;brush: shell&quot;&gt;curl ifconfig.me/host&lt;/pre&gt;
more informations on the official website : &lt;a href=&quot;http://ifconfig.me&quot;&gt;http://ifconfig.me&lt;/a&gt;</description>
		<pubDate>Wed, 16 Mar 2011 14:35:00 +0100</pubDate>
		<dc:creator>Adrien le Maire</dc:creator>
	</item>
</channel>
</rss>
