<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Install Nagios 4 in Ubuntu and Debian	</title>
	<atom:link href="https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Fri, 05 Mar 2021 18:05:53 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Aditya Thombre		</title>
		<link>https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-1445467</link>

		<dc:creator><![CDATA[Aditya Thombre]]></dc:creator>
		<pubDate>Fri, 05 Mar 2021 18:05:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27785#comment-1445467</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-1402296&quot;&gt;Ram&lt;/a&gt;.

Hi Ram,

You need to enable the Rewrite module before editing the config file.

Please try the below command for enabling Rewrite Module.
&lt;pre&gt;
$ sudo a2enmod rewrite
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-1402296">Ram</a>.</p>
<p>Hi Ram,</p>
<p>You need to enable the Rewrite module before editing the config file.</p>
<p>Please try the below command for enabling Rewrite Module.</p>
<pre>
$ sudo a2enmod rewrite
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ram		</title>
		<link>https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-1402296</link>

		<dc:creator><![CDATA[Ram]]></dc:creator>
		<pubDate>Fri, 18 Dec 2020 17:36:34 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27785#comment-1402296</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-942111&quot;&gt;retalsw&lt;/a&gt;.

Hi team,

I have given as :
&lt;pre&gt;
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{3.135.189.159}/$1
&lt;/pre&gt;
But getting the below error
&lt;pre&gt;
Job for apache2.service failed because the control process exited with an error code.
See &quot;systemctl status apache2.service&quot; and &quot;journalctl -xe&quot; for details.

when I run the journalctl &#124; tail    I get the below error.
Dec 18 17:22:07 polkit-1 sshd[12867]: Disconnected from invalid user diradmin 81
Dec 18 17:25:12 polkit-1 systemd[1]: Starting The Apache HTTP Server...
Dec 18 17:25:12 polkit-1 apachectl[12881]: AH00526: Syntax error on line 14 of /
Dec 18 17:25:12 polkit-1 apachectl[12881]: Invalid command &#039;RewriteEngine&#039;, perh
Dec 18 17:25:12 polkit-1 apachectl[12881]: Action &#039;start&#039; failed.
Dec 18 17:25:12 polkit-1 apachectl[12881]: The Apache error log may have more in
Dec 18 17:25:12 polkit-1 systemd[1]: apache2.service: Control process exited, co
Dec 18 17:25:12 polkit-1 systemd[1]: apache2.service: Failed with result &#039;exit-c
Dec 18 17:25:12 polkit-1 systemd[1]: Failed to start The Apache HTTP Server.
Dec 18 17:25:59 polkit-1 sshd[12930]: Connection closed by 127.0.0.1 port 50260
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-942111">retalsw</a>.</p>
<p>Hi team,</p>
<p>I have given as :</p>
<pre>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{3.135.189.159}/$1
</pre>
<p>But getting the below error</p>
<pre>
Job for apache2.service failed because the control process exited with an error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.

when I run the journalctl | tail    I get the below error.
Dec 18 17:22:07 polkit-1 sshd[12867]: Disconnected from invalid user diradmin 81
Dec 18 17:25:12 polkit-1 systemd[1]: Starting The Apache HTTP Server...
Dec 18 17:25:12 polkit-1 apachectl[12881]: AH00526: Syntax error on line 14 of /
Dec 18 17:25:12 polkit-1 apachectl[12881]: Invalid command 'RewriteEngine', perh
Dec 18 17:25:12 polkit-1 apachectl[12881]: Action 'start' failed.
Dec 18 17:25:12 polkit-1 apachectl[12881]: The Apache error log may have more in
Dec 18 17:25:12 polkit-1 systemd[1]: apache2.service: Control process exited, co
Dec 18 17:25:12 polkit-1 systemd[1]: apache2.service: Failed with result 'exit-c
Dec 18 17:25:12 polkit-1 systemd[1]: Failed to start The Apache HTTP Server.
Dec 18 17:25:59 polkit-1 sshd[12930]: Connection closed by 127.0.0.1 port 50260
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tony		</title>
		<link>https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-1402148</link>

		<dc:creator><![CDATA[Tony]]></dc:creator>
		<pubDate>Fri, 18 Dec 2020 00:30:32 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27785#comment-1402148</guid>

					<description><![CDATA[Install by compilation is not the Debian way. You have unmaintained, not updateable software this way, basically a hack.

You teach the others to do this wrong way, which if a vulnerability is found will leave them unpatched if they rely on &lt;strong&gt;apt-get&lt;/strong&gt; for updates.]]></description>
			<content:encoded><![CDATA[<p>Install by compilation is not the Debian way. You have unmaintained, not updateable software this way, basically a hack.</p>
<p>You teach the others to do this wrong way, which if a vulnerability is found will leave them unpatched if they rely on <strong>apt-get</strong> for updates.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ngs		</title>
		<link>https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-1379619</link>

		<dc:creator><![CDATA[ngs]]></dc:creator>
		<pubDate>Fri, 23 Oct 2020 12:02:22 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27785#comment-1379619</guid>

					<description><![CDATA[Please stop compiling source code if there is a ready-made nagios4 package, it makes things needlessly overcomplicated!]]></description>
			<content:encoded><![CDATA[<p>Please stop compiling source code if there is a ready-made nagios4 package, it makes things needlessly overcomplicated!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Thevarx		</title>
		<link>https://www.tecmint.com/install-nagios-core-in-ubuntu-and-debian/comment-page-1/#comment-995997</link>

		<dc:creator><![CDATA[Thevarx]]></dc:creator>
		<pubDate>Thu, 24 May 2018 05:38:37 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27785#comment-995997</guid>

					<description><![CDATA[A simple script to install Nagios Monitoring Tool on Ubuntu and Debian systems.
&lt;pre&gt;
#!/bin/sh

apt update
apt-get install wget build-essential apache2 php apache2 php apache2-mod-php7.0 php-gd libgd-dev sendmail unzip

useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagios, nagcmd www-data

cd ~
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.2.0.tar.gz
tar -zxvf nagios-4.2.0.tar.gz
cd nagios-4.2.0
./configure --with-nagios-group=nagios --with-command-group=nagcmd
make all
make install
make install-commandmode
make install-init
make install-config
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/site-available/nagios.conf

cp -R contrib//eventhandlers/ /usr/local/nagios/libexew
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers

cd ~
wget https://nagios-plugins.org/download/nagios-plugins-2.1.2.tar.gz
tar -zxvf nagios-plugins-2.1.2.tar.gz
cd nagios-plugins-2.1.2

./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make
make install
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>A simple script to install Nagios Monitoring Tool on Ubuntu and Debian systems.</p>
<pre>
#!/bin/sh

apt update
apt-get install wget build-essential apache2 php apache2 php apache2-mod-php7.0 php-gd libgd-dev sendmail unzip

useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagios, nagcmd www-data

cd ~
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.2.0.tar.gz
tar -zxvf nagios-4.2.0.tar.gz
cd nagios-4.2.0
./configure --with-nagios-group=nagios --with-command-group=nagcmd
make all
make install
make install-commandmode
make install-init
make install-config
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/site-available/nagios.conf

cp -R contrib//eventhandlers/ /usr/local/nagios/libexew
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers

cd ~
wget https://nagios-plugins.org/download/nagios-plugins-2.1.2.tar.gz
tar -zxvf nagios-plugins-2.1.2.tar.gz
cd nagios-plugins-2.1.2

./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make
make install
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
