BSD Ports

net-mgmt/pnp 0.6.26_4 FreeBSD

Nagios / Icinga performance data collector and grapher

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
net-mgmt
Package size
2348.9 KiB, 5111.4 KiB installed

Description

PNP is an addon to nagios which analyzes performance data provided by plugins and stores them automatically into RRD-databases (Round Robin Databases, see RRD Tool).

During development of PNP we set value on easy installation and little maintenance while running it. An administrator should do other things than configure graphing tools.

In the other systems

SystemPortVersion
FreeBSDnet-mgmt/pnp0.6.26_4
DragonFlynet-mgmt/pnp0.6.26_4
HardenedBSDnet-mgmt/pnp0.6.26_4
GhostBSDnet-mgmt/pnp0.6.26_4

Install

Binary package:

pkg install pnp

From the ports tree:

cd /usr/ports/net-mgmt/pnp/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	pnp>0:net-mgmt/pnp

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.6.26_40.6.26_40.6.26_20.6.26_40.6.26_4
FreeBSD:14:quarterly0.6.26_40.6.26_4n/a0.6.26_40.6.26_4
FreeBSD:15:latest0.6.26_40.6.26_4n/a0.6.26_40.6.26_4
FreeBSD:15:quarterly0.6.26_40.6.26_4n/an/an/a
FreeBSD:16:latest0.6.26_40.6.26_4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 2

The full lists below include those, and their dependencies in turn.

Build dependencies 42
Run dependencies 62

No port depends on this one.

Configuration

Options name: net-mgmt_pnp

OptionDefaultDescription
EXAMPLESoffBuild and/or install examples
PDFonUse built-in fpdf library to produce PDF views
USES
dos2unix perl5 php php:web
Service scripts
npcd

Message after installing

You just installed/upgraded PNP graphing tool for nagios.

You will need to read the documentation at
  http://docs.pnp4nagios.org/pnp-0.6/doc_complete
both for new installations and upgrades from 0.4, since you will
need to tweak your nagios and PNP configuration according to the
0.6.x recipes.

We recommend to start with the following restrictive Apache configuration for
the PNP area:
{{{
# PNP graphing tool
Alias /nagios/pnp /usr/local/www/pnp
<Directory "/usr/local/www/pnp/">
    Order deny,allow
    Allow from all
    Deny from all

    AddHandler application/x-httpd-php .php
    DirectoryIndex index.php

    RewriteEngine on
    RewriteBase /nagios/pnp/
    # Protect application and system files from being viewed
    RewriteRule ^(application|modules|system) - [F,L]
    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Rewrite all other URLs to index.php/URL
    RewriteRule .* index.php/$0 [PT,L]
</Directory>
# PNP graphing tool
Alias /nagios/pnp /usr/local/www/pnp

<Directory /usr/local/www/pnp>
   <IfModule mod_authz_core.c>
      # Apache 2.4
      <RequireAll>
         Require all granted
         # Require local
         Require valid-user
      </RequireAll>
   </IfModule>
   <IfModule !mod_authz_core.c>
      # Apache 2.2
      Order allow,deny
      Allow from all
      #  Order deny,allow
      #  Deny from all
      #  Allow from 127.0.0.1
      Require valid-user
   </IfModule>

    AuthName "PNP Access"
    AuthType Basic
    AuthUserFile /usr/local/etc%%NAGIOSHTMURL%%/htpasswd.users

    AddHandler application/x-httpd-php .php
    DirectoryIndex index.php

    RewriteEngine on
    RewriteBase /nagios/pnp/
    # Protect application and system files from being viewed
    RewriteRule ^(application|modules|system) - [F,L]
    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Rewrite all other URLs to index.php/URL
    RewriteRule .* index.php/$0 [PT,L]
</Directory>
}}}

Don't forget to install and enable www/mod_php5 as well as mod_rewrite.

If you use another web server like nginx or lighttpd, take a look at
/usr/local/share/examples/pnp

Create /usr/local/www/pnp/install.ignore to disable sanity check
and start using PNP.

Please, note that user who runs Apache processes should be able to
read PNP RRD spool files from
  /var/spool/nagios/pnp/rrd
so you should tune path permissions accordingly.  Probably one could
start from adding Apache user to the group 'nagios'.

Remember to restart NPCD service after upgrade if you're using
'bulk' mode with NPCD.

===>   NOTICE:

The pnp port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing

Files

Manual pages 1
  • npcd(8)
