Google Plus

How to install Nagios in ubuntu 9.x and 10.x

Written by Mel Kham on . Posted in Linux tutorials

Nagios is a popular open source computer system and network monitoring software application. It watches hosts and services, alerting users when things go wrong and again when they get better.

 

Nagios was originally designed to run under Linux, but also runs well on other Unix variants. It is free software, licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Before to start, if you want to install Nagios in fedora ,RHEL or centos please read our previous tutorial

 

I- Install Apache, PHP  and  some  needed  libraries

First we will install apache , php and needed librairies

  • Install some necessary compilers using the command :
sudo  apt-get install build-essential

  • Install GD Libraries using the command :
sudo apt-get install libgd2-xpm-dev

  • Install Apache2
sudo apt-get install apache2
 
  • Install PHP for  apache 2 :
sudo apt-get install php5-common php5 libapache2-mod-php5

Now configure Apache to use PHP:

Open apache2.conf file

sudo vi   /etc/apache2/apache2.conf 

and  add this line

DirectoryIndex index.html index.php index.cgi

Now  restart  your   apache

sudo  /etc/init.d/apache2   restart

II- Install and Configure Nagios :

Now  lets  install  and  configure   Nagios

First download  the latest  core  nagios  from nagios  website and before  installing create a user to run the service and a group to run external commands:

 * sudo useradd -m nagios
 * sudo passwd nagios
 * sudo groupadd nagcmd
 * sudo usermod -a -G nagcmd nagios
 * sudo usermod -a -G nagcmd www-data

Now install the Nagios tarballs that were downloaded previously:

tar -zxvf nagios-3.2.1.tar.gz 

Then cd the the extracted folder and install

cd nagios-3.2.1
sudo ./configure --with-command-group=nagcmd
sudo make all
sudo make install
sudo make install-init
sudo make install-config
sudo make install-commandmode
sudo make install-webconf
 

Add a user for the Nagios interface:

sudo  mkdir  /usr/local/nagios/etc

Create a new password

sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

Output

New password:
Re-type new password:
pirat9@pirat9-desktop:~/Downloads/nagios-3.2.1$

Now add  Nagios directory to apache, first open apache.conf :

sudo vi /etc/apache2/apache.conf

and  add these lines :

ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin

Options ExecCGI

AllowOverride None

Order allow,deny

Allow from all

AuthType Basic

AuthUserFile /usr/local/nagios/etc/htpasswd.users

Require valid-user

Alias /nagios /usr/local/nagios/share

Options None

AllowOverride None

Order allow,deny

Allow from all

AuthType Basic

AuthUserFile /usr/local/nagios/etc/htpasswd.users

Require valid-user

save and exit then restart apache2


sudo  /etc/init.d/apache2 restart

Install Nagios Plugins :

tar -zxvf  nagios-plugins-1.4.14.tar.gz 
 
  • Cd the extracted folder and install the plugins
 cd nagios-plugins-1.4.14
 sudo ./configure --with-nagios-user=nagios --with-nagios-group=nagios
sudo make 
sudo make install
  • Create a link to start the service:

sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
 
ls -altr

Output

total 20

-rw-r–r–   1 root root   447 2009-09-07 20:58 README

lrwxrwxrwx   1 root root    20 2010-04-04 22:10 S70x11-common -> ../init.d/x11-common

lrwxrwxrwx   1 root root    24 2010-04-04 22:10 S70screen-cleanup -> ../init.d/screen-cleanup

lrwxrwxrwx   1 root root    17 2010-04-04 22:10 S55urandom -> ../init.d/urandom

lrwxrwxrwx   1 root root    23 2010-04-04 22:10 S49console-setup -> ../init.d/console-setup

lrwxrwxrwx   1 root root    18 2010-04-04 22:10 S37apparmor -> ../init.d/apparmor

lrwxrwxrwx   1 root root    16 2010-04-04 22:10 S25brltty -> ../init.d/brltty

lrwxrwxrwx   1 root root    21 2010-04-04 22:10 S13pcmciautils -> ../init.d/pcmciautils

lrwxrwxrwx   1 root root    24 2010-04-04 22:10 S06keyboard-setup -> ../init.d/keyboard-setup

drwxr-xr-x 132 root root 12288 2010-04-15 01:45 ..

