[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.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:install_nagios_on_slackware [2012/09/11 17:30 (UTC)] – CREATED arfon | howtos:install_nagios_on_slackware [2012/09/12 13:41 (UTC)] – [Install Nagios On Slackware] 11 & 12 shouldn't have been III and IV arfon | ||
---|---|---|---|
Line 3: | Line 3: | ||
(Slackware 13.37) \\ | (Slackware 13.37) \\ | ||
- | 1) Create the nagios group and user- | + | - Create the nagios group and user: < |
- | | + | # groupadd -g 213 nagios |
- | | + | # useradd -u 213 -d /dev/null -s /bin/false -g nagios nagios |
- | + | </ | |
- | 1a) Add the ' | + | - Add the ' |
- | | + | # usermod -G nagios apache |
- | + | </ | |
- | 2) Install the Nagios:: | + | |
cpan -i Nagios:: | cpan -i Nagios:: | ||
- | + | </ | |
- | + | | |
- | 3) Use sbopkg and install the following in this order: | + | * RRDTool |
- | + | * nagios (currently, the package | |
- | | + | * nagios-plugin package |
- | * nagios (currently, the package is nagios-3.3.1.i486-1_SBo) | + | * nagios-graphing |
- | * nagios-plugin package | + | |
- | * nagios-graphing | + | CHANGE: |
- | + | use_syslog=1 | |
- | 3) Edit / | + | TO: |
- | | + | use_syslog=0 |
- | CHANGE: use_syslog=1 TO: use_syslog=0 | + | CHANGE: |
- | CHANGE: log_notifications=1 TO: | + | log_notifications=1 |
- | + | TO: | |
- | 4) Edit / | + | log_notification=0 |
- | | + | </ |
- | + | | |
- | 5) Edit / | + | CHANGE: |
- | | + | Options None |
+ | TO: | ||
+ | Options FollowSymLinks | ||
+ | </ | ||
+ | | ||
+ | CHANGE: | ||
< | < | ||
| | ||
</ | </ | ||
- | + | TO: | |
- | TO: | + | |
< | < | ||
| | ||
</ | </ | ||
- | + | CHANGE: | |
- | CHANGE: | + | |
# Uncomment the following line to enable PHP: | # Uncomment the following line to enable PHP: | ||
# | # | ||
# Include / | # Include / | ||
- | + | TO: | |
- | TO: | + | |
# Uncomment the following line to enable PHP: | # Uncomment the following line to enable PHP: | ||
# | # | ||
| | ||
- | + | ADD: | |
- | ADD: | + | |
| | ||
+ | </ | ||
+ | - Make sure apache starts at boot and start/ | ||
+ | # chmod 755 / | ||
+ | # / | ||
+ | </ | ||
+ | - Set the password for // | ||
+ | # htpasswd -c / | ||
+ | </ | ||
+ | - (Not sure if this is necessary but, leaving it in until I can test) \\ Make sure nagios starts at boot and start/ | ||
+ | - Edit ''/ | ||
+ | # Start nagios: | ||
+ | if [ -x / | ||
+ | echo " | ||
+ | / | ||
+ | fi | ||
+ | </ | ||
+ | - Edit ''/ | ||
+ | # Stop nagios: | ||
+ | if [ -x / | ||
+ | echo " | ||
+ | / | ||
+ | fi | ||
+ | </ | ||
+ | - Make rc.nagios executable: < | ||
+ | # chmod 755 / | ||
+ | </ | ||
+ | - Start nagios: < | ||
+ | # / | ||
+ | </ | ||
- | 6) Make sure apache starts at boot and start/ | + | ====== Check That Nagios Is Running ====== |
- | chmod 755 / | + | |
- | / | + | |
- | 7) Set the password for //nagiosadmin// | + | Goto **http://YOUR_MACHINE/nagios/** and you should see Nagios working. |
- | | + | |
- | 8) (Not sure if this is necessary but, leaving it in until I can test) Make sure nagios starts at boot and start/ | + | ====== Add Users ====== |
- | edit / | + | |
- | # Start nagios: | + | |
- | if [ -x / | + | |
- | echo " | + | |
- | / | + | |
- | fi | + | |
- | # Stop nagios: | + | |
- | if [ -x / | + | |
- | echo " | + | |
- | / | + | |
- | fi | + | |
- | make rc.nagios executable: | + | - Run the '' |
- | chmod 755 /etc/rc.d/rc.nagios | + | # htpasswd -c /etc/nagios/ |
+ | # htpasswd -c /etc/ | ||
+ | </ | ||
+ | - Edit ''/ | ||
+ | authorized_for_all_services=nagiosadmin, | ||
+ | authorized_for_all_hosts=nagiosadmin, | ||
+ | </ | ||
- | Start nagios: | ||
- | / | ||
- | ====== | + | ====== |
- | Goto **http:// | + | |
- | == Add Users == | ||
- | 1) Run the htpasswd command for each user- | ||
- | | ||
- | |||
- | | ||
- | |||
- | 2) Edit / | ||
- | | ||
- | | ||
- | |||
- | (or * for all authenticated users) | ||
- | |||
- | |||
- | ====== Sources ====== | ||
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> | ||
<!-- * Original source: [[http:// | <!-- * Original source: [[http:// |