pkg-plist 674
  • bin/npcd
  • etc/pnp/background.pdf-sample
  • etc/pnp/check_commands/check_all_local_disks.cfg-sample
  • etc/pnp/check_commands/check_nrpe.cfg-sample
  • etc/pnp/check_commands/check_nwstat.cfg-sample
  • etc/pnp/config.php
  • @sample etc/pnp/config_local.php.sample
  • etc/pnp/misccommands.cfg-sample
  • etc/pnp/nagios.cfg-sample
  • @sample etc/pnp/npcd.cfg.sample
  • etc/pnp/pages/web_traffic.cfg-sample
  • etc/pnp/pnp4nagios_release
  • @sample etc/pnp/process_perfdata.cfg.sample
  • etc/pnp/rra.cfg-sample
  • lib/kohana/system/config/cache.php
  • lib/kohana/system/config/cache_memcache.php
  • lib/kohana/system/config/cache_sqlite.php
  • lib/kohana/system/config/cache_xcache.php
  • lib/kohana/system/config/captcha.php
  • lib/kohana/system/config/cookie.php
  • lib/kohana/system/config/credit_cards.php
  • lib/kohana/system/config/database.php
  • lib/kohana/system/config/email.php
  • lib/kohana/system/config/encryption.php
  • lib/kohana/system/config/http.php
  • lib/kohana/system/config/image.php
  • lib/kohana/system/config/inflector.php
  • lib/kohana/system/config/locale.php
  • lib/kohana/system/config/mimes.php
  • lib/kohana/system/config/pagination.php
  • lib/kohana/system/config/profiler.php
  • lib/kohana/system/config/routes.php
  • lib/kohana/system/config/session.php
  • lib/kohana/system/config/sql_types.php
  • lib/kohana/system/config/upload.php
  • lib/kohana/system/config/user_agents.php
  • lib/kohana/system/config/view.php
  • lib/kohana/system/controllers/captcha.php
  • lib/kohana/system/controllers/template.php
  • lib/kohana/system/core/Benchmark.php
  • lib/kohana/system/core/Bootstrap.php
  • lib/kohana/system/core/Event.php
  • lib/kohana/system/core/Kohana.php
  • lib/kohana/system/core/utf8.php
  • lib/kohana/system/core/utf8/from_unicode.php
  • lib/kohana/system/core/utf8/ltrim.php
  • lib/kohana/system/core/utf8/ord.php
  • lib/kohana/system/core/utf8/rtrim.php
  • lib/kohana/system/core/utf8/str_ireplace.php
  • lib/kohana/system/core/utf8/str_pad.php
  • lib/kohana/system/core/utf8/str_split.php
  • lib/kohana/system/core/utf8/strcasecmp.php
  • lib/kohana/system/core/utf8/strcspn.php
  • lib/kohana/system/core/utf8/stristr.php
  • lib/kohana/system/core/utf8/strlen.php
  • lib/kohana/system/core/utf8/strpos.php
  • lib/kohana/system/core/utf8/strrev.php
  • lib/kohana/system/core/utf8/strrpos.php
  • lib/kohana/system/core/utf8/strspn.php
  • lib/kohana/system/core/utf8/strtolower.php
  • lib/kohana/system/core/utf8/strtoupper.php
  • lib/kohana/system/core/utf8/substr.php
  • lib/kohana/system/core/utf8/substr_replace.php
  • lib/kohana/system/core/utf8/to_unicode.php
  • lib/kohana/system/core/utf8/transliterate_to_ascii.php
  • lib/kohana/system/core/utf8/trim.php
  • lib/kohana/system/core/utf8/ucfirst.php
  • lib/kohana/system/core/utf8/ucwords.php
  • lib/kohana/system/fonts/DejaVuSerif.ttf
  • lib/kohana/system/fonts/LICENSE
  • lib/kohana/system/helpers/arr.php
  • lib/kohana/system/helpers/cookie.php
  • lib/kohana/system/helpers/date.php
  • lib/kohana/system/helpers/download.php
  • lib/kohana/system/helpers/email.php
  • lib/kohana/system/helpers/expires.php
  • lib/kohana/system/helpers/feed.php
  • lib/kohana/system/helpers/file.php
  • lib/kohana/system/helpers/form.php
  • lib/kohana/system/helpers/format.php
  • lib/kohana/system/helpers/html.php
  • lib/kohana/system/helpers/inflector.php
  • lib/kohana/system/helpers/num.php
  • lib/kohana/system/helpers/remote.php
  • lib/kohana/system/helpers/request.php
  • lib/kohana/system/helpers/security.php
  • lib/kohana/system/helpers/text.php
  • lib/kohana/system/helpers/upload.php
  • lib/kohana/system/helpers/url.php
  • lib/kohana/system/helpers/valid.php
  • lib/kohana/system/i18n/de_DE/cache.php
  • lib/kohana/system/i18n/de_DE/calendar.php
  • lib/kohana/system/i18n/de_DE/captcha.php
  • lib/kohana/system/i18n/de_DE/core.php
  • lib/kohana/system/i18n/de_DE/database.php
  • lib/kohana/system/i18n/de_DE/encrypt.php
  • lib/kohana/system/i18n/de_DE/errors.php
  • lib/kohana/system/i18n/de_DE/event.php
  • lib/kohana/system/i18n/de_DE/image.php
  • lib/kohana/system/i18n/de_DE/orm.php

The first 100 are listed.

distinfo 1
FileSizeSHA256
pnp4nagios-0.6.26.tar.gz3.039265e+06ab59a8a02d0f70de3cf89b12fe1e9216e4b1127bc29c04a036cd06dde72ee8fb
Master sites 1
  • SF/pnp4nagios/PNP-0.6

Commit history 0

No commits in the history this site was built from.