<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Smemorando &#187; NagiosGrapher</title>
	<atom:link href="http://www.smemorando.com/tag/nagiosgrapher/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smemorando.com</link>
	<description>la libertà non esiste, siamo tutti schiavi</description>
	<lastBuildDate>Wed, 02 Jun 2010 08:10:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Installare e configurare NagiosGrapher</title>
		<link>http://www.smemorando.com/2009/09/16/installare-e-configurare-nagiosgrapher/</link>
		<comments>http://www.smemorando.com/2009/09/16/installare-e-configurare-nagiosgrapher/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:04:58 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[NagiosGrapher]]></category>
		<category><![CDATA[NagiosGrapher-1.7.1.tar.gz]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=160</guid>
		<description><![CDATA[NagiosGrapher si integra con Nagios e sfruttando rrd permette di popolare dei grafici sull&#8217;andamento temporale dei servizi posti sotto monitoraggio, di seguito i passi da seguire per installarlo e configurarlo al meglio su ubuntu server. Per prima cosa scarico l&#8217;ultima versione stabile disponibile dal sito https://www.nagiosforge.org/gf/project/nagiosgrapher/frs/ wget https://www.nagiosforge.org/gf/download/frsrelease/135/285/NagiosGrapher-1.7.1.tar.gz poi scompatto il tar.gz ed entro nella [...]]]></description>
			<content:encoded><![CDATA[<p>NagiosGrapher si integra con Nagios e sfruttando rrd permette di popolare dei grafici sull&#8217;andamento temporale dei servizi posti sotto monitoraggio, di seguito i passi da seguire per installarlo e configurarlo al meglio su ubuntu server.</p>
<p style="text-align: center;">
<p style="text-align: center;"><img class="aligncenter size-large wp-image-173" title="nagios-screenshot" src="http://www.smemorando.com/wp-content/uploads/2009/09/nagios-screenshot-1024x634.gif" alt="nagios-screenshot" width="581" height="360" /></p>
<p>Per prima cosa scarico l&#8217;ultima versione stabile disponibile dal sito https://www.nagiosforge.org/gf/project/nagiosgrapher/frs/</p>
<p><strong>wget https://www.nagiosforge.org/gf/download/frsrelease/135/285/NagiosGrapher-1.7.1.tar.gz</strong></p>
<p>poi scompatto il tar.gz ed entro nella cartella:<br />
<strong>tar xzf NagiosGrapher-1.7.1.tar.gz<br />
</strong><strong>cd NagiosGrapher-1.7.1<br />
</strong></p>
<p>installo i pacchetti per proseguire nell&#8217;installazione di NagiosGrapher:<br />
<strong>apt-get install autoconf rrdtool perl perl-base perl-modules libcalendar-simple-perl libgd-gd2-perl perlmagick librrds-perl liburi-perl</strong></p>
<p>e passo all&#8217;installazione del pacchetto scaricato prima:<br />
<strong>autoconf<br />
./configure<br />
make testdeps<br />
make install<br />
make update</strong></p>
<p>se la procedura si è completata senza errori aggiungo le righe sottostanti al file di configurazione di nagios /usr/local/nagios/etc/nagios.cfg:<br />
<strong># per Nagiosgrapher<br />
cfg_dir=/usr/local/nagios/etc/serviceext<br />
process_performance_data=1<br />
service_perfdata_file=/usr/local/nagios/var/service-perfdata<br />
service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$<br />
service_perfdata_file_mode=a<br />
service_perfdata_file_processing_interval=30<br />
service_perfdata_file_processing_command=process-service-perfdata-file</strong></p>
<p>nelle varie guide disponibili su internet in molti casi viene riportata &#8216;erroneamente&#8217; questa stringa<strong>:</strong><em><br />
service_perfdata_file_template=$HOSTNAME$ $SERVICEDESC$ $SERVICEOUTPUT$ $SERVICEPERFDATA$ $TIMET$</em><strong> </strong></p>
<p><strong></strong>al posto di questa:<br />
<em>service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$</em><strong><strong><br />
</strong></strong>che non permette la generazione e popolazione dei file sotto /usr/local/nagios/var/rrd e la conseguente mancata visualizzazione dei grafici quindi almeno in questa installazione è da evitare se lo si vuol far funzionare</p>
<p>poi aggiungo le righe che seguono al file /usr/local/nagios/etc/objects/commands.cfg:<br />
<strong># per NagiosGrapher<br />
define command{<br />
command_name process-service-perfdata-file<br />
command_line mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/service-perfdata.$TIMET$<br />
}</strong></p>
<p>ora in base ai check che ho attivato attivo anche i grafici corrispondenti, faccio qualche esempio..</p>
<p>se sto monitorando tramite un check_ping la risposta di un host e nel file di configurazione dei servizi (services.cfg) ho definito come <em>service_description <strong>PING basterà attivare il file</strong></em> check_ping.ncfg.disabled semplicemente muovendolo in un altro file così come segue:<br />
<strong>mv check_ping.ncfg.disabled check_ping.ncfg<br />
</strong></p>
<p>ed avviare nagios e nagios_grapher:<br />
<strong>/etc/init.d/nagios_grapher start<br />
/etc/init.d/nagios restart</strong></p>
<p>aspettare qualche minuto che si generino in automatico i file di configurazione sotto /usr/local/nagios/etc/serviceext e che si generino e popolino i file in /usr/local/nagios/var/rrd/ e poi riavviare nagios_grapher e far ricaricare la configurazione a nagios<strong>:</strong><strong><br />
/etc/init.d/nagios_grapher restart<br />
</strong><strong>/etc/init.d/nagios  reload</strong></p>
<p>A questo punto dovrebbe apparire accanto alla descrizione del servizio un&#8217;icona cliccabile che permetterà di visualizzare i grafici che mammano verranno popolati. <strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2009/09/16/installare-e-configurare-nagiosgrapher/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
