Nsca version 2.7.2 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 2.7.2

      View the most recent changes for the nsca port at: nsca.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for nsca.
      The raw portfile for nsca 2.7.2 is located here:
      http://nsca.darwinports.com/dports/net/nsca/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/nsca


      The nsca Portfile 30627 2007-11-01 17:04:19Z markd macports.org $

      PortSystem 1.0

      Name: nsca
      Version: 2.7.2
      Category: net
      Maintainers: markd
      Description: Nagios Service Check Acceptor
      Long Description: The NSCA addon is designed to accept passive host and service check results from clients that use the send_nsca utility (also included in this package) and pass them along to the Nagios process by using the external command interface.

      Homepage: http://nagios.org
      Master Sites: sourceforge:nagios
      Platform: darwin
      Checksums: md5 33a98e7975f633a9489d7a8938ed6131

      depends_build port:libmcrypt

      Patch Files: patch-init-script.in

      configure.args --mandir=${prefix}/share/man --with-nsca-user=nagios --with-nsca-grp=nagios --libexecdir=${prefix}/libexec/nagios --bindir=${prefix}/sbin --sysconfdir=${prefix}/etc/${name}

      startupitem.create yes
      startupitem.start "${prefix}/share/${name}/init-script start"
      startupitem.stop "${prefix}/share/${name}/init-script stop"

      pre-destroot {
      adduser nagios
      addgroup nagios

      reinplace "s|/var/lock/subsys/nsca|${prefix}/var/run/nsca.lock|g" "${worksrcpath}/init-script.in"
      }

      destroot {
      xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
      xinstall -d -m 755 ${destroot}${prefix}/share/${name}
      xinstall -d -m 755 ${destroot}${prefix}/sbin
      xinstall -m 755 ${worksrcpath}/src/nsca ${destroot}${prefix}/sbin/nsca
      xinstall -m 755 ${worksrcpath}/src/send_nsca ${destroot}${prefix}/sbin/send_nsca
      xinstall -m 755 ${worksrcpath}/sample-config/nsca.cfg ${destroot}${prefix}/etc/${name}/nsca.cfg.sample
      xinstall -m 755 ${worksrcpath}/sample-config/send_nsca.cfg ${destroot}${prefix}/etc/${name}/send_nsca.cfg.sample

      xinstall -m 755 ${worksrcpath}/init-script ${destroot}${prefix}/share/${name}
      xinstall -d -m 755 ${destroot}${prefix}/var/run

      xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
      xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}

      }

      post-destroot {
      system "chown nagios:nagios ${destroot}${prefix}/sbin/nsca"
      system "chown nagios:nagios ${destroot}${prefix}/sbin/send_nsca"
      system "chown nagios:nagios ${destroot}${prefix}/etc/${name}/*"
      }

      post-install {
      ui_msg "\n
      README files --> ${prefix}/share/doc/${name}
      Config file names --> ${prefix}/etc/${name}/nsca.cfg (rename sample file to nsca.cfg)
      ${prefix}/etc/${name}/send_nsca.cfg (rename sample file to send_nsca.cfg)
      Start script --> ${prefix}/share/${name}/init-script start|stop|status
      \n"
      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/nsca
      % sudo port install nsca
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching nsca
      ---> Verifying checksum for nsca
      ---> Extracting nsca
      ---> Configuring nsca
      ---> Building nsca with target all
      ---> Staging nsca into destroot
      ---> Installing nsca
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using nsca with these commands:
      %  man nsca
      % apropos nsca
      % which nsca
      % locate nsca

     Where to find more information:

    Darwin Ports



    Lightbox this page.