Home | Back

Nagios Install on a Debian 6.0.3

Prerequisites:

We're starting with a running Debian 6.0.3 box fully configured. This particular box is running shorewall in a Three-Interface Firewall configuration. SSH is running on all "networks", and DHCP is running on the local network.

  • Install the nagios3 package and all dependencies
$ sudo aptitude install nagios3

This will install apache web server using a default config from the upstream packager

  • Modify shorewall (or your firewall implementation accordingly) to allow port 80 traffic.
    • We will modify shorewall rule to utilize the HTTP macro included with shorewall
$ sudo vim /etc/shorewall/rules

#############################################################################################################
#ACTION         SOURCE          DEST            PROTO   DEST    SOURCE          ORIGINAL        RATE            USER/   MARK
#                                                       PORT    PORT(S)         DEST            LIMIT           GROUP
#
#       Accept DNS connections from the firewall to the Internet
#
DNS/ACCEPT      $FW             net
#
#
#       Accept SSH connections from the local network to the firewall and DMZ
#
SSH/ACCEPT      loc             $FW
SSH/ACCEPT      loc             dmz
ACCEPT          net             $FW             tcp     443
ACCEPT          net             loc             tcp     443
#
#       Accept web connections to $FW from net (customized macro.HTTP to include port 8080)
HTTP/ACCEPT     net             $FW
HTTP/ACCEPT     $FW             loc
#
#       DMZ DNS access to the Internet

This particular shorewall has been customized to allow port 8080 as well. We will also insure that the firewall can pass traffic to the local network as well. This could be useful if we have situations where a redirect takes place from the external web server to the localhost.

  • Refresh shorewall
$ sudo shorewall refresh

You should now see nagios running at http://domain/nagios3.

 
nagios_install_-_debian_6.0.3.txt · Last modified: 2011/11/22 22:03 by SLUUG Administration
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki