From dcb5d1ac018b6e792f82a45c946d94a8a79c1303 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Mon, 9 Feb 2015 12:00:34 +0100 Subject: [PATCH] Change path of fping to default distro and default path Tiquets #1760 (cherry picked from commit 9e32d1800ff7e63df9c797fff821823b185e62bd) --- pandora_server/FreeBSD/pandora_server.conf.new | 5 ++++- pandora_server/NetBSD/pandora_server.conf.new | 5 ++++- pandora_server/conf/pandora_server.conf.new | 3 +++ pandora_server/lib/PandoraFMS/Config.pm | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pandora_server/FreeBSD/pandora_server.conf.new b/pandora_server/FreeBSD/pandora_server.conf.new index 1eb334bff2..f317df4baf 100644 --- a/pandora_server/FreeBSD/pandora_server.conf.new +++ b/pandora_server/FreeBSD/pandora_server.conf.new @@ -247,8 +247,11 @@ xprobe2 /usr/local/bin/xprobe2 nmap /usr/local/bin/nmap +# Default path is /usr/sbin/fping for installation default in distro Centos , if you are installing in other distribution, +# you install fping in /usr/bin/fping and change the path in this line. # Path to the fping binary. Used by the Enterprise ICMP Server. -fping /usr/bin/fping +fping /usr/sbin/fping +# fping /usr/bin/fping # A value that specifies how aggressive nmap should be from 1 to 5. 1 means slower but more reliable, 5 means faster but less reliable. 2 by default. nmap_timing_template 2 diff --git a/pandora_server/NetBSD/pandora_server.conf.new b/pandora_server/NetBSD/pandora_server.conf.new index 83488a0d33..0da706cf8d 100644 --- a/pandora_server/NetBSD/pandora_server.conf.new +++ b/pandora_server/NetBSD/pandora_server.conf.new @@ -248,8 +248,11 @@ xprobe2 /usr/local/bin/xprobe2 nmap /usr/pkg/bin/nmap +# Default path is /usr/sbin/fping for installation default in distro Centos , if you are installing in other distribution, +# you install fping in /usr/bin/fping and change the path in this line. # Path to the fping binary. Used by the Enterprise ICMP Server. -fping /usr/bin/fping +fping /usr/sbin/fping +# fping /usr/bin/fping # A value that specifies how aggressive nmap should be from 1 to 5. 1 means slower but more reliable, 5 means faster but less reliable. 2 by default. nmap_timing_template 2 diff --git a/pandora_server/conf/pandora_server.conf.new b/pandora_server/conf/pandora_server.conf.new index 7aacaa11d6..42834d8f2d 100644 --- a/pandora_server/conf/pandora_server.conf.new +++ b/pandora_server/conf/pandora_server.conf.new @@ -249,8 +249,11 @@ xprobe2 /usr/bin/xprobe2 nmap /usr/bin/nmap +# Default path is /usr/sbin/fping for installation default in distro Centos , if you are installing in other distribution, +# you install fping in /usr/bin/fping and change the path in this line. # Path to the fping binary. Used by the Enterprise ICMP Server. fping /usr/sbin/fping +# fping /usr/bin/fping # A value that specifies how aggressive nmap should be from 1 to 5. 1 means slower but more reliable, 5 means faster but less reliable. 2 by default. nmap_timing_template 2 diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index e5a02c01c2..2a27afe2b3 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -267,7 +267,7 @@ sub pandora_load_config { $pa_config->{"nmap_timing_template"} = 2; # > 5.1 $pa_config->{"recon_timing_template"} = 3; # > 5.1 - $pa_config->{"fping"} = "/usr/bin/fping"; # > 5.1SP2 + $pa_config->{"fping"} = "/usr/sbin/fping"; # > 5.1SP2 # braa for enterprise snmp server $pa_config->{"braa"} = "/usr/bin/braa";