[-]
[+]
|
Added |
pnp4icinga.changes
|
|
[-]
[+]
|
Deleted |
pnp4nagios.changes
^
|
@@ -1,160 +0,0 @@
--------------------------------------------------------------------
-Tue Dec 15 11:39:53 UTC 2009 - lars@linux-schulserver.de
-
-- update to 0.6.1
- + Webfrontend based on http://www.kohanaphp.com (separate package)
- + Javascript-functions using jQuery plugins
- + process_perfdata.pl will be able to use one RRD database
- per datasource
- + RRDtool errors are now displayed as images. no more missing images
- + PNP templates cannot overwrite internal variables anymore
- + PNP templates of version 0.4.x can still be used
- + PDF functions recoded
- + Template default.php optimized
- + Export from RRD databases into XML, CSV and JSON format using the
- RRDtool "xport" function
- + Page functions recoded
- + Error pages links to online FAQ
- + Mouseover Popup in Nagios frontend via jQuery.clueTip plugin
- + Full support of rrdcached
- + RRD heartbeat per check_command -> tpl_custom
- + New config.php option pdf_graph_opt
- + Recognize the 'background_pdf' option in page definitions
- + Recognize the 'source' option in page definitions
- + Array $TIMERANGE now available for templates
- + Store internal runtime statistics on a per minute base
- + Added two widgets views/widget_menu.php and views/widget_graph.php
-- improved apache include config
-- pnp4nagios requires kohana now
-
-
--------------------------------------------------------------------
-Thu Jul 23 22:04:32 CEST 2009 - lars@linux-schulserver.de
-
-- update to 0.4.14:
- + Use Nagios TIMET Macro while creating new RRD Databases.
- + New config option enable_recursive_template_search.
- + Better signal handling in process_perfdata.pl
- + FIX: Optimized check_multi detection.
- + FIX: Popups are now working with IE.
- + RRA config per check_command.
-- recommend dejavu
-
--------------------------------------------------------------------
-Tue Mar 17 11:09:07 CET 2009 - lars@linux-schulserver.de
-
-- enhance the command template for users using NPCD to process
- their performance data.
-
--------------------------------------------------------------------
-Fri Feb 20 23:18:18 CET 2009 - lars@linux-schulserver.de
-
-- update to 0.4.13:
- + Overlib 4.21 included http://www.bosrup.com/web/overlib/
- + Prototype Ajax Framework 1.6.0.3 included http://www.prototypejs.org/
- + Script.aculo.us Update to 1.8.1
- + FIX: Function rrd_fetch renamed to rrdtool_fetch to avoid
- naming conflict
- + Experimental: New npcd Event Broker Module - handle with care
- + Experimental: New special templates stored in templates.special
- + FIX: autoconf detection for getloadavg() - ignore
- loadthreshold if not available
- + FIX: Host OS Detection for mod_cflags/mod_ldflags
-
-
--------------------------------------------------------------------
-Tue Oct 28 11:08:03 CET 2008 - lars@linux-schulserver.de
-
-- update to 0.4.12:
- + Remove Call-time pass-by-reference
- + FIX: Fixed wrong check_multi service description
- + FIX: Fixed page config parser
-
--------------------------------------------------------------------
-Fri Aug 29 13:56:24 CEST 2008 - lars@linux-schulserver.de
-
-- add <IfDefine PNP4NAGIOS> to the apache configuration to
- avoid startup problems if SSL is enabled and no SSLKey is
- available for this config.
-
--------------------------------------------------------------------
-Wed Jul 16 22:13:45 CEST 2008 - lars@linux-schulserver.de
-
-- update to 0.4.10:
- + BUGFIX: Fixed wrong link to avail.cgi used on pages.
- + BUGFIX: Don´t exit process_perfdata.pl when process_perfdata.cfg
- is missig.
- + Report missing RRDs Perl Modules.
-
--------------------------------------------------------------------
-Fri May 16 18:36:00 CEST 2008 - lars@linux-schulserver.de
-
-- update to 0.4.9:
- + process_perfdata.pl results in timeouts and broken XML files
- caused by missing RRDs Perl Modules
-- removed pnp-0.4.7-buffer_overflow.patch
-
--------------------------------------------------------------------
-Thu May 01 19:31:07 CEST 2008 - lars@linux-schulserver.de
-
-- update to 0.4.8:
- + New process_perfdata.pl option -c [–config] to specify an
- alternate config file.
- + France Translation added by Jean-Marie Le Borgne
- + XML Encoding can now be changed by using XML_ENC in
- process_perfdata.cfg
- + Set SetAutoPageBreak() in doPDF function.
- + New Option background_pdf can be used in page definitions to
- override the defaults.
- + process_perfdata.cfg: Option RRD_HEARTBEAT added.
- + New NPCD Option: sleep_time
- + Fixed process_perfdata.pl race condition: config file timeout
- now won't be ignored
- + Backslashes used in service descriptions are now substituted
- to underscores.
-
--------------------------------------------------------------------
-Sat Apr 12 23:31:07 CEST 2008 - lars@linux-schulserver.de
-
-- fix directory ownership
-- fix execute bits for process_perfdata.pl
-- safe_mode must currently be off to keep it easily running
-- added nagios-pnp.cfg containing command definitions
-
--------------------------------------------------------------------
-Thu Mar 13 22:27:38 CET 2008 - lars@linux-schulserver.de
-
-- update to 0.4.7:
- + Fixed compiler errors on Solaris
- + Switched to autoconf 2.61
- + Fixed is_file() on older SuSE releases
-
--------------------------------------------------------------------
-Mon Feb 11 19:43:06 CET 2008 - lars@linux-schulserver.de
-
-- update to 0.4.6:
- + XML Tag <RRD> reflects the last rrdtool returncode and text.
- + parse_xml() cleanup.
- + Improved check_multi support.
- + Calendar added to all views.
- + New Icons based on KDE Theme nuvoX.
- + Fixed libpng write errors.
- + Added suport for threshold range format
- + New Template check_snmp_int-bits.php.
- Output is displayed in Bits/s
- + NPCD now takes care about the exit status
- of the executed command
- + No more PID File creation without Daemon Mode
- + Load thresholding through config file (experimental)
- + No try to write PID File after a HUP Signal
- + File Log is now ready for testing
- + Rotation of logfile
- + New configure option: –with-perfdata-spool-dir
- + Stay in the current timerange when switching between pages
- + New Configure Option –with-init-dir
-
--------------------------------------------------------------------
-Tue Dec 18 12:46:21 CET 2007 - lars@linux-schulserver.de
-
-- initial release 0.4.3
-
|
[-]
[+]
|
Added |
pnp4icinga.spec
^
|
|
[-]
[+]
|
Deleted |
pnp4nagios.spec
^
|
@@ -1,178 +0,0 @@
-#
-# spec file for package pnp4nagios
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-
-
-Name: pnp4nagios
-%define realname pnp4nagios
-Summary: Tool for producing graphs from Nagios perfdata
-Version: 0.6.1
-Release: 1
-Url: http://www.ederdrom.de/pnp/start
-License: GPL v2 or later
-Group: System/Monitoring
-BuildRequires: apache2-devel
-BuildRequires: nagios-www
-BuildRequires: kohana
-Requires: kohana
-Requires: nagios-www
-Requires: rrdtool
-Requires: syslog
-Requires: perl
-Recommends: dejavu
-#
-%if 0%{?mandriva_version}
-# break the "have choice for" cycle
-BuildRequires: apache-mpm-prefork
-BuildRequires: mailx
-%endif
-#
-%if 0%{?suse_version}
-Requires: php-zlib
-Requires: php-gd
-%endif
-%if 0%{suse_version} > 1020
-BuildRequires: fdupes
-BuildRequires: rrdtool-devel
-%else
-BuildRequires: rrdtool
-%endif
-Source0: %realname-%version.tar.bz2
-Source1: %name-httpd.conf
-Source2: %name.quick-start.txt
-Source3: %name-init
-Source4: pnp4nagios-rpmlintrc
-Source5: pnp4nagios-nagios-pnp.cfg
-Source6: pnp4nagios-check_nrpe.cfg
-Patch1: pnp4nagios-0.6.1-check_pnp_rrds.patch
-Patch2: pnp4nagios-0.6.1-verify_pnp_config.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%define nsusr nagios
-%define nsgrp nagios
-%define apxs2 /usr/sbin/apxs2-prefork
-%define apache2_sysconfdir %(%{apxs2} -q SYSCONFDIR)
-%define libexecdir %_prefix/lib/nagios/plugins
-%define perfdata_spooldir /var/spool/nagios-pnp
-
-%description
-PNP is a tool that produces graphs from performance data from
-Nagios plugins.
-
-Authors:
---------
- Jörg Linge
- Hendrik Bäcker
-
-
-%prep
-%setup -q -n %realname-%version
-%patch1 -p0
-%patch2 -p0
-
-%build
-%configure \
- --datadir=%_datadir/pnp \
- --datarootdir=%_datadir/pnp/html \
- --localstatedir=/var/log/nagios/pnp \
- --sysconfdir=%_sysconfdir/nagios/pnp \
- --libexecdir=%libexecdir \
- --datarootdir=%_datadir/pnp \
- --with-perfdata-logfile=/var/log/nagios/pnp/perfdata.log \
- --with-perfdata-dir=/var/lib/nagios/pnp \
- --with-perfdata-spool-dir=%{perfdata_spooldir} \
- --with-init-dir=%_sysconfdir/init.d \
- --with-nagios-user=%nsusr \
- --with-nagios-group=%nsgrp \
- --without-kohana \
- --with-kohana_system=/usr/share/kohana/system
-make %{?jobs:-j%jobs} all
-
-%install
-mkdir -p %buildroot/var/lib/nagios/pnp %buildroot/var/log/nagios/pnp
-make install install-config \
- DESTDIR="%buildroot" \
- LIBEXEC_DIR="%libexecdir" \
- INSTALL_OPTS=""
-# move samples to the docudir
-mkdir -p %buildroot/%_defaultdocdir/%name/sample-config
-find sample-config/ -name "*-sample*" -exec cp -v {} %buildroot/%_defaultdocdir/%name/sample-config/ \;
-# install config files not installed via Makefile
-sed -e 's@/usr/local/nagios/var/npcd.log@/var/log/nagios/pnp/npcd.log@' \
- -e 's@/usr/var/perfspool/@%{perfdata_spooldir}@' \
- -e 's@/usr/local/nagios/libexec/process_perfdata.pl@%libexecdir/process_perfdata.pl@' \
- -e 's@/usr/libexec@%libexecdir@' \
- %buildroot/%_sysconfdir/nagios/pnp/npcd.cfg-sample > %buildroot/%_sysconfdir/nagios/pnp/npcd.cfg
-mv %buildroot/%_sysconfdir/nagios/pnp/process_perfdata.cfg-sample %buildroot/%_sysconfdir/nagios/pnp/process_perfdata.cfg
-mv %buildroot/%_sysconfdir/nagios/pnp/rra.cfg-sample %buildroot/%_sysconfdir/nagios/pnp/rra.cfg
-sed -e 's@\^hna0@localhost@' \
- -e 's@\^traffic@traffic@' \
- %buildroot/%_sysconfdir/nagios/pnp/pages/web_traffic.cfg-sample > %buildroot/%_sysconfdir/nagios/pnp/pages/web_traffic.cfg
-mv %buildroot/%_sysconfdir/nagios/pnp/check_commands/check_nwstat.cfg-sample %buildroot/%_sysconfdir/nagios/pnp/check_commands/check_nwstat.cfg
-install -m644 %{SOURCE6} %buildroot/%_sysconfdir/nagios/pnp/check_commands/check_nrpe.cfg
-find %buildroot/%_sysconfdir/nagios/pnp -name "*-sample" -exec rm {} \;
-# fix pathname to the kohana files
-sed -i "s|^\$kohana_modules.*|\$kohana_modules = '/usr/share/kohana/modules';|" %buildroot/%_datadir/pnp/index.php
-rm %buildroot/%_datadir/pnp/install.php
-# install own nagios command file
-install -m644 %{SOURCE5} %buildroot/%_sysconfdir/nagios/nagios-pnp.cfg
-# install the documentation
-mkdir -p %buildroot/%_defaultdocdir/%name
-install -m0644 AUTHORS ChangeLog COPYING README* THANKS %buildroot/%_defaultdocdir/%name/
-install -m0644 %{S:2} %buildroot/%_defaultdocdir/%name/README.SuSE
-# install contrib scripts into docdir
-mkdir -p %buildroot/%_defaultdocdir/%name/example
-# install template placeholder
-mkdir -p %buildroot/%_datadir/pnp/templates/
-touch %buildroot/%_datadir/pnp/templates/PUT-YOUR-TEMPLATES-HERE
-# install directories
-install -d -m0775 %buildroot/%{perfdata_spooldir}
-install -d -m0775 %buildroot/var/log/nagios/pnp/stats
-# install apache configuration
-install -d -m 0755 %buildroot/%{apache2_sysconfdir}/conf.d/
-install -m0644 %{SOURCE1} %buildroot/%{apache2_sysconfdir}/conf.d/nagios-pnp.conf
-# install init-script
-mkdir -p %buildroot/%_sysconfdir/init.d
-install -m0755 %{SOURCE3} %buildroot/%_sysconfdir/init.d/npcd
-mkdir -p %buildroot/%_sbindir
-ln -s %_sysconfdir/init.d/npcd %buildroot/%_sbindir/rcnpcd
-# save discspace, create links
-%if 0%{suse_version} > 1020
-%fdupes -s %buildroot/%_datadir/pnp
-%endif
-
-%clean
-rm -rf %buildroot
-
-%preun
-%stop_on_removal npcd
-
-%postun
-%insserv_cleanup npcd
-
-%files
-%defattr(-,root,root)
-%doc %_defaultdocdir/%name/
-%dir %_datadir/pnp
-%dir %_sysconfdir/nagios/pnp
-%attr(-,%nsusr,%nsgrp) %dir %{perfdata_spooldir}
-%attr(-,%nsusr,%nsgrp) %dir /var/log/nagios/pnp
-%attr(-,%nsusr,%nsgrp) %dir /var/log/nagios/pnp/stats
-%{_bindir}/*
-%_datadir/pnp/*
-%attr(0755,root,root) %libexecdir/*
-# %{_mandir}/man1/*
-%_sbindir/rcnpcd
-%_sysconfdir/init.d/npcd
-%config(noreplace) %_sysconfdir/nagios/pnp/*
-%config(noreplace) %apache2_sysconfdir/conf.d/nagios-pnp.conf
-#%config(noreplace) %_sysconfdir/xinetd.d/nagios-pnp
-%config(noreplace) %_datadir/pnp/templates/*
-%config(noreplace) %_sysconfdir/nagios/nagios-pnp.cfg
-%defattr(775,wwwrun,www)
-%_datadir/pnp/application/cache
-%_datadir/pnp/application/logs
-
-%changelog
|
[-]
[+]
|
Added |
pnp4icinga-0.6.1-check_pnp_rrds.patch
^
|
@@ -0,0 +1,57 @@
+Index: scripts/check_pnp_rrds.pl.in
+===================================================================
+--- scripts/check_pnp_rrds.pl.in.orig
++++ scripts/check_pnp_rrds.pl.in
+@@ -30,7 +30,7 @@
+ my $opt_c = 10;
+ my $opt_t = 10;
+ my $opt_p = "@PERFDATA_DIR@";
+-my $opt_ncmd = "/usr/local/nagios/var/rw/nagios.cmd";
++my $opt_ncmd = "/var/log/icinga/rw/icinga.cmd";
+ my $opt_phost = "";
+ my $opt_pservice = "";
+ my $VERSION = "@PKG_VERSION@";
+Index: scripts/verify_pnp_config.pl.in
+===================================================================
+--- scripts/verify_pnp_config.pl.in.orig
++++ scripts/verify_pnp_config.pl.in
+@@ -178,9 +178,9 @@
+ chk_pkg ("nagios",0,1);
+ chk_pkg ("icinga",0,1);
+ chk_pkg ("pnp4nagios",0,1);
+- chk_pkg ("mod-php5,mod_php5",1,0);
++ chk_pkg ("apache2-mod_php5",0,1);
+ chk_pkg ("php,php5,php5-common",1,1);
+- chk_pkg ("dejavu",1,0);
++ chk_pkg ("dejavu",0,1);
+ if ($crit) {
+ info ("LinkReqSW");
+ exit 30;
+@@ -218,14 +218,14 @@
+ }
+ info ("useCfg","$NagiosCfg");
+ if (! defined($NagiosBin)) {
+- if (-f "$NagiosBase/bin/$product") {
+- $NagiosBin = "$NagiosBase/bin/$product";
++ if (-f "$NagiosBase/sbin/$product") {
++ $NagiosBin = "$NagiosBase/sbin/$product";
+ } else {
+ info ("noBinary", "$product") && exit 6;
+ }
+ }
+ if ($NagiosBin !~ /^\//) {
+- $NagiosBin = "$NagiosBase/bin/$NagiosBin";
++ $NagiosBin = "$NagiosBase/sbin/$NagiosBin";
+ }
+ examine ("x;", "${prod_name}-Binary", "$NagiosBin") && exit 6;
+ info ("useBinary","$NagiosBin");
+@@ -1027,6 +1027,9 @@
+ if (-f "$PNPdir/etc/npcd.cfg") {
+ $NPCDcfg = "$PNPdir/etc/npcd.cfg";
+ }
++ if (-f "/etc/icinga/pnp/npcd.cfg") {
++ $NPCDcfg = "/etc/icinga/pnp/npcd.cfg";
++ }
+ }
+
+ # config file name set?
|
[-]
[+]
|
Added |
pnp4icinga-0.6.1-verify_pnp_config.patch
^
|
@@ -0,0 +1,42 @@
+Index: scripts/verify_pnp_config.pl.in
+===================================================================
+--- scripts/verify_pnp_config.pl.in.orig
++++ scripts/verify_pnp_config.pl.in
+@@ -46,9 +46,9 @@
+ # please remove the hash sign (#) on the following line if you're using Icinga
+ # or specify "-M icinga"
+ # $product = lc("icinga");
+-my $basedir = "/usr/local/nagios";
++my $basedir = "/usr";
+ my $NagiosBase = "";
+-my $NagiosBin = "$product" if (-f "$basedir/bin/$product");
++my $NagiosBin = "$product" if (-f "$basedir/sbin/$product");
+ if (! defined $NagiosBin) {
+ if (-d "/usr/local/icinga") {;
+ $basedir = "/usr/local/icinga";
+@@ -58,14 +58,14 @@
+ }
+ my $prod_name = ucfirst($product);
+ my $mode = "";
+-my $NagiosCfg = "";
++my $NagiosCfg = "/etc/icinga/icinga.cfg" if (-f "/etc/icinga/icinga.cfg");
+ my %NagiosCfg = ();
+ my $rrdtool = '@RRDTOOL@';
+ $rrdtool = "/usr/bin/rrdtool" unless ((-f "$rrdtool") and (-x "$rrdtool"));
+ my $PreCheck = 0;
+ my $LogFile = ""; # PNP config.log
+ my %LogFile = ();
+-my $PNPdir = "/usr/local/pnp4nagios"; # PNP root directory
++my $PNPdir = "/usr/share/pnp"; # PNP root directory
+ my $NPCDcfg = ""; # NPCD.cfg
+ my %NPCDcfg = ();
+ my $PPcfg = ""; # process_perfdata.cfg;
+@@ -333,7 +333,7 @@
+ $err = 0;
+ }
+ if (! exists $NagiosCfg{"object_cache_file"}) {
+- $NagiosCfg{"object_cache_file"} = "$NagiosBase/var/objects.cache";
++ $NagiosCfg{"object_cache_file"} = "/var/log/icinga/objects.cache";
+ }
+ examine ("f;","object_cache_file", $NagiosCfg{"object_cache_file"}) && exit 12;
+ info ("useCache","$NagiosCfg{\"object_cache_file\"}");
|
[-]
[+]
|
Added |
pnp4icinga-xinetd.patch
^
|
@@ -0,0 +1,31 @@
+Index: sample-config/xinetd.pnp.sample.in
+===================================================================
+--- sample-config/xinetd.pnp.sample.in.orig
++++ sample-config/xinetd.pnp.sample.in
+@@ -1,3 +1,8 @@
++# Configuration for pnp4icinga
++#
++# Please add the port to your /etc/services file.
++# cps limits the incoming requests to 150 per seconds - afterwards it waits for 10 seconds.
++#
+ #
+ # Config fuer net2pnp
+ # Der verwendete Port muss in der /etc/servcies bekannt gegeben werden
+@@ -6,14 +11,15 @@
+
+ service pnp
+ {
+- disable = no
++ disable = yes
++ type = UNLISTED
+ socket_type = stream
+ protocol = tcp
+ port = 5669
+ wait = no
+ user = icinga
+ cps = 150 10
+- server = /usr/local/nagios/libexec/process_perfdata.pl
++ server = /usr/lib/nagios/plugins/process_perfdata.pl
+ server_args = --inetd
+ }
+
|
[-]
[+]
|
Deleted |
pnp4nagios-0.6.1-check_pnp_rrds.patch
^
|
@@ -1,57 +0,0 @@
-Index: scripts/check_pnp_rrds.pl.in
-===================================================================
---- scripts/check_pnp_rrds.pl.in.orig
-+++ scripts/check_pnp_rrds.pl.in
-@@ -30,7 +30,7 @@
- my $opt_c = 10;
- my $opt_t = 10;
- my $opt_p = "@PERFDATA_DIR@";
--my $opt_ncmd = "/usr/local/nagios/var/rw/nagios.cmd";
-+my $opt_ncmd = "/var/spool/nagios/nagios.cmd";
- my $opt_phost = "";
- my $opt_pservice = "";
- my $VERSION = "@PKG_VERSION@";
-Index: scripts/verify_pnp_config.pl.in
-===================================================================
---- scripts/verify_pnp_config.pl.in.orig
-+++ scripts/verify_pnp_config.pl.in
-@@ -178,9 +178,9 @@
- chk_pkg ("nagios",0,1);
- chk_pkg ("icinga",0,1);
- chk_pkg ("pnp4nagios",0,1);
-- chk_pkg ("mod-php5,mod_php5",1,0);
-+ chk_pkg ("apache2-mod_php5",0,1);
- chk_pkg ("php,php5,php5-common",1,1);
-- chk_pkg ("dejavu",1,0);
-+ chk_pkg ("dejavu",0,1);
- if ($crit) {
- info ("LinkReqSW");
- exit 30;
-@@ -218,14 +218,14 @@
- }
- info ("useCfg","$NagiosCfg");
- if (! defined($NagiosBin)) {
-- if (-f "$NagiosBase/bin/$product") {
-- $NagiosBin = "$NagiosBase/bin/$product";
-+ if (-f "$NagiosBase/sbin/$product") {
-+ $NagiosBin = "$NagiosBase/sbin/$product";
- } else {
- info ("noBinary", "$product") && exit 6;
- }
- }
- if ($NagiosBin !~ /^\//) {
-- $NagiosBin = "$NagiosBase/bin/$NagiosBin";
-+ $NagiosBin = "$NagiosBase/sbin/$NagiosBin";
- }
- examine ("x;", "${prod_name}-Binary", "$NagiosBin") && exit 6;
- info ("useBinary","$NagiosBin");
-@@ -1027,6 +1027,9 @@
- if (-f "$PNPdir/etc/npcd.cfg") {
- $NPCDcfg = "$PNPdir/etc/npcd.cfg";
- }
-+ if (-f "/etc/nagios/pnp/npcd.cfg") {
-+ $NPCDcfg = "/etc/nagios/pnp/npcd.cfg";
-+ }
- }
-
- # config file name set?
|
[-]
[+]
|
Deleted |
pnp4nagios-0.6.1-verify_pnp_config.patch
^
|
@@ -1,42 +0,0 @@
-Index: scripts/verify_pnp_config.pl.in
-===================================================================
---- scripts/verify_pnp_config.pl.in.orig
-+++ scripts/verify_pnp_config.pl.in
-@@ -46,9 +46,9 @@
- # please remove the hash sign (#) on the following line if you're using Icinga
- # or specify "-M icinga"
- # $product = lc("icinga");
--my $basedir = "/usr/local/nagios";
-+my $basedir = "/usr";
- my $NagiosBase = "";
--my $NagiosBin = "$product" if (-f "$basedir/bin/$product");
-+my $NagiosBin = "$product" if (-f "$basedir/sbin/$product");
- if (! defined $NagiosBin) {
- if (-d "/usr/local/icinga") {;
- $basedir = "/usr/local/icinga";
-@@ -58,14 +58,14 @@
- }
- my $prod_name = ucfirst($product);
- my $mode = "";
--my $NagiosCfg = "";
-+my $NagiosCfg = "/etc/nagios/nagios.cfg" if (-f "/etc/nagios/nagios.cfg");
- my %NagiosCfg = ();
- my $rrdtool = '@RRDTOOL@';
- $rrdtool = "/usr/bin/rrdtool" unless ((-f "$rrdtool") and (-x "$rrdtool"));
- my $PreCheck = 0;
- my $LogFile = ""; # PNP config.log
- my %LogFile = ();
--my $PNPdir = "/usr/local/pnp4nagios"; # PNP root directory
-+my $PNPdir = "/usr/share/pnp"; # PNP root directory
- my $NPCDcfg = ""; # NPCD.cfg
- my %NPCDcfg = ();
- my $PPcfg = ""; # process_perfdata.cfg;
-@@ -333,7 +333,7 @@
- $err = 0;
- }
- if (! exists $NagiosCfg{"object_cache_file"}) {
-- $NagiosCfg{"object_cache_file"} = "$NagiosBase/var/objects.cache";
-+ $NagiosCfg{"object_cache_file"} = "/var/lib/nagios/objects.cache";
- }
- examine ("f;","object_cache_file", $NagiosCfg{"object_cache_file"}) && exit 12;
- info ("useCache","$NagiosCfg{\"object_cache_file\"}");
|
[-]
[+]
|
Deleted |
pnp4nagios-xinetd.patch
^
|
@@ -1,31 +0,0 @@
-Index: sample-config/xinetd.pnp.sample.in
-===================================================================
---- sample-config/xinetd.pnp.sample.in.orig
-+++ sample-config/xinetd.pnp.sample.in
-@@ -1,3 +1,8 @@
-+# Configuration for pnp4nagios
-+#
-+# Please add the port to your /etc/services file.
-+# cps limits the incoming requests to 150 per seconds - afterwards it waits for 10 seconds.
-+#
- #
- # Config fuer net2pnp
- # Der verwendete Port muss in der /etc/servcies bekannt gegeben werden
-@@ -6,14 +11,15 @@
-
- service pnp
- {
-- disable = no
-+ disable = yes
-+ type = UNLISTED
- socket_type = stream
- protocol = tcp
- port = 5669
- wait = no
- user = nagios
- cps = 150 10
-- server = /usr/local/nagios/libexec/process_perfdata.pl
-+ server = /usr/lib/nagios/plugins/process_perfdata.pl
- server_args = --inetd
- }
-
|
[-]
[+]
|
Added |
pnp4icinga-check_nrpe.cfg
^
|
@@ -0,0 +1,19 @@
+#
+# Adapt the Template if check_command should not be the PNP Template
+#
+# check_command check_nwstat!LOAD5!80%!90%
+# ________0__________| | | |
+# ________1____________________| | |
+# ________2_________________________| |
+# ________3____________________________|
+#
+CUSTOM_TEMPLATE = 1
+#
+# Change the RRD Datatype based on the check_command Name.
+# Defaults to GAUGE.
+#
+# Adjust the whole RRD Database
+# DATATYPE = COUNTER
+#
+# Adjust every single DS by using a List of Datatypes
+# DATATYPE = GAUGE,GAUGE,COUNTER,COUNTER
|
[-]
[+]
|
Added |
pnp4icinga-httpd.conf
^
|
@@ -0,0 +1,82 @@
+#
+# example apache config for PNP4icinga
+#
+
+<IfDefine PNP4NAGIOS>
+ Alias /pnp /usr/share/pnp
+ <Directory /usr/share/pnp>
+ Options None
+ AllowOverride None
+ order allow,deny
+ allow from all
+ AuthType Basic
+ AuthUserFile /etc/icinga/htpasswd.users
+ AuthName "Nagios Access"
+ # AuthGroupFile /etc/icinga/htpasswd.group
+ # Require group icinga
+ Require valid-user
+ # sad to say, but currently necessary:
+ php_admin_flag safe_mode off
+
+ <IfModule mod_rewrite.c>
+ # Turn on URL rewriting
+ RewriteEngine On
+ Options FollowSymLinks
+ # Installation directory
+ RewriteBase /@PKG_NAME@/
+ # 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]
+ </IfModule>
+
+ </Directory>
+
+ # This SSL configuration is ignored if
+ # "SSL" is not defined, or if "NOSSL" is defined.
+ <IfDefine SSL>
+ <IfDefine !NOSSL>
+ <IfModule mod_ssl.c>
+
+ SSLEngine on
+ SSLOptions +StdEnvVars
+
+ Alias /pnp/ /usr/share/pnp
+
+ <Directory /usr/share/pnp>
+ Options None
+ SSLRequireSSL
+ order allow,deny
+ allow from all
+ AuthType Basic
+ AuthUserFile /etc/icinga/htpasswd.users
+ AuthName "icinga"
+ # AuthGroupFile /etc/icinga/htpasswd.group
+ # Require group icinga
+ Require valid-user
+ # sad to say, but currently necessary:
+ php_admin_flag safe_mode off
+
+ <IfModule mod_rewrite.c>
+ # Turn on URL rewriting
+ RewriteEngine On
+ Options FollowSymLinks
+ # Installation directory
+ RewriteBase /@PKG_NAME@/
+ # 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]
+ </IfModule>
+ </Directory>
+
+ </IfModule>
+ </IfDefine>
+ </IfDefine>
+</IfDefine>
|
[-]
[+]
|
Added |
pnp4icinga-init
^
|
@@ -0,0 +1,111 @@
+#! /bin/sh
+# Copyright (c) 2007 SuSE Linux AG Nuernberg, Germany.
+#
+# Author: Lars Vogdt
+#
+# /etc/init.d/npcd
+#
+# and symbolic its link
+#
+# /usr/sbin/rcnpcd
+#
+# System startup script for ncpd
+#
+### BEGIN INIT INFO
+# Provides: npcd
+# Required-Start: $local_fs $remote_fs icinga
+# Required-Stop: $local_fs $remote_fs icinga
+# Should-Start: httpd2
+# Default-Start: 3 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Nagios-Perfdata-C-Daemon
+# Description: Starts and stops the Nagios-Perfdata-C-Daemon
+# to provide an asynchronous mode to handle performance data
+# with icinga.
+### END INIT INFO
+
+. /etc/rc.status
+
+NPCD_BIN=/usr/bin/npcd
+NPCD_CFG=/etc/icinga/pnp/npcd.cfg
+PID=/var/run/npcd.pid
+
+# Check for missing binaries (stale symlinks should not happen)
+# Note: Special treatment of stop for LSB conformance
+test -x $NPCD_BIN || { echo "$NPCD_BIN not installed";
+ if [ "$1" = "stop" ]; then exit 0;
+ else exit 5; fi; }
+
+# Check for existence of needed config file and read it
+test -r $NPCD_CFG || { echo "$NPCD_CFG not existing";
+ if [ "$1" = "stop" ]; then exit 0;
+ else exit 6; fi; }
+
+# Reset status of this service
+rc_reset
+
+case "$1" in
+ start)
+ echo -n "Starting npcd "
+ startproc -p $PID $NPCD_BIN -d -f $NPCD_CFG
+ rc_status -v
+ ;;
+ stop)
+ echo -n "Shutting down npcd "
+ killproc -TERM $NPCD_BIN
+ for i in 1 2 3 4 5 6 7 8 9 10 ; do
+ if $0 status > /dev/null; then
+ echo -n '.'
+ killproc -TERM $NPCD_BIN
+ sleep 1
+ else
+ break
+ fi
+ done
+ rc_status -v
+ ;;
+ try-restart|condrestart)
+ ## Do a restart only if the service was active before.
+ ## Note: try-restart is now part of LSB (as of 1.9).
+ ## RH has a similar command named condrestart.
+ if test "$1" = "condrestart"; then
+ echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
+ fi
+ $0 status
+ if test $? = 0; then
+ $0 restart
+ else
+ rc_reset # Not running is not a failure.
+ fi
+ # Remember status and be quiet
+ rc_status
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ rc_status
+ ;;
+ force-reload)
+ $0 reload
+ rc_status
+ ;;
+ reload)
+ echo -n "Reload service npcd "
+ killproc -HUP $NPCD_BIN
+ touch $PID
+ rc_status -v
+ ;;
+ status)
+ echo -n "Checking for service npcd "
+ checkproc $NPCD_BIN
+ rc_status -v
+ ;;
+ probe)
+ test $NPCD_CFG -nt $PID && echo reload
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
+ exit 1
+ ;;
+esac
+rc_exit
|
[-]
[+]
|
Added |
pnp4icinga-nagios-pnp.cfg
^
|
@@ -0,0 +1,35 @@
+# Default mode
+define command {
+ command_name process-service-perfdata
+ command_line $USER1$/process_perfdata.pl
+}
+
+define command {
+ command_name process-host-perfdata
+ command_line $USER1$/process_perfdata.pl -d HOSTPERFDATA
+}
+
+# Bulk mode
+define command {
+ command_name perfdata-service-pnp-bulk
+ command_line $USER1$/process_perfdata.pl --bulk=/var/spool/icinga-pnp/service-perfdata
+# If you are using npcd to process perfdata, disable the line above
+# and enable the command_line line below.
+#
+# NPCD monitors the spool directory and passes the file names to
+# process_perfdata.pl. This way processing of performance data is completely
+# decoupled from icinga.
+# command_line /bin/mv /var/spool/icinga-pnp/service-perfdata /var/spool/icinga-pnp/service-perfdata.$TIMET$
+}
+
+define command {
+ command_name perfdata-host-pnp-bulk
+ command_line $USER1$/process_perfdata.pl --bulk=/var/spool/icinga-pnp/host-perfdata
+# If you are using npcd to process perfdata, disable the line above
+# and enable the command_line line below.
+#
+# NPCD monitors the spool directory and passes the file names to
+# process_perfdata.pl. This way processing of performance data is completely
+# decoupled from icinga.
+# command_line /bin/mv /var/spool/icinga-pnp/host-perfdata /var/spool/icinga-pnp/host-perfdata.$TIMET$
+}
|
[-]
[+]
|
Added |
pnp4icinga-rpmlintrc
^
|
@@ -0,0 +1,3 @@
+# the name of the init script stands for
+# Nagios-Perfdata-C-Daemon
+addFilter("incoherent-init-script-name.*npcd")
|
[-]
[+]
|
Added |
pnp4icinga.quick-start.txt
^
|
@@ -0,0 +1,98 @@
+== Configuration of PNP for Nagios ==
+
+=== Configuring Apache2 ===
+
+The pnp graphs can be viewed with a webinterface. If the webserver
+is not already running, start it with the following two commands:
+
+ insserv apache2
+ rcapache2 start
+
+Per default, only connects from localhost are allowed. Adjust the configfile
+'''/etc/apache2/conf.d/nagios-pnp.conf''' for your needs. And define the
+apache server flag '''PNP4NAGIOS''' in '''/etc/sysconfig/apache2''' in the
+following line:
+
+ APACHE_SERVER_FLAGS="PNP4NAGIOS"
+
+If not already done for nagios, create a password file for apache and add an
+apache user named 'nagiosadmin' (or any other username you like):
+
+ touch /etc/nagios/htpasswd.users
+ chown root:www /etc/nagios/htpasswd.users
+ chmod 640 /etc/nagios/htpasswd.users
+ htpasswd2 -s /etc/nagios/htpasswd.users nagiosadmin
+
+You can also use an alternative htpasswd file to allow only a limited amount
+of people to view the pnp graphs.
+
+Therefore you should point the 'AuthUserFile' value in
+'''/etc/apache2/conf.d/nagios-pnp.conf''' to the location of your htpasswd file.
+
+=== Configuring Nagios ===
+
+Your next step should now be to enable performance data
+in your '''/etc/nagios/nagios.cfg''' with following option:
+
+ process_performance_data=1
+and:
+ host_perfdata_command=process-host-perfdata
+ service_perfdata_command=process-service-perfdata
+
+In your commands.cfg you have to add a commands like this:
+
+ define command {
+ command_name process-service-perfdata
+ command_line $USER1$/process_perfdata.pl
+ }
+
+ define command {
+ command_name process-host-perfdata
+ command_line $USER1$/process_perfdata.pl
+ }
+
+and after this set the service option:
+
+ process_perf_data 1
+
+for each service that supports 'real' performance data
+and finaly which you wants to see within PNP.
+
+{{Info|With Nagios 3.x you can put "process_perf_data 1" in your service definition or template!}}
+
+
+=== Including links in Nagios' Webfrontend ===
+
+For integrating the URLs you could create "hostextinfo" or "serviceextinfo"
+objects:
+
+ # For all hosts go to the overview page
+ define hostextinfo {
+ host_name *
+ action_url /pnp/index.php?host=$HOSTNAME$
+ }
+
+or
+
+ # For one service
+ define serviceextinfo {
+ host_name localhost
+ service_description Ping
+ action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
+ }
+
+{{Info|With Nagios 3.x you can put "action_url" in your service definition or template!}}
+
+
+== Enabling the Nagios-Perfdata-C-Daemon ==
+
+Don't forget to enable the Nagios-Perfdata-C-Daemon with
+
+ insserv npcd
+ rcnpcd start
+
+at the end...
+
+Have a lot of fun!
+
+
|
[-]
[+]
|
Deleted |
pnp4nagios-check_nrpe.cfg
^
|
@@ -1,19 +0,0 @@
-#
-# Adapt the Template if check_command should not be the PNP Template
-#
-# check_command check_nwstat!LOAD5!80%!90%
-# ________0__________| | | |
-# ________1____________________| | |
-# ________2_________________________| |
-# ________3____________________________|
-#
-CUSTOM_TEMPLATE = 1
-#
-# Change the RRD Datatype based on the check_command Name.
-# Defaults to GAUGE.
-#
-# Adjust the whole RRD Database
-# DATATYPE = COUNTER
-#
-# Adjust every single DS by using a List of Datatypes
-# DATATYPE = GAUGE,GAUGE,COUNTER,COUNTER
|
[-]
[+]
|
Deleted |
pnp4nagios-httpd.conf
^
|
@@ -1,82 +0,0 @@
-#
-# example apache config for PNP4nagios
-#
-
-<IfDefine PNP4NAGIOS>
- Alias /pnp /usr/share/pnp
- <Directory /usr/share/pnp>
- Options None
- AllowOverride None
- order allow,deny
- allow from all
- AuthType Basic
- AuthUserFile /etc/nagios/htpasswd.users
- AuthName "Nagios Access"
- # AuthGroupFile /etc/nagios/htpasswd.group
- # Require group nagios
- Require valid-user
- # sad to say, but currently necessary:
- php_admin_flag safe_mode off
-
- <IfModule mod_rewrite.c>
- # Turn on URL rewriting
- RewriteEngine On
- Options FollowSymLinks
- # Installation directory
- RewriteBase /@PKG_NAME@/
- # 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]
- </IfModule>
-
- </Directory>
-
- # This SSL configuration is ignored if
- # "SSL" is not defined, or if "NOSSL" is defined.
- <IfDefine SSL>
- <IfDefine !NOSSL>
- <IfModule mod_ssl.c>
-
- SSLEngine on
- SSLOptions +StdEnvVars
-
- Alias /pnp/ /usr/share/pnp
-
- <Directory /usr/share/pnp>
- Options None
- SSLRequireSSL
- order allow,deny
- allow from all
- AuthType Basic
- AuthUserFile /etc/nagios/htpasswd.users
- AuthName "nagios"
- # AuthGroupFile /etc/nagios/htpasswd.group
- # Require group nagios
- Require valid-user
- # sad to say, but currently necessary:
- php_admin_flag safe_mode off
-
- <IfModule mod_rewrite.c>
- # Turn on URL rewriting
- RewriteEngine On
- Options FollowSymLinks
- # Installation directory
- RewriteBase /@PKG_NAME@/
- # 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]
- </IfModule>
- </Directory>
-
- </IfModule>
- </IfDefine>
- </IfDefine>
-</IfDefine>
|
[-]
[+]
|
Deleted |
pnp4nagios-init
^
|
@@ -1,111 +0,0 @@
-#! /bin/sh
-# Copyright (c) 2007 SuSE Linux AG Nuernberg, Germany.
-#
-# Author: Lars Vogdt
-#
-# /etc/init.d/npcd
-#
-# and symbolic its link
-#
-# /usr/sbin/rcnpcd
-#
-# System startup script for ncpd
-#
-### BEGIN INIT INFO
-# Provides: npcd
-# Required-Start: $local_fs $remote_fs nagios
-# Required-Stop: $local_fs $remote_fs nagios
-# Should-Start: httpd2
-# Default-Start: 3 5
-# Default-Stop: 0 1 2 6
-# Short-Description: Nagios-Perfdata-C-Daemon
-# Description: Starts and stops the Nagios-Perfdata-C-Daemon
-# to provide an asynchronous mode to handle performance data
-# with nagios.
-### END INIT INFO
-
-. /etc/rc.status
-
-NPCD_BIN=/usr/bin/npcd
-NPCD_CFG=/etc/nagios/pnp/npcd.cfg
-PID=/var/run/npcd.pid
-
-# Check for missing binaries (stale symlinks should not happen)
-# Note: Special treatment of stop for LSB conformance
-test -x $NPCD_BIN || { echo "$NPCD_BIN not installed";
- if [ "$1" = "stop" ]; then exit 0;
- else exit 5; fi; }
-
-# Check for existence of needed config file and read it
-test -r $NPCD_CFG || { echo "$NPCD_CFG not existing";
- if [ "$1" = "stop" ]; then exit 0;
- else exit 6; fi; }
-
-# Reset status of this service
-rc_reset
-
-case "$1" in
- start)
- echo -n "Starting npcd "
- startproc -p $PID $NPCD_BIN -d -f $NPCD_CFG
- rc_status -v
- ;;
- stop)
- echo -n "Shutting down npcd "
- killproc -TERM $NPCD_BIN
- for i in 1 2 3 4 5 6 7 8 9 10 ; do
- if $0 status > /dev/null; then
- echo -n '.'
- killproc -TERM $NPCD_BIN
- sleep 1
- else
- break
- fi
- done
- rc_status -v
- ;;
- try-restart|condrestart)
- ## Do a restart only if the service was active before.
- ## Note: try-restart is now part of LSB (as of 1.9).
- ## RH has a similar command named condrestart.
- if test "$1" = "condrestart"; then
- echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
- fi
- $0 status
- if test $? = 0; then
- $0 restart
- else
- rc_reset # Not running is not a failure.
- fi
- # Remember status and be quiet
- rc_status
- ;;
- restart)
- $0 stop
- $0 start
- rc_status
- ;;
- force-reload)
- $0 reload
- rc_status
- ;;
- reload)
- echo -n "Reload service npcd "
- killproc -HUP $NPCD_BIN
- touch $PID
- rc_status -v
- ;;
- status)
- echo -n "Checking for service npcd "
- checkproc $NPCD_BIN
- rc_status -v
- ;;
- probe)
- test $NPCD_CFG -nt $PID && echo reload
- ;;
- *)
- echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
- exit 1
- ;;
-esac
-rc_exit
|
[-]
[+]
|
Deleted |
pnp4nagios-nagios-pnp.cfg
^
|
@@ -1,35 +0,0 @@
-# Default mode
-define command {
- command_name process-service-perfdata
- command_line $USER1$/process_perfdata.pl
-}
-
-define command {
- command_name process-host-perfdata
- command_line $USER1$/process_perfdata.pl -d HOSTPERFDATA
-}
-
-# Bulk mode
-define command {
- command_name perfdata-service-pnp-bulk
- command_line $USER1$/process_perfdata.pl --bulk=/var/spool/nagios-pnp/service-perfdata
-# If you are using npcd to process perfdata, disable the line above
-# and enable the command_line line below.
-#
-# NPCD monitors the spool directory and passes the file names to
-# process_perfdata.pl. This way processing of performance data is completely
-# decoupled from nagios.
-# command_line /bin/mv /var/spool/nagios-pnp/service-perfdata /var/spool/nagios-pnp/service-perfdata.$TIMET$
-}
-
-define command {
- command_name perfdata-host-pnp-bulk
- command_line $USER1$/process_perfdata.pl --bulk=/var/spool/nagios-pnp/host-perfdata
-# If you are using npcd to process perfdata, disable the line above
-# and enable the command_line line below.
-#
-# NPCD monitors the spool directory and passes the file names to
-# process_perfdata.pl. This way processing of performance data is completely
-# decoupled from nagios.
-# command_line /bin/mv /var/spool/nagios-pnp/host-perfdata /var/spool/nagios-pnp/host-perfdata.$TIMET$
-}
|
[-]
[+]
|
Deleted |
pnp4nagios-rpmlintrc
^
|
@@ -1,3 +0,0 @@
-# the name of the init script stands for
-# Nagios-Perfdata-C-Daemon
-addFilter("incoherent-init-script-name.*npcd")
|
[-]
[+]
|
Deleted |
pnp4nagios.quick-start.txt
^
|
@@ -1,98 +0,0 @@
-== Configuration of PNP for Nagios ==
-
-=== Configuring Apache2 ===
-
-The pnp graphs can be viewed with a webinterface. If the webserver
-is not already running, start it with the following two commands:
-
- insserv apache2
- rcapache2 start
-
-Per default, only connects from localhost are allowed. Adjust the configfile
-'''/etc/apache2/conf.d/nagios-pnp.conf''' for your needs. And define the
-apache server flag '''PNP4NAGIOS''' in '''/etc/sysconfig/apache2''' in the
-following line:
-
- APACHE_SERVER_FLAGS="PNP4NAGIOS"
-
-If not already done for nagios, create a password file for apache and add an
-apache user named 'nagiosadmin' (or any other username you like):
-
- touch /etc/nagios/htpasswd.users
- chown root:www /etc/nagios/htpasswd.users
- chmod 640 /etc/nagios/htpasswd.users
- htpasswd2 -s /etc/nagios/htpasswd.users nagiosadmin
-
-You can also use an alternative htpasswd file to allow only a limited amount
-of people to view the pnp graphs.
-
-Therefore you should point the 'AuthUserFile' value in
-'''/etc/apache2/conf.d/nagios-pnp.conf''' to the location of your htpasswd file.
-
-=== Configuring Nagios ===
-
-Your next step should now be to enable performance data
-in your '''/etc/nagios/nagios.cfg''' with following option:
-
- process_performance_data=1
-and:
- host_perfdata_command=process-host-perfdata
- service_perfdata_command=process-service-perfdata
-
-In your commands.cfg you have to add a commands like this:
-
- define command {
- command_name process-service-perfdata
- command_line $USER1$/process_perfdata.pl
- }
-
- define command {
- command_name process-host-perfdata
- command_line $USER1$/process_perfdata.pl
- }
-
-and after this set the service option:
-
- process_perf_data 1
-
-for each service that supports 'real' performance data
-and finaly which you wants to see within PNP.
-
-{{Info|With Nagios 3.x you can put "process_perf_data 1" in your service definition or template!}}
-
-
-=== Including links in Nagios' Webfrontend ===
-
-For integrating the URLs you could create "hostextinfo" or "serviceextinfo"
-objects:
-
- # For all hosts go to the overview page
- define hostextinfo {
- host_name *
- action_url /pnp/index.php?host=$HOSTNAME$
- }
-
-or
-
- # For one service
- define serviceextinfo {
- host_name localhost
- service_description Ping
- action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
- }
-
-{{Info|With Nagios 3.x you can put "action_url" in your service definition or template!}}
-
-
-== Enabling the Nagios-Perfdata-C-Daemon ==
-
-Don't forget to enable the Nagios-Perfdata-C-Daemon with
-
- insserv npcd
- rcnpcd start
-
-at the end...
-
-Have a lot of fun!
-
-
|