Firefox 16, a treat for developers http://t.co/cnd27CzT
Install Nagios in Opensuse 12.1 from source
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,Also you can check How to install Nagios in ubuntu 9.x and 10. xand How to install nagios3 in LinuxMint debian based.
I- Install Apache, PHP and some needed libraries
- First we will install apache , php and needed librairies
zypper install rrdtool php5 php5-gd php5-zlib apache2-mod_php5 perl-SNMP net-snmp-32bit nmap ncpfs libwavpack1 apache2
- Now add nagios user to the system
sudo useradd -m nagios
- Create a nagios home directory ( is requiered to start nagios)
mkdir -p /home/nagios
- Create password for nagios user
sudo passwd nagios
- Add gorup nagcmd
sudo groupadd nagcmd
sudo groupadd nagios
- Add users nagios to group nagcmd and nagios group
sudo usermod -G nagcmd nagios
II- Install and Configure Nagios :
- Now install the Nagios tarballs that we downloaded previously:
tar -xvf nagios-3.3.1.tar.gz
- Then cd the the extracted folder and install
cd nagios-3.3.1
sudo ./configure -with-command-group=nagcmd
sudo make all
sudo make install
if you get this error
/usr/bin/install: omitting directory `includes/rss/extlib’
/usr/bin/install: omitting directory `includes/rss/htdocs’
/usr/bin/install: omitting directory `includes/rss/scripts’
make[1]: *** [install] Error 1
make[1]: Leaving directory `/media/europa/callisto/nagios___/nagios-3.3.1/nagios/html’
make: *** [install] Error 2
Please solve the issue Like this :
./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
and then
make fullinstall
- This installs the init script in /etc/rc.d
sudo make install-init
- This installs sample config files in /usr/local/nagios/etc
sudo make install-config
- This installs and configures permissions on the directory for holding the external command file
sudo make install-commandmode
ann nagios config to apache
sudo make install-webconf
- Make a webadmin password for nagios admin
htpasswd2 -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Output
New password:
Re-type new password:
Adding password for user nagiosadmin
- Restart your apache server
sudo /etc/init.d/apache2 restart
III-Install Nagios Plugins :
Now we have to install Nagios plugins, first download the file from nagios website, then extract it using the command :
tar -xvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
sudo ./configure --with-user=nagios --with-group=nagcmd
sudo make
sudo make install
- Verify the config:
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Now open your browser
http://host/nagios and login with the nagios admin already created before.
-
-
http://enteryoursiteURL...
-
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Howto- Resolve nosound problem on Ubuntu 13.04 Raring Ringtail,12.10 and Older : Updated 05/04/2013 : One of the common issues facing Ubuntu users after installing or upgrading Ubun...0 comment(s) |
Install and Configure Samba share in Ubuntu 13.04 Raring Ringtail , 12.10, 12.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comment(s) |
Recent Posts
- Secure File from Removal in Linux and Unix
- How to Install Nginx on FreeBSD 9.x
- Create a Launcher in Ubuntu Using Bash
- Scan Your Home Network With Nmap
- Steganography- Hide Your Files Inside An Image in Linux
- Unix/Linux File Recognition. Did You Know?
- Migrate from MySQL to MariaDB in FreeBSD
- Connect Your Android Galaxy Tablet to Ubuntu via USB
- ElementaryOS Beta 1 and 2 Comparison and Review
- Introduction to the Linux Command Line
Recent Comments






















Snake
| #
Wow, great. That’s what i’m waiting for too. I want to make DC with LDAP ( Active Directory alternative) and SAMBA on Ubuntu. :-)
Blawer
| #
Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again
piCool
| #
Great ! we have another another master trick :-)
Yilmaz Ulugtekin
| #
Just delete the space after the slash (/) it will work.
Pat L
| #
I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.