lrwxrwxrwx   1 root root    18 2010-04-15 02:09 S99nagios -> /etc/init.d/nagios

drwxr-xr-x   2 root root  4096 2010-04-15 02:09 .

 

Please before running the configuration check and copy all config files from your nagios directory to /usr/local/nagios/etc/objects/ and /usr/local/nagios/etc/

like

config file ‘/usr/local/nagios/etc/objects/commands.cfg’…

object config file ‘/usr/local/nagios/etc/objects/contacts.cfg’…

object config file ‘/usr/local/nagios/etc/objects/timeperiods.cfg’…

object config file ‘/usr/local/nagios/etc/objects/templates.cfg’…

object config file ‘/usr/local/nagios/etc/objects/localhost.cfg’…


  • Verify the config:

sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Output :

Nagios Core 3.2.1

Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors

Copyright (c) 1999-2009 Ethan Galstad

Last Modified: 03-09-2010

License: GPL

Website: http://www.nagios.org

Reading configuration data…

Read main config file okay…

Processing object config file ‘/usr/local/nagios/etc/objects/commands.cfg’…

Processing object config file ‘/usr/local/nagios/etc/objects/contacts.cfg’…

Processing object config file ‘/usr/local/nagios/etc/objects/timeperiods.cfg’…

Processing object config file ‘/usr/local/nagios/etc/objects/templates.cfg’…

Processing object config file ‘/usr/local/nagios/etc/objects/localhost.cfg’…

Read object config files okay…

Running pre-flight check on configuration data…

Checking services…

Checked 8 services.

Checking hosts…

Checked 1 hosts.

Checking host groups…

Checked 1 host groups.

Checking service groups…

Checked 0 service groups.

Checking contacts…

Checked 1 contacts.

Checking contact groups…

Checked 1 contact groups.

Checking service escalations…

Checked 0 service escalations.

Checking service dependencies…

Checked 0 service dependencies.

Checking host escalations…

Checked 0 host escalations.

Checking host dependencies…

Checked 0 host dependencies.

Checking commands…

Checked 24 commands.

Checking time periods…

Checked 5 time periods.

Checking for circular paths between hosts…

Checking for circular host and service dependencies…

Checking global event handlers…

Checking obsessive compulsive processor commands…

Checking misc settings…

Total Warnings: 0

Total Errors:   0

Things look okay – No serious problems were detected during the pre-flight check

pirat9@pirat9-desktop:~/Downloads/nagios-3.2.1$

  • Now start Nagios:

sudo /etc/init.d/nagios start

 

  • Now you are ready to use Nagios, open your browser and type :
   http://hostname/nagios or http://ip/nagios  



{loadposition user9}

Related Articles By Tags:

