[-]
[+]
|
Changed |
pnp4icinga.spec
|
|
[-]
[+]
|
Deleted |
pnp4icinga-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/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?
|
[-]
[+]
|
Deleted |
pnp4icinga-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/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-0.6.13-check_pnp_rrds.patch
^
|
@@ -0,0 +1,11 @@
+--- scripts/check_pnp_rrds.pl.in.orig 2011-05-19 11:23:32.000000000 +0200
++++ scripts/check_pnp_rrds.pl.in 2011-07-17 22:28:03.781937056 +0200
+@@ -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 $opt_ignore;
|
[-]
[+]
|
Added |
pnp4icinga-0.6.13-verify_pnp_config.patch
^
|
@@ -0,0 +1,52 @@
+--- scripts/verify_pnp_config.pl.in.orig 2011-07-17 22:28:03.781937056 +0200
++++ scripts/verify_pnp_config.pl.in 2011-07-17 22:39:05.464696427 +0200
+@@ -62,10 +62,10 @@
+ #
+ # 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";
++$product = lc("icinga");
++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";
+@@ -75,14 +75,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;
+@@ -374,7 +374,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\"}");
+@@ -1138,6 +1138,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?
|
|
Changed |
pnp4nagios-0.6.13.tar.bz2
^
|