[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:software:install_nagios_on_slackware [2013/06/03 12:22 (UTC)] lexus45howtos:software:install_nagios_on_slackware [2019/02/21 11:40 (UTC)] (current) – removed markand
Line 1: Line 1:
-====== Install Nagios On Slackware ====== 
  
-(Slackware 13.37) \\ 
- 
-  - Create the nagios group and user: <code> 
-# groupadd -g 213 nagios 
-# useradd -u 213 -d /dev/null -s /bin/false -g nagios nagios 
-</code> 
-   - Add the 'apache' user to the 'nagios' group, so that it can write to the ''/var/nagios/rw'' directory ('a' option prevents the user to be removed from other groups, the member of which he is already): <code> 
-# usermod -aG nagios apache 
-</code> 
-  - Install the Nagios::Plugin Perl module: <code> 
-     cpan -i Nagios::Plugin 
-</code> 
-  - Use [[http://sbopkg.org/|sbopkg]] or install the individual packages using scripts from [[http://slackbuilds.org/|SlackBuilds.org]], and install the following in this order: 
-    * RRDTool 
-    * nagios (currently, the package which can be built using a [[http://slackbuilds.org/network/nagios/ | SlackBuilds.org script]] is nagios-3.3.1) 
-    * nagios-plugin package 
-    * nagios-graphing 
-  - Edit ''/etc/nagios/nagios.conf'' and turn off the logging: <code> 
-CHANGE: 
-     use_syslog=1 
-TO: 
-     use_syslog=0 
-CHANGE: 
-     log_notifications=1 
-TO: 
-     log_notification=0 
-</code> 
-  - Edit ''/etc/httpd/extra/nagios.conf'', after the ''<Directory "/var/www/htdocs/nagios">'' line: <code> 
-CHANGE: 
-     Options None 
-TO: 
-     Options FollowSymLinks 
-</code> 
-  - Edit ''/etc/httpd/http.conf'' <code> 
-CHANGE: 
-     <IfModule dir_module> 
-     DirectoryIndex index.html 
-     </IfModule> 
-TO: 
-     <IfModule dir_module> 
-     DirectoryIndex index.html index.php 
-     </IfModule> 
-CHANGE: 
-     # Uncomment the following line to enable PHP: 
-     # 
-     # Include /etc/httpd/mod_php.conf 
-TO: 
-     # Uncomment the following line to enable PHP: 
-     # 
-     Include /etc/httpd/mod_php.conf 
-ADD: 
-     Include /etc/httpd/extra/nagios.conf 
-</code> 
-  - Make sure apache starts at boot and start/restart apache: <code> 
-# chmod 755 /etc/rc.d/rc.httpd 
-# /etc/rc.d/rc.httpd restart 
-</code> 
-  - Set the password for //nagiosadmin// : <code> 
-# htpasswd -c /etc/nagios/htpasswd.users nagiosadmin 
-</code> 
-  - (Not sure if this is necessary but, leaving it in until I can test) \\ Make sure nagios starts at boot and start/restart nagios: 
-    - Edit ''/etc/rc.d/rc.local'' and add: <code> 
-# Start nagios: 
-if [ -x /etc/rc.d/rc.nagios ]; then 
-  echo "Starting nagios..." 
-  /etc/rc.d/rc.nagios start 
-fi 
-</code> 
-    - Edit ''/etc/rc.d/rc.local_shutdown'' (you may have to create this file if it does not exist, and make it executable) and add: <code> 
-# Stop nagios: 
-if [ -x /etc/rc.d/rc.nagios ]; then 
-  echo "Stopping nagios..." 
-  /etc/rc.d/rc.nagios stop 
-fi 
-</code> 
-  - Make rc.nagios executable: <code> 
-# chmod 755 /etc/rc.d/rc.nagios 
-</code> 
-  - Start nagios: <code> 
-# /etc/rc.d/rc.nagios restart 
-</code> 
- 
-====== Check That Nagios Is Running ====== 
- 
-Goto **http://YOUR_MACHINE/nagios/** and you should see Nagios working. 
- 
-====== Add Users ====== 
- 
-  - Run the ''htpasswd'' command for each user: <code> 
-# htpasswd -c /etc/nagios/htpasswd.users bob 
-# htpasswd -c /etc/nagios/htpasswd.users sue 
-</code> 
-  - Edit ''/etc/nagios/cgi.cfg'' and add the user(s) too: <code> 
-authorized_for_all_services=nagiosadmin,bob,sue 
-authorized_for_all_hosts=nagiosadmin,bob,sue 
-</code> (or add "''*''" to allow all authenticated users) 
- 
- 
-====== Sources ====== 
- 
-<!-- If you are copying information from another source, then specify that source --> 
-<!-- * Original source: [[http://some.website.org/some/page.html]] --> 
-<!-- Authors are allowed to give credit to themselves! --> 
- * Originally written by [[wiki:user:arfon | arfon]] 
-<!-- * Contributions by [[wiki:user:yyy | User Y]] --> 
- 
-<!-- Please do not modify anything below, except adding new tags.--> 
-<!-- You must remove the tag-word "template" below before saving your new page --> 
-{{tag>howtos software nagios network_monitoring author_arfon}} 
 howtos:software:install_nagios_on_slackware ()