{loadposition user1}

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • Rudiger Wolf

    Hi

    When I do “ls -altr” as per instructions I do not get dir listing you do. Can you please calrify what dir I should be in at that point in time?

    Thaanks
    Rudi

  • pirat9

    This just listing of /etc/rcS.d/S99nagios.
    its not verry important

  • Lynn

    Hi, I followed this how-to exactly, and I cant get nagios to start. I can get to the web interface, but when I click on anything it gives me an error stating:
    Error: Could not read host and service status information!

    When I checked the nagios logs I see:
    [1272750947] Nagios 3.2.1 starting… (PID=28967)
    [1272750947] Local time is Sat May 01 17:55:47 EDT 2010
    [1272750947] LOG VERSION: 2.0
    [1272750947] Finished daemonizing… (New PID=28970)
    [1272750947] Caught SIGSEGV, shutting down…

    What can I try now to get nagios starting?

  • coldsystem

    Lynn
    what is the output of your
    sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

  • Pirat9

    Please post your problem on the forum with screen shots . and we will solve this together.
    Thanks

  • Corzo

    Lynn, did you make it work? im having the same problem…

  • Joe

    so how would I go about unistalling? Is there a straightforward way to remove nagios?

  • pirat9

    rm -rf /usr/local/nagios /etc/init.d/nagios

  • taivna

    hi sir. Your advice is best.

    but my apache failed.

    II- Install and Configure Nagios : last row

    Problem: AllowOverride not allowed here

    PLS HELP ME!!!

    • Fefo

      hi. i wrote the same witch is in the document. but it showed the following error:

      * Restarting web server apache2 Syntax error on line 240 of /etc/apache2/apache2.conf:
      AllowOverride not allowed here

      what can i do?
      thx

      • http://RE:AllowOverridenotallowedhere Ryan

        I had the same problem but it looks like you made the changes in apache2.conf and the instructions actually say apache.conf without the 2.

        I may have done it wrong but Nagios is running now.

  • taivna

    my nagios fine working but apache have problem.

    AllowOverride not allowed her

  • taivna

    Oh sorry it is my fault. I add some changes apache2.conf. it was wrong.

    kk sorry Sir.

  • pirat9

    you are welcome :)

  • tomw

    Hi, I’d also like to install nagvis to Ubuntu 9.10…do you have or know of a similar step by step guide for this that follows on from installing nagios(as per above)?

  • Mad

    Thanks for your efforts but I had to stop in the middle of getting complete.

    You described:
    sudo vi /etc/apache2/apache.conf
    but there is’nt such a file, did you mean
    sudo vi /etc/apache2/apache2.conf?

    If so, (I used it instead) I got errormessages that AllowOverride None ist not allowed than I restart apache service
    Also I got a warning message, that the SriptAlias directive will probably never match because it overlaps an earlier SriptAlias.

    Any help is appreciated very much an urgendly needed.

    Best regards
    Mad

  • Jim

    Worked perfectly for me. Thanks for the help!

  • Anonymous

    Hi,

    Great job !!! It works very well.

    However I got a question about one of your steps that isn’t very clear.

    Where you wrote:
    “Please before running the configuration check and copy all config files from your nagios directory to /usr/local/nagios/etc/objects/ and /usr/local/nagios/etc/”

    FROM what directory are you talking about?
    Because you haven’t listed that directory and thus I have no idea which directory you are writing about.

    Please advise.
    Thanks and Cheers!

  • khaled

    how can add user in nagios

  • khaled

    how can add user in nagios

  • krushna

    How to configure nagios in ubuntu 10.04.

  • pirat9

    How to add user is :
    sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

    or

    sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users userX

  • pirat9

    krushna,

    check your config,
    sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

  • rm

    Below are all the commands – to cut and paste
    to a file

    note: Nagios dir has both tar files
    note: apache2 conf lines at end of this list

    Robert

    ================

    sudo apt-get install apache2
    sudo apt-get install libapache2-mod-php5
    sudo apt-get install build-essential
    sudo apt-get install libgd2-xpm-dev
    sudo apt-get install php5-common php5 libapache2-mod-php5
    sudo apt-get install vim
    sudo vim /etc/apache2/apache2.conf
    sudo useradd -m nagios
    sudo passwd nagios
    sudo groupadd nagcmd
    sudo usermod -a -G nagcmd
    sudo groupadd nagcmd
    sudo usermod -a -G nagcmd nagios
    sudo usermod -a -G nagcmd www-data

    cd Nagios/
    ls
    tar -xvf nagios-3.2.1.tar.gz
    cd nagios-3.2.1
    sudo ./configure -with-command-group=nagcmd
    sudo make all
    sudo make install
    sudo make install-init
    sudo make install-config
    sudo make install-commandmode
    sudo make install-webconf
    sudo mkdir /usr/local/nagios/etc
    sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
    sudo /etc/init.d/apache2 restart

    cd Nagios/
    tar -xvf nagios-plugins-1.4.14.tar.gz
    cd nagios-plugins-1.4.14
    sudo ./configure –withnagios-user=nagios –with-group=nagios
    sudo ./configure –with-nagios-user=nagios –with-group=nagios
    sudo make
    sudo make install
    sudo -ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
    sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
    sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
    sudo /etc/init.d/nagios start
    sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
    sudo /etc/init.d/apache2 restart

    ## ADD the following to the end of /etc/apache2/apache2.conf

    # added for nagios
    DirectoryIndex index.html index.php index.cgi

    ScriptAlias /nagios/cgi-bin/ “/usr/local/nagios/sbin”

    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    Alias /nagios/ “/usr/local/nagios/share”

    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    ## the end of /etc/apache2/apache2.conf

  • rm

    Fixed typo “withnagos”
    previous post cut off end

    Robert

    =====

    cd Nagios/
    tar -xvf nagios-plugins-1.4.14.tar.gz
    cd nagios-plugins-1.4.14
    sudo ./configure –with-nagios-user=nagios –with-group=nagios
    sudo make
    sudo make install
    sudo -ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
    sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
    sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
    sudo /etc/init.d/nagios start
    sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
    sudo /etc/init.d/apache2 restart

    ## ADD the following to the end of /etc/apache2/apache2.conf

    # added for nagios
    DirectoryIndex index.html index.php index.cgi

    ScriptAlias /nagios/cgi-bin/ “/usr/local/nagios/sbin”

    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    Alias /nagios/ “/usr/local/nagios/share”

    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    ## the end of /etc/apache2/apache2.conf

  • rm

    not all charaters are cut and paste see correction below:

    Robert

    =====

    the apache2.conf

    ScriptAlias /nagios/cgi-bin/ “/usr/local/nagios/sbin”

    greater-then Directory less-then

    options go here

    greater-then slash Directory less-then

    Alias /nagios/ “/usr/local/nagios/share”

    greater-then Directory less-then

    options go here

    greater-then slash Directory less-then

  • Saroj, Ox

    Hi there,

    I am getting ‘Syntax error on line 243 of /etc/apache2/apache2.conf: AllowOverride not allowed here
    error message, could someone please let me know what is causing this issue?

    Many thanks,
    Saroj
    Ox

  • SysAdmin74

    Thanks for the awesome instructions! It worked perfectly!

  • JM

    Call me apache deficient but I can’t seem to get one thing working. I can’t seem to view the system from anywhere outside of the VLAN that the server resides in. I know this has to be a simple solution but I’ve been all over with no luck.

  • Mart

    The information below is already in /etc/apache2/conf.d/nagios.conf causing the error – "Syntax error on line 243 of /etc/apache2/apache2.conf: AllowOverride not allowed here" I left it in the nagios.conf file and everything appears to be working.

    ———# added for nagios
    DirectoryIndex index.html index.php index.cgi

    ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin"

    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    Alias /nagios/ "/usr/local/nagios/share"

    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    ## the end of /etc/apache2/apache2.conf
    ——-

  • http://www.unixmen.com pirat9

    JM – Works great from my desktop

    try to desactivate selinux and adjust Iptables and will be fine

  • nnamdi

    nice how too. work well for me but i want to know can i monitor a windows network with this app. cos i was looking for something like OSmonitor for windows can it do something like that. i use ubuntu myself

  • Carlos

    Just to say it works like a charm, on 10.04, i tried first 3-4 times on 10.10 but got authentication errors, or folders were not created and so on, thats for beta testing!
    Anyway, it works, and now, whats next??

  • Pirat9

    NEXt is to add your windows and other machines to nagios server. if you need to know how ?just consult other tutorial how to add a client to nagios server

  • Carlos

    Im setting up Nagios to monitor our SQL servers, the vpns lan to lan and the server replication. Do you know of any link you could recomend?
    Once i finish with that i guess i would have had enough flight hours to be able to get more funtionality but till then i need some help here.
    Thank you.

  • Pirat9

    To check mysql with the nagios plugin check_mysql_query,
    add the following line in the nrpe.cfg file :
    command[check_mysqld]=/usr/lib/nagios/plugins/check_mysql_query -q ‘select 1+2′ -u nagiosCheck -p ‘password’ -w 3:3 -c 3:3

  • Carlos

    To check the basic vital stats of ms boxes you can follow this link (superb, i tried and works)
    http://www.thegeekstuff.com/2008/07/how-to-monitor-remote-windows-machine-using-nagios-on-linux/
    Once you do that, it will ping the server (you can asume with that that the vpn is up), and will give you basic info, uptime, cpu-ram loads, etc
    Still looking to know how to monitor replication status for SQL servers (we moved from mysql for replication purposes)

  • Matt

    Just wantted to say that the article works great! Thank you for taking the time to post

  • jiji

    plz can you help me i can’t install the Nagios tarballs ,i downloaded the latest core nagios
    nagios-3.2.2.tar.gz but when i taped this line:
    tar -zxvf nagios-3.2.2.tar.gz this lines appears to me:tar: nagios-3.2.2.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors

    i tryed so many times but the same msg appear plzzzz help :cry:

  • pirat9
    • jiji

      plz help i just started my project and i should finished soon i think that the problem is with tar because the file that i downloaded is ok and exist i don’t know ,can i have ur email or msn plz

  • jiji

    pirat9 i did exactely what you told me but look
    jeny@ubuntu:~$ wget http://downloads.sourceforge.net/project/nagios/ nagios-3.x/nagios-3.2.2/nagios-3.2.2.tar.gz? r=http%3A%2F%2Fwww.nagios.org%2Fdownload%2Fcore% 2Fthanks%2F&ts=1285143357&use_mirror=netcologne; tar -zxvf nagios-3.2.2.tar.gz
    –2010-09-22 05:35:24– http://downloads.sourceforge.net/project/nagios/
    Resolving downloads.sourceforge.net… 216.34.181.59
    Connecting to downloads.sourceforge.net|216.34.181.59|:80… [1] 4049
    [2] 4050
    tar: nagios-3.2.2.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    [2]+ Done ts=1285143357
    jeny@ubuntu:~$ connected.
    HTTP request sent, awaiting response… 404 Not Found
    2010-09-22 05:35:25 ERROR 404: Not Found.

    –2010-09-22 05:35:25– http://nagios-3.x/nagios-3.2.2/nagios-3.2.2.tar.gz?
    Resolving nagios-3.x… failed: Name or service not known.
    wget: unable to resolve host address `nagios-3.x’
    –2010-09-22 05:35:25– http://r=http://www.nagios.org/download/core%25/
    Resolving r=http://www.nagios.org/download/core%… failed: Name or service not known.
    wget: unable to resolve host address `r=http://www.nagios.org/download/core%’
    –2010-09-22 05:35:25– http://2fthanks//
    Resolving 2fthanks/… failed: Name or service not known.
    wget: unable to resolve host address `2fthanks/’

    …..i don t know what s the problem its work well for the other what s wrong with :(
    can i have ur email or msn or skype plz

  • jiji

    [quote=jiji]plz help i just started my project and i should finish it soon i think that the problem is with tar because the file that i downloaded is ok and exist i don’t know ,can i have ur email or msn plz[/quote]

    • lim

      i got the same problem any one can how?

      nagios-3.2.2.tar.gz but when i taped this line:
      tar -zxvf nagios-3.2.2.tar.gz this lines appears to me:tar: nagios-3.2.2.tar.gz: Cannot open: No such file or directory
      tar: Error is not recoverable: exiting now
      tar: Child returned status 2
      tar: Error exit delayed from previous errors

  • powershell

    please can some one help me?
    i’m getting error when doing "sudo mkdir /usr/local/nagios/etc" the error is mkdir: canot create directory ‘/usr/local/nagios/etc’: no such file or directory

  • pirat9

    powershell

    try with option -p

    sudo mkdir -p /usr/local/nagios/etc

  • jiji

    worked perfectly for me thx a lot pirat9 ur the best,

  • Jose Luis MArtinez

    this tutorial has some flaws, but with little changes worked very good for me.
    Thanks a lot

  • likith

    can anyone plz help me too uninstall nagios from cent os

    plz mail me at likith_jogi@yahoo.com

    regards,
    Likith

  • pirat9

    likith
    to uninstall nagios remove
    /usr/share/nagios/*

    and remove the link alias nagios from httpd.conf config

    Done.

  • Philip

    I have been following these instructions to the T, but I keep getting a Syntax error after editing apache2.conf saying "AllowOverride not allwed here".
    I am not seeing a definitive answer on how to correct this error and I am unable to restart apache because of the error.
    Can someone explain how to correct this?

    Thanks

    • motzilla

      pirat9, great writeup, thanks for taking the time to do that. I however am getting the same error as several on the page regarding

      "AllowOverride not allwed here".

      and

      The ScriptAlias directive in /etc/apache2/apache2.conf at line 238 will probably never match because it overlaps an earlier ScriptAlias.

      I’ve googled both but am coming up empty handed. Do you have suggestions on getting these errors resolved?

      thx in advance.

  • Motzilla

    I was having the error mentioned in my above post but just figured it out.

    I had to include the to the alias syntax, see below for anyone else having the issue.

    ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    Alias /nagios "/usr/local/nagios/share"

    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    Require valid-user

    • Motzilla

      ok nevermind, i see what’s happening now. It seems the comments plugin here is parsing out the key syntax from peoples posts…

      i took a screenshot and have posted it here:
      http://i553.photobucket.com/albums/jj375/motzilla/random/ScreenShot043.png

      • http://enteryoursiteURL... Smakodak

        Hi Motzilla
        The picture is gone. Is there any possibillity that you can post it again.

        Thanks Anders

        • mency

          It is necessary to bound the commands with "directory" tags to resolve the "AllowOverride not allowed here" errors

          I have just found out the snippet required at
          http://pastebin.com/eHSWLarZ

  • mat

    Tnx for the writeup. But as many before me, i 2 have a following problem with apache:

    "AllowOverride not allwed here".

    and

    The ScriptAlias directive in /etc/apache2/apache2.conf at line 238 will probably never match because it overlaps an earlier ScriptAlias.

    Thank u in advance!

  • lim

    nagios-3.2.2.tar.gz but when i taped this line:
    tar -zxvf nagios-3.2.2.tar.gz this lines appears to me:tar: nagios-3.2.2.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors

  • http://www.aloser.rs tepisi

    Great post! Does anyone know how to change home page on ubuntu 10.04?

  • Manoj

    Hi,
    Awesome steps to configure Nagios..
    I have installed it on Ubuntu 10.04

    & works Perfectly…

    Thanks for posting this article…

    Regards
    Manoj

  • http://enteryoursiteURL... Amit

    THank you so much for this help.

  • http://www.italic-solution.com/ Yulianto Sidabutar

    These Informations is very usefull and work.. :-)

    Thx for the contributer..

  • Devu

    Hi thank you 4 ur usefull info which i couldnt get any where,
    But my system showling

    "[b]Not Found
    The requested URL /nagios was not found on this server.
    Apache/2.2.16 (Ubuntu) Server at 1.23.199.62 Port 80"[/b]

    please do help to this

  • Anonymous

    Can’t nobody take the liberty to create one global installer for all linux software that can be accepted for all linux based OS. Untill then, how great linux might be as OS, it will be always a minor player in the world.

    • pirat9

      i’m working on one article. how to install nagios in 1 command ?. please stay checking our website about this how to .

  • LostZ

    i Have followed steps and everything is right but when i try to access through web it wont take user and password what could i have done wrong

  • Clistion

    ERROR

    step sudo vi /etc/apache2/apache.conf

    in really:

    the conf file nagios in

    /etc/apache2/conf.d/nagios.conf

    • ana howa ana

      Can be. because with the new nagios config. the conf file will be sent to apache2 conf directory

  • http://enteryoursiteURL... Fafaquelfes

    can any body show me the /etc/apache2/apache2.conf file with the correct pasted change as I don’t really understand when I should place the greater than and the Less than ( >

  • http://enteryoursiteURL... Sintex

    Hi,
    Myself and a few others seem to be having a few issues when trying to install this,

    After I have updated the Apache2.conf file and restart the service I get -
    [warn] The scriptAlias directive in /etc/apache2/apache2.conf at line 241 will probably never match because it overlaps an earlier scriptAlias.
    syntax error on line 224 of /etc/apache2/apache2.conf: AllowOverride not allowed here.

    Any ideas as this is a real blocker might have to rebuild and start again.

  • http://www.bestfinance-blog.com AgnesCarver18

    Houses and cars are quite expensive and not everyone can buy it. Nevertheless, mortgage loans are invented to help different people in such hard situations.

  • http://www.bestfinance-blog.com HessCATHLEEN28

    Various people all over the world receive the credit loans from different creditors, just because it is simple.

  • http://www.bestfinance-blog.com Crawford35Rosemarie

    Set your own life easier take the business loans and all you require.

  • hunhun

    hey i cant edit my apache.conf it is only a read only file and i badly cant add any text on the line..

    can you teach me how to write on that file..

  • http://servertechz.com/?s=nagios maki

    hii

    good article..i completed installing nagios with out any issues with the help of this post..good work..:)

  • Sinto

    Hi All,
    There is a small change in this document while installing nagios-3.3.1 installation.
    After untar the nagios core file you need to execute the below command line. then only it will compile properly.

    ./configure

    sed -i ‘s:for file in includes/rss/*;:for file in includes/rss/*.*;:g’ ./html/Makefile
    sed -i ‘s:for file in includes/rss/extlib/*;:for file in includes/rss/extlib/*.*;:g’ ./html/Makefile

    Source: http://ubuntuforums.org/showthread.php?t=1814086

  • Itsupport

    it is giving error {AllowOverride not allowed here
    Action ‘configtest’ failed.
    The Apache error log may have more information.
       …fail!)

    • Tony

      I was having the same issue, I found that the actual file to edit is referenced here:

       http://nagios.sourceforge.net/docs/nagioscore/3/en/cgisecurity.html

      • Austin

        Am I messing something up? I don’t have an httpd directory. I also tried changing the nagios.conf in conf.d. Any thoughts?

  • Anonymous

    im new for nagios i installed using above document when i hit the url in browser like “localhost/nagios” it comes service temporary unavailable please let me know the solutions

  • Sudhirayrota

    awesome

  • Sudhirayrota

    when installing nsclient++ on windows machine make sure to check all the plugins this will overcome the error of plugins missing and connection refused…hope this helps someone..

  • Ankur Trapasiya

    Excellent guide to install nagios.. Thanks a lot… :-)

  • Morininglightz

    I edit file “apache.conf”
    and add those lines stated in this website..
    from line “ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin” to line “Require valid-user”

    When I try to restart my apache, it show these errors:
    ……/etc/apache2/apache2.conf at line 238 will probably never match because it overlaps an earlier ScriptAlias.
    Syntax error on line 242 of /etc/apache2/apache2.conf:
    AllowOverride not allowed here

    May I know what had gone wrong? I find the content f apache.conf, there is no “Scriptalias” in the file initially. What can I do to add those lines into the file?

  • monaliza

    hi, how delete nagios on ubuntu 10.10, plz heip me, hanks

  • Fmp

    How to resolve this?

    [warn] The ScriptAlias directive in /etc/apache2/apache2.conf at line 232 will probably never match because it overlaps an earlier ScriptAlias.
    Syntax error on line 234 of /etc/apache2/apache2.conf:
    AllowOverride not allowed here
    Action ‘configtest’ failed.
    The Apache error log may have more information.
       …fail!

    • Pirat9

      Please note , that this method is working only for old ubuntu . if you are running thge new ubuntu release. the apache config will not work

      • Fmp

         i was able to fix it with series of google searching, but to track back the procedures i’ve done. Personally, i was not able to follow it :-(
        It’s like just hitting your head against the wall.

  • Guest

    Hello
    simple and clear, good article
    Tks

  • allyourbase

    Then, please remove the “10.x” in the title of the post, as the same error message will occur on a Ubuntu 10.04 server system!

  • Anonymous

    Attention: The file apache.conf in ubuntu 10.04 to forward is /etc/apache2/conf.d/ path and we need modify the following file: nagios.conf. That file contains the information refered to nagios and all the necessary options to make it works, even we don’t need to add lines neither

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Ladi Oyekanmi

|

Could you please assist in step by step on how to install nagios on solaris

Adhraa

|

Greate tutorial :)

pigmej

|

Just one thing:

What about pep8 in your python code ? How can you give ‘tutorials’ on quite popular website, of such a bad quality ?

Amit Rai

|

I just renamed shared.xml and it logged in and created a new shared.xml.

DB Griffin

|

Larry Page is not being completely honest! The manner in which the PRISM program/project works does not need access from company administrators or owners, so called “direct access”; the access to the information is already there. These tech company CEOs take for granted the actual intelligence of most end users of their products. All it takes is a little digging and reading to go from ignorant to informed on these things especially on exactly how the internet works/functions in the U.S.A. I find Larry Page’s remarks just as laughable as Al Gore’s claim to “inventing” the internet/world wide web!

If you, as an end user, are reading this post; I challenge you to research these matters yourself. It really is quite simple with all the “information sites” that exist on the web today ie Wikipedia, & other online encyclopedias that actually list source material, as well as highly respected tech sites and blogs that also list their source material. Be warned: this is only the tip of the iceberg and these tech CEOs know and understand this; they are scrambling in attempt to perform DAMAGE CONTROL to save the company and what little trust thay have left from their products end users/consumers.

Am I a skeptic? I believe someone has to be or needs to be at this point in time! If your not just a little skeptical of the government, tech companies, and the people that are in charge of these agencies and companies; you need to be, even if just a little skeptic. For your own personal protection and security! I know I was a part of this community for over 14 years!

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .