Merge branch 'develop' into ent-10752-mejora-usabilidad-ipam
This commit is contained in:
commit
ade275fb8f
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,73 +0,0 @@
|
||||||
Name: xprobe2
|
|
||||||
Version: 0.3
|
|
||||||
Release: 2
|
|
||||||
Summary: Tool to detect OS remotely by TCP/IP fingerprinting
|
|
||||||
License: GPLv2
|
|
||||||
Group: Network/Security
|
|
||||||
URL: http://xprobe.sourceforge.net/
|
|
||||||
Packager: Sancho Lerena <slerena@gmail.com>
|
|
||||||
Source: http://dl.sf.net/xprobe/xprobe2-%{version}.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
||||||
Provides: %{name}-%{version}
|
|
||||||
Requires: libpcap
|
|
||||||
BuildRequires: gcc-c++ libpcap-devel
|
|
||||||
|
|
||||||
#This is for SUSE build service, to avoid enforce FHS paths
|
|
||||||
#!BuildIgnore: post-build-checks
|
|
||||||
|
|
||||||
%description
|
|
||||||
Xprobe is an alternative to some tools which are heavily dependent upon the
|
|
||||||
usage of the TCP protocol for remote active operating system fingerprinting.
|
|
||||||
|
|
||||||
Xprobe I combines various remote active operating system fingerprinting methods
|
|
||||||
using the ICMP protocol, which were discovered during the "ICMP Usage in
|
|
||||||
Scanning" research project, into a simple, fast, efficient and a powerful way
|
|
||||||
to detect an underlying operating system a targeted host is using.
|
|
||||||
|
|
||||||
Xprobe2 is an active operating system fingerprinting tool with a different
|
|
||||||
approach to operating system fingerprinting. Xprobe2 rely on fuzzy signature
|
|
||||||
matching, probabilistic guesses, multiple matches simultaneously, and a
|
|
||||||
signature database.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup
|
|
||||||
|
|
||||||
%build
|
|
||||||
./configure --with-libpcap-libraries=/usr/lib --with-libpcap-includes=/usr/include/pcap --mandir=%{_mandir} --disable-schemas-install
|
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
|
||||||
ln -s /usr/local/bin/xprobe2 /usr/bin
|
|
||||||
|
|
||||||
%preun
|
|
||||||
|
|
||||||
%postun
|
|
||||||
|
|
||||||
%files
|
|
||||||
|
|
||||||
%defattr(755,root,root)
|
|
||||||
/usr/local/etc
|
|
||||||
/usr/local/etc/xprobe2
|
|
||||||
|
|
||||||
%defattr(644,root,root)
|
|
||||||
%doc AUTHORS CHANGELOG COPYING CREDITS README TODO docs/*
|
|
||||||
%doc /usr/share/man/man1/xprobe2.1.gz
|
|
||||||
/usr/local/etc/xprobe2/xprobe2.conf
|
|
||||||
|
|
||||||
%defattr(755,root,root)
|
|
||||||
/usr/local/bin/xprobe2
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Fri Dec 18 2009 Sancho Lerena <slerena@gmail.com> 3.2-2
|
|
||||||
- A lot of changes to be ready for all RPM plattforms available on build.opensuse.org
|
|
||||||
|
|
||||||
* Tue Dec 08 2009 Sancho Lerena <slerena@gmail.com> 3.2-1
|
|
||||||
- First RPM Spec for SUSE Systems, based on CentOS Spec from Dag Wieers
|
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
Get the original xprobe2-0.3 from Sourceforge:
|
|
||||||
|
|
||||||
http://downloads.sourceforge.net/project/xprobe/xprobe2/Xprobe2%200.3/xprobe2-0.3.tar.gz
|
|
||||||
|
|
||||||
Uncompress it under, for example /tmp/xprobe2-0.3 directory
|
|
||||||
|
|
||||||
Copy the diff file at /tmp
|
|
||||||
|
|
||||||
Execute the patch command:
|
|
||||||
|
|
||||||
patch -p1 < ../xprobe2-0.3.diff.patch
|
|
||||||
|
|
||||||
This should look like:
|
|
||||||
|
|
||||||
patching file CHANGELOG
|
|
||||||
patching file config.status
|
|
||||||
patching file configure
|
|
||||||
patching file libs-external/USI++/src/config.h
|
|
||||||
patching file libs-external/USI++/src/config.log
|
|
||||||
patching file libs-external/USI++/src/config.status
|
|
||||||
patching file libs-external/USI++/src/ip.cc
|
|
||||||
patching file libs-external/USI++/src/Makefile
|
|
||||||
patching file libs-external/USI++/src/misc.cc
|
|
||||||
patching file libs-external/USI++/src/usi++/arp.h
|
|
||||||
patching file libs-external/USI++/src/usi++/config.h
|
|
||||||
patching file libs-external/USI++/src/usi++/datalink.h
|
|
||||||
patching file libs-external/USI++/src/usi++/icmp.h
|
|
||||||
patching file libs-external/USI++/src/usi++/if.h
|
|
||||||
patching file libs-external/USI++/src/usi++/ip.h
|
|
||||||
patching file libs-external/USI++/src/usi++/Layer2.h
|
|
||||||
patching file libs-external/USI++/src/usi++/README
|
|
||||||
patching file libs-external/USI++/src/usi++/RX.h
|
|
||||||
patching file libs-external/USI++/src/usi++/tcp.h
|
|
||||||
patching file libs-external/USI++/src/usi++/TX.h
|
|
||||||
patching file libs-external/USI++/src/usi++/TX_IP.h
|
|
||||||
patching file libs-external/USI++/src/usi++/udp.h
|
|
||||||
patching file libs-external/USI++/src/usi++/usi++
|
|
||||||
patching file libs-external/USI++/src/usi++/usi++.h
|
|
||||||
patching file libs-external/USI++/src/usi++/usi-structs.h
|
|
||||||
patching file libs-external/USI++/usi++/config.h
|
|
||||||
patching file libs-external/USI++/usi++/tcp.h
|
|
||||||
patching file Makefile
|
|
||||||
patching file src/config.h
|
|
||||||
patching file src/defines.h
|
|
||||||
patching file src/Makefile
|
|
||||||
patching file src/xplib/Makefile
|
|
||||||
patching file src/xpmodules/alive_probe/Makefile
|
|
||||||
patching file src/xpmodules/alive_probe/portscanner/Makefile
|
|
||||||
patching file src/xpmodules/alive_probe/ttl_calc/Makefile
|
|
||||||
patching file src/xpmodules/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/icmp_addrmask/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/icmp_echo_id/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/icmp_inforeq/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/icmp_port_unreach/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/icmp_timestamp/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/smb/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/snmp/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/tcp_handshake/Makefile
|
|
||||||
patching file src/xpmodules/os_probe/tcp_rst/Makefile
|
|
||||||
|
|
||||||
Your patched code is now ready to be used.
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Pandora FMS - http://pandorafms.com
|
Pandora FMS - http://pandorafms.com
|
||||||
|
|
||||||
==================================================
|
==================================================
|
||||||
Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
Please see http://pandorafms.org for full contribution list
|
Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!--
|
<!--
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2023 Pandora FMS
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Copyright (c) 2005-2009 Artica ST
|
# Copyright (c) 2005-2023 Pandora FMS
|
||||||
# Author: Sancho Lerena <slerena@artica.es> 2009
|
# Author: Sancho Lerena <slerena@artica.es> 2009
|
||||||
# Licence: GPL2
|
# Licence: GPL2
|
||||||
#
|
#
|
||||||
|
|
|
@ -82,6 +82,10 @@ check_root_permissions () {
|
||||||
## Main
|
## Main
|
||||||
echo "Starting PandoraFMS External DB deployment EL8 ver. $S_VERSION"
|
echo "Starting PandoraFMS External DB deployment EL8 ver. $S_VERSION"
|
||||||
|
|
||||||
|
if ! grep --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! sed --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
|
||||||
|
|
||||||
# Centos Version
|
# Centos Version
|
||||||
if [ ! "$(grep -Ei 'centos|rocky|Almalinux|Red Hat Enterprise' /etc/redhat-release)" ]; then
|
if [ ! "$(grep -Ei 'centos|rocky|Almalinux|Red Hat Enterprise' /etc/redhat-release)" ]; then
|
||||||
printf "\n ${red}Error this is not a Centos/Rocky/Almalinux Base system, this installer is compatible with RHEL/Almalinux/Centos/Rockylinux systems only${reset}\n"
|
printf "\n ${red}Error this is not a Centos/Rocky/Almalinux Base system, this installer is compatible with RHEL/Almalinux/Centos/Rockylinux systems only${reset}\n"
|
||||||
|
|
|
@ -89,6 +89,9 @@ check_root_permissions () {
|
||||||
## Main
|
## Main
|
||||||
echo "Starting PandoraFMS External DB deployment Ubuntu 22.04 ver. $S_VERSION"
|
echo "Starting PandoraFMS External DB deployment Ubuntu 22.04 ver. $S_VERSION"
|
||||||
|
|
||||||
|
if ! grep --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! sed --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
|
||||||
# Ubuntu Version
|
# Ubuntu Version
|
||||||
if [ ! "$(grep -Ei 'Ubuntu' /etc/lsb-release)" ]; then
|
if [ ! "$(grep -Ei 'Ubuntu' /etc/lsb-release)" ]; then
|
||||||
printf "\n ${red}Error this is not a Ubuntu system, this installer is compatible with Ubuntu systems only${reset}\n"
|
printf "\n ${red}Error this is not a Ubuntu system, this installer is compatible with Ubuntu systems only${reset}\n"
|
||||||
|
|
|
@ -1,12 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#export PANDORA_SERVER_IP='newdemos.artica.es' && curl -sSL http://firefly.artica.es/projects/pandora_deploy_agent.sh | bash
|
#export PANDORA_SERVER_IP='newdemos.artica.es' && curl -sSL http://firefly.pandorafms.com/projects/pandora_deploy_agent.sh | bash
|
||||||
|
|
||||||
# define variables
|
# define variables
|
||||||
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
||||||
S_VERSION='2022052301'
|
S_VERSION='2023050901'
|
||||||
LOGFILE="/tmp/pandora-agent-deploy-$(date +%F).log"
|
LOGFILE="/tmp/pandora-agent-deploy-$(date +%F).log"
|
||||||
|
|
||||||
|
#Check if possible to get os version
|
||||||
|
if [ ! -e /etc/os-release ]; then
|
||||||
|
echo ' > Imposible to determinate the OS version for this machine, please make sure you are intalling in a compatible OS'
|
||||||
|
echo ' > More info: https://pandorafms.com/manual/en/documentation/02_installation/01_installing#minimum_software_requirements'
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
# Ansi color code variables
|
# Ansi color code variables
|
||||||
red="\e[0;91m"
|
red="\e[0;91m"
|
||||||
green="\e[0;92m"
|
green="\e[0;92m"
|
||||||
|
@ -49,7 +56,7 @@ check_cmd_status () {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_repo_connection () {
|
check_repo_connection () {
|
||||||
execute_cmd "ping -c 2 firefly.artica.es" "Checking Community repo"
|
execute_cmd "ping -c 2 firefly.pandorafms.com" "Checking Community repo"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_root_permissions () {
|
check_root_permissions () {
|
||||||
|
@ -73,7 +80,7 @@ cd unix && ./pandora_agent_installer --install
|
||||||
|
|
||||||
install_autodiscover () {
|
install_autodiscover () {
|
||||||
local arch=$1
|
local arch=$1
|
||||||
wget http://firefly.artica.es/projects/autodiscover-linux.zip
|
wget http://firefly.pandorafms.com/projects/autodiscover-linux.zip
|
||||||
unzip autodiscover-linux.zip
|
unzip autodiscover-linux.zip
|
||||||
chmod +x $arch/autodiscover
|
chmod +x $arch/autodiscover
|
||||||
mv -f $arch/autodiscover /etc/pandora/plugins/autodiscover
|
mv -f $arch/autodiscover /etc/pandora/plugins/autodiscover
|
||||||
|
@ -84,6 +91,9 @@ echo "Starting PandoraFMS Agent deployment ver. $S_VERSION"
|
||||||
|
|
||||||
execute_cmd "[ $PANDORA_SERVER_IP ]" 'Check Server IP Address' 'Please define env variable PANDORA_SERVER_IP'
|
execute_cmd "[ $PANDORA_SERVER_IP ]" 'Check Server IP Address' 'Please define env variable PANDORA_SERVER_IP'
|
||||||
|
|
||||||
|
if ! grep --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! sed --version &>> $LOGFILE ; then echo 'Error sed is not detected on the system, sed tool is needed for installation.'; exit -1 ;fi
|
||||||
|
|
||||||
#Detect OS
|
#Detect OS
|
||||||
os_name=$(grep ^PRETTY_NAME= /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
os_name=$(grep ^PRETTY_NAME= /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
||||||
execute_cmd "echo $os_name" "OS detected: ${os_name}"
|
execute_cmd "echo $os_name" "OS detected: ${os_name}"
|
||||||
|
@ -148,7 +158,7 @@ if [[ $OS_RELEASE =~ 'rhel' ]] || [[ $OS_RELEASE =~ 'fedora' ]]; then
|
||||||
echo -e "${cyan}Installing agent dependencies...${reset}" ${green}OK${reset}
|
echo -e "${cyan}Installing agent dependencies...${reset}" ${green}OK${reset}
|
||||||
|
|
||||||
# Insatall pandora agent
|
# Insatall pandora agent
|
||||||
$package_manager_cmd install -y http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm &>> $LOGFILE
|
$package_manager_cmd install -y http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm &>> $LOGFILE
|
||||||
echo -en "${cyan}Installing Pandora FMS agent...${reset}"
|
echo -en "${cyan}Installing Pandora FMS agent...${reset}"
|
||||||
check_cmd_status 'Error installing Pandora FMS agent'
|
check_cmd_status 'Error installing Pandora FMS agent'
|
||||||
[[ $PANDORA_AGENT_SSL ]] && execute_cmd "$package_manager_cmd install -y perl-IO-Socket-SSL" "Installing SSL libraries for encrypted connection"
|
[[ $PANDORA_AGENT_SSL ]] && execute_cmd "$package_manager_cmd install -y perl-IO-Socket-SSL" "Installing SSL libraries for encrypted connection"
|
||||||
|
@ -158,7 +168,7 @@ fi
|
||||||
if [[ $OS_RELEASE == 'debian' ]]; then
|
if [[ $OS_RELEASE == 'debian' ]]; then
|
||||||
execute_cmd "apt update" 'Updating repos'
|
execute_cmd "apt update" 'Updating repos'
|
||||||
execute_cmd "apt install -y perl wget curl unzip procps python3 python3-pip" 'Installing agent dependencies'
|
execute_cmd "apt install -y perl wget curl unzip procps python3 python3-pip" 'Installing agent dependencies'
|
||||||
execute_cmd 'wget http://firefly.artica.es/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz' 'Downloading Pandora FMS agent package'
|
execute_cmd 'wget http://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz' 'Downloading Pandora FMS agent package'
|
||||||
execute_cmd 'install_tarball pandorafms_agent_linux-7.0NG.tar.gz' 'Installing Pandora FMS agent'
|
execute_cmd 'install_tarball pandorafms_agent_linux-7.0NG.tar.gz' 'Installing Pandora FMS agent'
|
||||||
[[ $PANDORA_AGENT_SSL ]] && execute_cmd 'apt install -y libio-socket-ssl-perl' "Installing SSL libraries for encrypted connection"
|
[[ $PANDORA_AGENT_SSL ]] && execute_cmd 'apt install -y libio-socket-ssl-perl' "Installing SSL libraries for encrypted connection"
|
||||||
cd $HOME/pandora_deploy_tmp
|
cd $HOME/pandora_deploy_tmp
|
||||||
|
@ -204,4 +214,4 @@ execute_cmd '/etc/init.d/pandora_agent_daemon restart' 'Starting Pandora Agent'
|
||||||
cd
|
cd
|
||||||
execute_cmd 'rm -rf $HOME/pandora_deploy_tmp' 'Cleaning up temporay files'
|
execute_cmd 'rm -rf $HOME/pandora_deploy_tmp' 'Cleaning up temporay files'
|
||||||
|
|
||||||
echo -e "${green}PandoraFMS Agent installed and running, sending data to: $PANDORA_SERVER_IP${reset}"
|
echo -e "${green}PandoraFMS Agent installed and running, sending data to: $PANDORA_SERVER_IP${reset}"
|
||||||
|
|
|
@ -11,7 +11,7 @@ PANDORA_SERVER_CONF=/etc/pandora/pandora_server.conf
|
||||||
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
||||||
|
|
||||||
|
|
||||||
S_VERSION='202304111'
|
S_VERSION='2023062901'
|
||||||
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
||||||
|
|
||||||
# define default variables
|
# define default variables
|
||||||
|
@ -31,6 +31,13 @@ LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
||||||
[ "$PANDORA_BETA" ] || PANDORA_BETA=0
|
[ "$PANDORA_BETA" ] || PANDORA_BETA=0
|
||||||
[ "$PANDORA_LTS" ] || PANDORA_LTS=1
|
[ "$PANDORA_LTS" ] || PANDORA_LTS=1
|
||||||
|
|
||||||
|
#Check if possible to get os version
|
||||||
|
if [ ! -e /etc/os-release ]; then
|
||||||
|
echo ' > Imposible to determinate the OS version for this machine, please make sure you are intalling in a compatible OS'
|
||||||
|
echo ' > More info: https://pandorafms.com/manual/en/documentation/02_installation/01_installing#minimum_software_requirements'
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
# Ansi color code variables
|
# Ansi color code variables
|
||||||
red="\e[0;91m"
|
red="\e[0;91m"
|
||||||
green="\e[0;92m"
|
green="\e[0;92m"
|
||||||
|
@ -75,7 +82,7 @@ check_pre_pandora () {
|
||||||
export MYSQL_PWD=$DBPASS
|
export MYSQL_PWD=$DBPASS
|
||||||
|
|
||||||
echo -en "${cyan}Checking environment ... ${reset}"
|
echo -en "${cyan}Checking environment ... ${reset}"
|
||||||
rpm -qa | grep 'pandorafms_' &>> /dev/null && local fail=true
|
rpm -qa | grep 'pandorafms_' | grep -v pandorafms_agent_* | grep -v "pandorawmic" &>> /dev/null && local fail=true
|
||||||
[ -d "$PANDORA_CONSOLE" ] && local fail=true
|
[ -d "$PANDORA_CONSOLE" ] && local fail=true
|
||||||
[ -f /usr/bin/pandora_server ] && local fail=true
|
[ -f /usr/bin/pandora_server ] && local fail=true
|
||||||
echo "use $DBNAME" | mysql -uroot -P$DBPORT -h$DBHOST &>> /dev/null && local fail=true
|
echo "use $DBNAME" | mysql -uroot -P$DBPORT -h$DBHOST &>> /dev/null && local fail=true
|
||||||
|
@ -85,7 +92,7 @@ check_pre_pandora () {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_repo_connection () {
|
check_repo_connection () {
|
||||||
execute_cmd "ping -c 2 firefly.artica.es" "Checking Community repo"
|
execute_cmd "ping -c 2 firefly.pandorafms.com" "Checking Community repo"
|
||||||
execute_cmd "ping -c 2 support.pandorafms.com" "Checking Enterprise repo"
|
execute_cmd "ping -c 2 support.pandorafms.com" "Checking Enterprise repo"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,6 +112,12 @@ check_root_permissions () {
|
||||||
## Main
|
## Main
|
||||||
echo "Starting PandoraFMS Community deployment ver. $S_VERSION"
|
echo "Starting PandoraFMS Community deployment ver. $S_VERSION"
|
||||||
|
|
||||||
|
#check tools
|
||||||
|
if ! grep --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! sed --version &>> $LOGFILE ; then echo 'Error sed is not detected on the system, sed tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! curl --version &>> $LOGFILE ; then echo 'Error curl is not detected on the system, curl tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! ping -V &>> $LOGFILE ; then echo 'Error ping is not detected on the system, ping tool is needed for installation.'; exit -1 ;fi
|
||||||
|
|
||||||
# Centos Version
|
# Centos Version
|
||||||
if [ ! "$(grep -i centos /etc/redhat-release)" ]; then
|
if [ ! "$(grep -i centos /etc/redhat-release)" ]; then
|
||||||
printf "${red}Error this is not a Centos Base system, this installer is compatible with Centos systems only${reset}\n"
|
printf "${red}Error this is not a Centos Base system, this installer is compatible with Centos systems only${reset}\n"
|
||||||
|
@ -118,7 +131,7 @@ os_name=$(grep ^PRETTY_NAME= /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
||||||
execute_cmd "echo $os_name" "OS detected: ${os_name}"
|
execute_cmd "echo $os_name" "OS detected: ${os_name}"
|
||||||
|
|
||||||
echo -en "${cyan}Check Centos Version...${reset}"
|
echo -en "${cyan}Check Centos Version...${reset}"
|
||||||
[ $(sed -nr 's/VERSION_ID+=\s*"([0-9])"$/\1/p' /etc/os-release) -eq '7' ]
|
[[ $(sed -nr 's/VERSION_ID+=\s*"([0-9])"$/\1/p' /etc/os-release) -eq '7' ]]
|
||||||
check_cmd_status 'Error OS version, Centos 7 is expected'
|
check_cmd_status 'Error OS version, Centos 7 is expected'
|
||||||
|
|
||||||
# initialice logfile
|
# initialice logfile
|
||||||
|
@ -272,8 +285,7 @@ console_dependencies=" \
|
||||||
mod_ssl \
|
mod_ssl \
|
||||||
libzstd \
|
libzstd \
|
||||||
openldap-clients \
|
openldap-clients \
|
||||||
chromium \
|
chromium"
|
||||||
http://firefly.artica.es/centos8/phantomjs-2.1.1-1.el7.x86_64.rpm"
|
|
||||||
execute_cmd "yum install -y $console_dependencies" "Installing Pandora FMS Console dependencies"
|
execute_cmd "yum install -y $console_dependencies" "Installing Pandora FMS Console dependencies"
|
||||||
|
|
||||||
# Server dependencies
|
# Server dependencies
|
||||||
|
@ -300,9 +312,8 @@ server_dependencies=" \
|
||||||
bind-utils \
|
bind-utils \
|
||||||
whois \
|
whois \
|
||||||
cpanminus \
|
cpanminus \
|
||||||
http://firefly.artica.es/centos7/xprobe2-0.3-12.2.x86_64.rpm \
|
http://firefly.pandorafms.com/centos7/wmic-1.4-1.el7.x86_64.rpm \
|
||||||
http://firefly.artica.es/centos7/wmic-1.4-1.el7.x86_64.rpm \
|
https://firefly.pandorafms.com/centos7/pandorawmic-1.0.0-1.x86_64.rpm"
|
||||||
https://firefly.artica.es/centos7/pandorawmic-1.0.0-1.x86_64.rpm"
|
|
||||||
execute_cmd "yum install -y $server_dependencies" "Installing Pandora FMS Server dependencies"
|
execute_cmd "yum install -y $server_dependencies" "Installing Pandora FMS Server dependencies"
|
||||||
|
|
||||||
# install cpan dependencies
|
# install cpan dependencies
|
||||||
|
@ -311,13 +322,13 @@ execute_cmd "cpanm -i Thread::Semaphore" "Installing Thread::Semaphore"
|
||||||
|
|
||||||
# SDK VMware perl dependencies
|
# SDK VMware perl dependencies
|
||||||
vmware_dependencies=" \
|
vmware_dependencies=" \
|
||||||
http://firefly.artica.es/centos8/VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.rpm \
|
http://firefly.pandorafms.com/centos8/VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.rpm \
|
||||||
perl-JSON \
|
perl-JSON \
|
||||||
perl-Archive-Zip \
|
perl-Archive-Zip \
|
||||||
openssl-devel \
|
openssl-devel \
|
||||||
perl-Crypt-CBC \
|
perl-Crypt-CBC \
|
||||||
perl-Digest-SHA \
|
perl-Digest-SHA \
|
||||||
http://firefly.artica.es/centos7/perl-Crypt-OpenSSL-AES-0.02-1.el7.x86_64.rpm"
|
http://firefly.pandorafms.com/centos7/perl-Crypt-OpenSSL-AES-0.02-1.el7.x86_64.rpm"
|
||||||
execute_cmd "yum install -y $vmware_dependencies" "Installing SDK VMware perl dependencies"
|
execute_cmd "yum install -y $vmware_dependencies" "Installing SDK VMware perl dependencies"
|
||||||
|
|
||||||
# Instant client Oracle
|
# Instant client Oracle
|
||||||
|
@ -328,7 +339,6 @@ execute_cmd "yum install -y $oracle_dependencies || yum reinstall -y $oracle_dep
|
||||||
|
|
||||||
#ipam dependencies
|
#ipam dependencies
|
||||||
ipam_dependencies=" \
|
ipam_dependencies=" \
|
||||||
http://firefly.artica.es/centos7/xprobe2-0.3-12.2.x86_64.rpm \
|
|
||||||
perl(NetAddr::IP) \
|
perl(NetAddr::IP) \
|
||||||
perl(Sys::Syslog) \
|
perl(Sys::Syslog) \
|
||||||
perl(DBI) \
|
perl(DBI) \
|
||||||
|
@ -451,20 +461,20 @@ export MYSQL_PWD=$DBPASS
|
||||||
#Define packages
|
#Define packages
|
||||||
#Define packages
|
#Define packages
|
||||||
if [ "$PANDORA_LTS" -eq '1' ] ; then
|
if [ "$PANDORA_LTS" -eq '1' ] ; then
|
||||||
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_server-7.0NG.noarch.rpm"
|
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_server-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_console-7.0NG.noarch.rpm"
|
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_console-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
||||||
elif [ "$PANDORA_LTS" -ne '1' ] ; then
|
elif [ "$PANDORA_LTS" -ne '1' ] ; then
|
||||||
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_server-7.0NG.noarch.rpm"
|
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_server-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_console-7.0NG.noarch.rpm"
|
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_console-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if beta is enable
|
# if beta is enable
|
||||||
if [ "$PANDORA_BETA" -eq '1' ] ; then
|
if [ "$PANDORA_BETA" -eq '1' ] ; then
|
||||||
PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandora_enterprise_nightlies/pandorafms_server-latest.x86_64.rpm"
|
PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandora_enterprise_nightlies/pandorafms_server-latest.x86_64.rpm"
|
||||||
PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandora_enterprise_nightlies/pandorafms_console-latest.noarch.rpm"
|
PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandora_enterprise_nightlies/pandorafms_console-latest.noarch.rpm"
|
||||||
PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Downloading Pandora Packages
|
# Downloading Pandora Packages
|
||||||
|
@ -617,7 +627,16 @@ net.core.optmem_max = 81920
|
||||||
|
|
||||||
EO_KO
|
EO_KO
|
||||||
|
|
||||||
[ -d /dev/lxd/ ] || execute_cmd "sysctl --system" "Applying Kernel optimization"
|
echo -en "${cyan}Applying Kernel optimization... ${reset}"
|
||||||
|
sysctl --system &>> $LOGFILE
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${red}Fail${reset}"
|
||||||
|
echo -e "${yellow}Your kernel could not be optimized, you may be running this script in a virtualized environment with no support for accessing the kernel.${reset}"
|
||||||
|
echo -e "${yellow}This system can be used for testing but is not recommended for a production environment.${reset}"
|
||||||
|
echo "$old_sysctl_file" > old_sysctl_file
|
||||||
|
else
|
||||||
|
echo -e "${green}OK${reset}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix pandora_server.{log,error} permissions to allow Console check them
|
# Fix pandora_server.{log,error} permissions to allow Console check them
|
||||||
|
@ -697,6 +716,9 @@ echo "* * * * * root wget -q -O - --no-check-certificate --load-cookies /tmp/cro
|
||||||
systemctl enable pandora_agent_daemon &>> $LOGFILE
|
systemctl enable pandora_agent_daemon &>> $LOGFILE
|
||||||
execute_cmd "systemctl start pandora_agent_daemon" "Starting Pandora FMS Agent"
|
execute_cmd "systemctl start pandora_agent_daemon" "Starting Pandora FMS Agent"
|
||||||
|
|
||||||
|
# Enable postrix
|
||||||
|
systemctl enable postfix --now &>> "$LOGFILE"
|
||||||
|
|
||||||
#SSH banner
|
#SSH banner
|
||||||
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
||||||
|
|
||||||
|
@ -704,7 +726,7 @@ cat > /etc/issue.net << EOF_banner
|
||||||
|
|
||||||
Welcome to Pandora FMS appliance on CentOS
|
Welcome to Pandora FMS appliance on CentOS
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
Go to Public http://$ipplublic/pandora_console$to to login web console
|
Go to Public http://$ipplublic/pandora_console to login web console
|
||||||
$(ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v "172.17.0.1" | awk '{print $2}' | awk -F '/' '{print "Go to Local http://"$1"/pandora_console to login web console"}')
|
$(ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v "172.17.0.1" | awk '{print $2}' | awk -F '/' '{print "Go to Local http://"$1"/pandora_console to login web console"}')
|
||||||
|
|
||||||
You can find more information at http://pandorafms.com
|
You can find more information at http://pandorafms.com
|
||||||
|
@ -725,4 +747,4 @@ execute_cmd "rm -rf $HOME/pandora_deploy_tmp" "Removing temporary files"
|
||||||
GREEN='\033[01;32m'
|
GREEN='\033[01;32m'
|
||||||
NONE='\033[0m'
|
NONE='\033[0m'
|
||||||
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
||||||
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use these credentials to log in Pandora Console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use these credentials to log in Pandora Console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
||||||
|
|
|
@ -14,7 +14,7 @@ PANDORA_SERVER_CONF=/etc/pandora/pandora_server.conf
|
||||||
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
||||||
|
|
||||||
|
|
||||||
S_VERSION='202304111'
|
S_VERSION='2023062901'
|
||||||
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
||||||
|
|
||||||
# define default variables
|
# define default variables
|
||||||
|
@ -35,10 +35,18 @@ LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
||||||
[ "$PANDORA_LTS" ] || PANDORA_LTS=1
|
[ "$PANDORA_LTS" ] || PANDORA_LTS=1
|
||||||
[ "$PANDORA_BETA" ] || PANDORA_BETA=0
|
[ "$PANDORA_BETA" ] || PANDORA_BETA=0
|
||||||
|
|
||||||
|
#Check if possible to get os version
|
||||||
|
if [ ! -e /etc/os-release ]; then
|
||||||
|
echo ' > Imposible to determinate the OS version for this machine, please make sure you are intalling in a compatible OS'
|
||||||
|
echo ' > More info: https://pandorafms.com/manual/en/documentation/02_installation/01_installing#minimum_software_requirements'
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
# Ansi color code variables
|
# Ansi color code variables
|
||||||
red="\e[0;91m"
|
red="\e[0;91m"
|
||||||
green="\e[0;92m"
|
green="\e[0;92m"
|
||||||
cyan="\e[0;36m"
|
cyan="\e[0;36m"
|
||||||
|
yellow="\e[33m"
|
||||||
reset="\e[0m"
|
reset="\e[0m"
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
@ -76,7 +84,7 @@ check_cmd_status () {
|
||||||
check_pre_pandora () {
|
check_pre_pandora () {
|
||||||
|
|
||||||
echo -en "${cyan}Checking environment ... ${reset}"
|
echo -en "${cyan}Checking environment ... ${reset}"
|
||||||
rpm -qa | grep -v "pandorawmic" | grep 'pandorafms_' &>> /dev/null && local fail=true
|
rpm -qa | grep 'pandorafms_' | grep -v pandorafms_agent_* | grep -v "pandorawmic" &>> /dev/null && local fail=true
|
||||||
[ -d "$PANDORA_CONSOLE" ] && local fail=true
|
[ -d "$PANDORA_CONSOLE" ] && local fail=true
|
||||||
[ -f /usr/bin/pandora_server ] && local fail=true
|
[ -f /usr/bin/pandora_server ] && local fail=true
|
||||||
|
|
||||||
|
@ -90,7 +98,7 @@ check_pre_pandora () {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_repo_connection () {
|
check_repo_connection () {
|
||||||
execute_cmd "ping -c 2 firefly.artica.es" "Checking Community repo"
|
execute_cmd "ping -c 2 firefly.pandorafms.com" "Checking Community repo"
|
||||||
execute_cmd "ping -c 2 support.pandorafms.com" "Checking Enterprise repo"
|
execute_cmd "ping -c 2 support.pandorafms.com" "Checking Enterprise repo"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,6 +129,12 @@ installing_docker () {
|
||||||
## Main
|
## Main
|
||||||
echo "Starting PandoraFMS Community deployment EL8 ver. $S_VERSION"
|
echo "Starting PandoraFMS Community deployment EL8 ver. $S_VERSION"
|
||||||
|
|
||||||
|
#check tools
|
||||||
|
if ! grep --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! sed --version &>> $LOGFILE ; then echo 'Error sed is not detected on the system, sed tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! curl --version &>> $LOGFILE ; then echo 'Error curl is not detected on the system, curl tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! ping -V &>> $LOGFILE ; then echo 'Error ping is not detected on the system, ping tool is needed for installation.'; exit -1 ;fi
|
||||||
|
|
||||||
# Centos Version
|
# Centos Version
|
||||||
if [ ! "$(grep -Ei 'centos|rocky|Almalinux|Red Hat Enterprise' /etc/redhat-release)" ]; then
|
if [ ! "$(grep -Ei 'centos|rocky|Almalinux|Red Hat Enterprise' /etc/redhat-release)" ]; then
|
||||||
printf "\n ${red}Error this is not a Centos/Rocky/Almalinux Base system, this installer is compatible with RHEL/Almalinux/Centos/Rockylinux systems only${reset}\n"
|
printf "\n ${red}Error this is not a Centos/Rocky/Almalinux Base system, this installer is compatible with RHEL/Almalinux/Centos/Rockylinux systems only${reset}\n"
|
||||||
|
@ -129,8 +143,8 @@ fi
|
||||||
|
|
||||||
|
|
||||||
echo -en "${cyan}Check Centos Version...${reset}"
|
echo -en "${cyan}Check Centos Version...${reset}"
|
||||||
[ $(sed -nr 's/VERSION_ID+=\s*"([0-9]).*"$/\1/p' /etc/os-release) -eq '8' ]
|
[[ $(sed -nr 's/VERSION_ID+=\s*"([0-9]).*"$/\1/p' /etc/os-release) -eq '8' ]]
|
||||||
check_cmd_status 'Error OS version, RHEL/Almalinux/Centos/Rockylinux 8+ is expected'
|
check_cmd_status 'Error OS version, RHEL/Almalinux/Centos/Rockylinux 8.x is expected'
|
||||||
|
|
||||||
#Detect OS
|
#Detect OS
|
||||||
os_name=$(grep ^PRETTY_NAME= /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
os_name=$(grep ^PRETTY_NAME= /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
||||||
|
@ -327,11 +341,10 @@ console_dependencies=" \
|
||||||
mod_ssl \
|
mod_ssl \
|
||||||
libzstd \
|
libzstd \
|
||||||
openldap-clients \
|
openldap-clients \
|
||||||
http://firefly.artica.es/centos8/chromium-110.0.5481.177-1.el7.x86_64.rpm \
|
http://firefly.pandorafms.com/centos8/chromium-110.0.5481.177-1.el7.x86_64.rpm \
|
||||||
http://firefly.artica.es/centos8/chromium-common-110.0.5481.177-1.el7.x86_64.rpm \
|
http://firefly.pandorafms.com/centos8/chromium-common-110.0.5481.177-1.el7.x86_64.rpm \
|
||||||
http://firefly.artica.es/centos8/perl-Net-Telnet-3.04-1.el8.noarch.rpm \
|
http://firefly.pandorafms.com/centos8/perl-Net-Telnet-3.04-1.el8.noarch.rpm \
|
||||||
http://firefly.artica.es/centos7/wmic-1.4-1.el7.x86_64.rpm \
|
http://firefly.pandorafms.com/centos7/wmic-1.4-1.el7.x86_64.rpm"
|
||||||
http://firefly.artica.es/centos8/phantomjs-2.1.1-1.el7.x86_64.rpm"
|
|
||||||
execute_cmd "dnf install -y $console_dependencies" "Installing Pandora FMS Console dependencies"
|
execute_cmd "dnf install -y $console_dependencies" "Installing Pandora FMS Console dependencies"
|
||||||
|
|
||||||
# Server dependencies
|
# Server dependencies
|
||||||
|
@ -357,9 +370,9 @@ server_dependencies=" \
|
||||||
java \
|
java \
|
||||||
bind-utils \
|
bind-utils \
|
||||||
whois \
|
whois \
|
||||||
http://firefly.artica.es/centos7/xprobe2-0.3-12.2.x86_64.rpm \
|
libnsl \
|
||||||
http://firefly.artica.es/centos7/wmic-1.4-1.el7.x86_64.rpm \
|
http://firefly.pandorafms.com/centos7/wmic-1.4-1.el7.x86_64.rpm \
|
||||||
https://firefly.artica.es/centos8/pandorawmic-1.0.0-1.x86_64.rpm"
|
https://firefly.pandorafms.com/centos8/pandorawmic-1.0.0-1.x86_64.rpm"
|
||||||
execute_cmd "dnf install -y $server_dependencies" "Installing Pandora FMS Server dependencies"
|
execute_cmd "dnf install -y $server_dependencies" "Installing Pandora FMS Server dependencies"
|
||||||
|
|
||||||
# SDK VMware perl dependencies
|
# SDK VMware perl dependencies
|
||||||
|
@ -373,8 +386,8 @@ vmware_dependencies=" \
|
||||||
perl-Math-Random-ISAAC \
|
perl-Math-Random-ISAAC \
|
||||||
perl-JSON \
|
perl-JSON \
|
||||||
perl-Crypt-SSLeay \
|
perl-Crypt-SSLeay \
|
||||||
http://firefly.artica.es/centos8/perl-Crypt-OpenSSL-AES-0.02-1.el8.x86_64.rpm \
|
http://firefly.pandorafms.com/centos8/perl-Crypt-OpenSSL-AES-0.02-1.el8.x86_64.rpm \
|
||||||
http://firefly.artica.es/centos8/VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.rpm"
|
http://firefly.pandorafms.com/centos8/VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.rpm"
|
||||||
execute_cmd "dnf install -y $vmware_dependencies" "Installing SDK VMware perl dependencies"
|
execute_cmd "dnf install -y $vmware_dependencies" "Installing SDK VMware perl dependencies"
|
||||||
|
|
||||||
# Instant client Oracle
|
# Instant client Oracle
|
||||||
|
@ -385,7 +398,6 @@ execute_cmd "dnf install -y $oracle_dependencies" "Installing Oracle Instant cli
|
||||||
|
|
||||||
#ipam dependencies
|
#ipam dependencies
|
||||||
ipam_dependencies=" \
|
ipam_dependencies=" \
|
||||||
http://firefly.artica.es/centos7/xprobe2-0.3-12.2.x86_64.rpm \
|
|
||||||
perl(NetAddr::IP) \
|
perl(NetAddr::IP) \
|
||||||
perl(Sys::Syslog) \
|
perl(Sys::Syslog) \
|
||||||
perl(DBI) \
|
perl(DBI) \
|
||||||
|
@ -507,20 +519,20 @@ export MYSQL_PWD=$DBPASS
|
||||||
|
|
||||||
#Define packages
|
#Define packages
|
||||||
if [ "$PANDORA_LTS" -eq '1' ] ; then
|
if [ "$PANDORA_LTS" -eq '1' ] ; then
|
||||||
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_server-7.0NG.noarch.rpm"
|
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_server-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_console-7.0NG.noarch.rpm"
|
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_console-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/LTS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
||||||
elif [ "$PANDORA_LTS" -ne '1' ] ; then
|
elif [ "$PANDORA_LTS" -ne '1' ] ; then
|
||||||
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_server-7.0NG.noarch.rpm"
|
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_server-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_console-7.0NG.noarch.rpm"
|
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_console-7.0NG.noarch.rpm"
|
||||||
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if beta is enable
|
# if beta is enable
|
||||||
if [ "$PANDORA_BETA" -eq '1' ] ; then
|
if [ "$PANDORA_BETA" -eq '1' ] ; then
|
||||||
PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandora_enterprise_nightlies/pandorafms_server-latest.x86_64.rpm"
|
PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandora_enterprise_nightlies/pandorafms_server-latest.x86_64.rpm"
|
||||||
PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandora_enterprise_nightlies/pandorafms_console-latest.noarch.rpm"
|
PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandora_enterprise_nightlies/pandorafms_console-latest.noarch.rpm"
|
||||||
PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/RHEL_CentOS/pandorafms_agent_linux-7.0NG.noarch.rpm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Downloading Pandora Packages
|
# Downloading Pandora Packages
|
||||||
|
@ -608,8 +620,9 @@ sed -i -e "s/^upload_max_filesize.*/upload_max_filesize = 800M/g" /etc/php.ini
|
||||||
sed -i -e "s/^memory_limit.*/memory_limit = 800M/g" /etc/php.ini
|
sed -i -e "s/^memory_limit.*/memory_limit = 800M/g" /etc/php.ini
|
||||||
sed -i -e "s/.*post_max_size =.*/post_max_size = 800M/" /etc/php.ini
|
sed -i -e "s/.*post_max_size =.*/post_max_size = 800M/" /etc/php.ini
|
||||||
|
|
||||||
#adding 900s to httpd timeout
|
#adding 900s to httpd timeout and 300 to ProxyTimeout
|
||||||
echo 'TimeOut 900' > /etc/httpd/conf.d/timeout.conf
|
echo 'TimeOut 900' > /etc/httpd/conf.d/timeout.conf
|
||||||
|
echo 'ProxyTimeout 300' >> /etc/httpd/conf.d/timeout.conf
|
||||||
|
|
||||||
cat > /var/www/html/index.html << EOF_INDEX
|
cat > /var/www/html/index.html << EOF_INDEX
|
||||||
<meta HTTP-EQUIV="REFRESH" content="0; url=/pandora_console/">
|
<meta HTTP-EQUIV="REFRESH" content="0; url=/pandora_console/">
|
||||||
|
@ -654,6 +667,9 @@ EOF_ENV
|
||||||
# Kernel optimization
|
# Kernel optimization
|
||||||
|
|
||||||
if [ "$SKIP_KERNEL_OPTIMIZATIONS" -eq '0' ] ; then
|
if [ "$SKIP_KERNEL_OPTIMIZATIONS" -eq '0' ] ; then
|
||||||
|
|
||||||
|
old_sysctl_file=$(cat /etc/sysctl.conf)
|
||||||
|
|
||||||
cat >> /etc/sysctl.conf <<EO_KO
|
cat >> /etc/sysctl.conf <<EO_KO
|
||||||
# Pandora FMS Optimization
|
# Pandora FMS Optimization
|
||||||
|
|
||||||
|
@ -680,7 +696,17 @@ net.core.optmem_max = 81920
|
||||||
|
|
||||||
EO_KO
|
EO_KO
|
||||||
|
|
||||||
[ -d /dev/lxd/ ] || execute_cmd "sysctl --system" "Applying Kernel optimization"
|
echo -en "${cyan}Applying Kernel optimization... ${reset}"
|
||||||
|
sysctl --system &>> $LOGFILE
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${red}Fail${reset}"
|
||||||
|
echo -e "${yellow}Your kernel could not be optimized, you may be running this script in a virtualized environment with no support for accessing the kernel.${reset}"
|
||||||
|
echo -e "${yellow}This system can be used for testing but is not recommended for a production environment.${reset}"
|
||||||
|
echo "$old_sysctl_file" > old_sysctl_file
|
||||||
|
else
|
||||||
|
echo -e "${green}OK${reset}"
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix pandora_server.{log,error} permissions to allow Console check them
|
# Fix pandora_server.{log,error} permissions to allow Console check them
|
||||||
|
@ -760,6 +786,9 @@ echo "* * * * * root wget -q -O - --no-check-certificate --load-cookies /tmp/cro
|
||||||
systemctl enable pandora_agent_daemon &>> "$LOGFILE"
|
systemctl enable pandora_agent_daemon &>> "$LOGFILE"
|
||||||
execute_cmd "systemctl start pandora_agent_daemon" "Starting Pandora FMS Agent"
|
execute_cmd "systemctl start pandora_agent_daemon" "Starting Pandora FMS Agent"
|
||||||
|
|
||||||
|
# Enable postfix
|
||||||
|
systemctl enable postfix --now &>> "$LOGFILE"
|
||||||
|
|
||||||
#SSH banner
|
#SSH banner
|
||||||
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
||||||
|
|
||||||
|
@ -767,7 +796,7 @@ cat > /etc/issue.net << EOF_banner
|
||||||
|
|
||||||
Welcome to Pandora FMS appliance on RHEL/Rocky Linux 8
|
Welcome to Pandora FMS appliance on RHEL/Rocky Linux 8
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
Go to Public http://$ipplublic/pandora_console$to to login web console
|
Go to Public http://$ipplublic/pandora_console to login web console
|
||||||
$(ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v "172.17.0.1" | awk '{print $2}' | awk -F '/' '{print "Go to Local http://"$1"/pandora_console to login web console"}')
|
$(ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v "172.17.0.1" | awk '{print $2}' | awk -F '/' '{print "Go to Local http://"$1"/pandora_console to login web console"}')
|
||||||
|
|
||||||
You can find more information at http://pandorafms.com
|
You can find more information at http://pandorafms.com
|
||||||
|
@ -788,4 +817,4 @@ execute_cmd "rm -rf $HOME/pandora_deploy_tmp" "Removing temporary files"
|
||||||
GREEN='\033[01;32m'
|
GREEN='\033[01;32m'
|
||||||
NONE='\033[0m'
|
NONE='\033[0m'
|
||||||
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
||||||
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use these credentials to log in Pandora Console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use these credentials to log in Pandora Console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
||||||
|
|
|
@ -17,7 +17,7 @@ PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
||||||
WORKDIR=/opt/pandora/deploy
|
WORKDIR=/opt/pandora/deploy
|
||||||
|
|
||||||
|
|
||||||
S_VERSION='202304181'
|
S_VERSION='2023062901'
|
||||||
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
||||||
rm -f $LOGFILE &> /dev/null # remove last log before start
|
rm -f $LOGFILE &> /dev/null # remove last log before start
|
||||||
|
|
||||||
|
@ -37,6 +37,12 @@ rm -f $LOGFILE &> /dev/null # remove last log before start
|
||||||
[ "$PANDORA_BETA" ] || PANDORA_BETA=0
|
[ "$PANDORA_BETA" ] || PANDORA_BETA=0
|
||||||
[ "$PANDORA_LTS" ] || PANDORA_LTS=1
|
[ "$PANDORA_LTS" ] || PANDORA_LTS=1
|
||||||
|
|
||||||
|
#Check if possible to get os version
|
||||||
|
if [ ! -e /etc/os-release ]; then
|
||||||
|
echo ' > Imposible to determinate the OS version for this machine, please make sure you are intalling in a compatible OS'
|
||||||
|
echo ' > More info: https://pandorafms.com/manual/en/documentation/02_installation/01_installing#minimum_software_requirements'
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
# Ansi color code variables
|
# Ansi color code variables
|
||||||
red="\e[0;91m"
|
red="\e[0;91m"
|
||||||
|
@ -90,7 +96,7 @@ check_pre_pandora () {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_repo_connection () {
|
check_repo_connection () {
|
||||||
execute_cmd "ping -c 2 firefly.artica.es" "Checking Community repo"
|
execute_cmd "ping -c 2 firefly.pandorafms.com" "Checking Community repo"
|
||||||
execute_cmd "ping -c 2 support.pandorafms.com" "Checking Enterprise repo"
|
execute_cmd "ping -c 2 support.pandorafms.com" "Checking Enterprise repo"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,6 +131,12 @@ installing_docker () {
|
||||||
## Main
|
## Main
|
||||||
echo "Starting PandoraFMS Community deployment Ubuntu 22.04 ver. $S_VERSION"
|
echo "Starting PandoraFMS Community deployment Ubuntu 22.04 ver. $S_VERSION"
|
||||||
|
|
||||||
|
#check tools
|
||||||
|
if ! grep --version &>> $LOGFILE ; then echo 'Error grep is not detected on the system, grep tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! sed --version &>> $LOGFILE ; then echo 'Error sed is not detected on the system, sed tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! curl --version &>> $LOGFILE ; then echo 'Error curl is not detected on the system, curl tool is needed for installation.'; exit -1 ;fi
|
||||||
|
if ! ping -V &>> $LOGFILE ; then echo 'Error ping is not detected on the system, ping tool is needed for installation.'; exit -1 ;fi
|
||||||
|
|
||||||
# Ubuntu Version
|
# Ubuntu Version
|
||||||
if [ ! "$(grep -Ei 'Ubuntu' /etc/lsb-release)" ]; then
|
if [ ! "$(grep -Ei 'Ubuntu' /etc/lsb-release)" ]; then
|
||||||
printf "\n ${red}Error this is not a Ubuntu system, this installer is compatible with Ubuntu systems only${reset}\n"
|
printf "\n ${red}Error this is not a Ubuntu system, this installer is compatible with Ubuntu systems only${reset}\n"
|
||||||
|
@ -133,7 +145,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
echo -en "${cyan}Check Ubuntu Version...${reset}"
|
echo -en "${cyan}Check Ubuntu Version...${reset}"
|
||||||
[ $(sed -nr 's/VERSION_ID+=\s*"([0-9][0-9].[0-9][0-9])"$/\1/p' /etc/os-release) == "22.04" ]
|
[[ $(sed -nr 's/VERSION_ID+=\s*"([0-9][0-9].[0-9][0-9])"$/\1/p' /etc/os-release) == "22.04" ]]
|
||||||
check_cmd_status 'Error OS version, Ubuntu 22.04 is expected'
|
check_cmd_status 'Error OS version, Ubuntu 22.04 is expected'
|
||||||
|
|
||||||
#Detect OS
|
#Detect OS
|
||||||
|
@ -253,7 +265,6 @@ server_dependencies=" \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
postfix \
|
postfix \
|
||||||
unzip \
|
unzip \
|
||||||
xprobe \
|
|
||||||
coreutils \
|
coreutils \
|
||||||
libio-compress-perl \
|
libio-compress-perl \
|
||||||
libmoosex-role-timer-perl \
|
libmoosex-role-timer-perl \
|
||||||
|
@ -275,29 +286,20 @@ server_dependencies=" \
|
||||||
libgeo-ip-perl \
|
libgeo-ip-perl \
|
||||||
arping \
|
arping \
|
||||||
snmp-mibs-downloader \
|
snmp-mibs-downloader \
|
||||||
|
libnsl2 \
|
||||||
openjdk-8-jdk "
|
openjdk-8-jdk "
|
||||||
execute_cmd "apt install -y $server_dependencies" "Installing Pandora FMS Server dependencies"
|
execute_cmd "apt install -y $server_dependencies" "Installing Pandora FMS Server dependencies"
|
||||||
|
|
||||||
execute_cmd "installing_docker" "Installing Docker for debug"
|
execute_cmd "installing_docker" "Installing Docker for debug"
|
||||||
|
|
||||||
# wmic and pandorawmic
|
# wmic and pandorawmic
|
||||||
execute_cmd "curl -O https://firefly.artica.es/pandorafms/utils/bin/wmic" "Downloading wmic"
|
execute_cmd "curl -O https://firefly.pandorafms.com/pandorafms/utils/bin/wmic" "Downloading wmic"
|
||||||
execute_cmd "curl -O https://firefly.artica.es/pandorafms/utils/bin/pandorawmic" "Downloading pandorawmic"
|
execute_cmd "curl -O https://firefly.pandorafms.com/pandorafms/utils/bin/pandorawmic" "Downloading pandorawmic"
|
||||||
echo -en "${cyan}Installing wmic and pandorawmic...${reset}"
|
echo -en "${cyan}Installing wmic and pandorawmic...${reset}"
|
||||||
chmod +x pandorawmic wmic &>> "$LOGFILE" && \
|
chmod +x pandorawmic wmic &>> "$LOGFILE" && \
|
||||||
cp -a wmic /usr/bin/ &>> "$LOGFILE" && \
|
cp -a wmic /usr/bin/ &>> "$LOGFILE" && \
|
||||||
cp -a pandorawmic /usr/bin/ &>> "$LOGFILE"
|
cp -a pandorawmic /usr/bin/ &>> "$LOGFILE"
|
||||||
check_cmd_status "Error Installing phanromjs"
|
check_cmd_status "Error Installing pandorawmic/wmic"
|
||||||
|
|
||||||
# phantomjs
|
|
||||||
echo -en "${cyan}Installing phantomjs...${reset}"
|
|
||||||
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
|
|
||||||
export OPENSSL_CONF=/etc/ssl
|
|
||||||
curl -LSs -O "https://firefly.artica.es/pandorafms/utils/$PHANTOM_JS.tar.bz2" &>> "$LOGFILE" && \
|
|
||||||
tar xvjf "$PHANTOM_JS.tar.bz2" &>> "$LOGFILE" && \
|
|
||||||
mv $PHANTOM_JS/bin/phantomjs /usr/bin &>> "$LOGFILE" && \
|
|
||||||
/usr/bin/phantomjs --version &>> "$LOGFILE"
|
|
||||||
check_cmd_status "Error Installing phanromjs"
|
|
||||||
|
|
||||||
# create symlink for fping
|
# create symlink for fping
|
||||||
rm -f /usr/sbin/fping &>> "$LOGFILE"
|
rm -f /usr/sbin/fping &>> "$LOGFILE"
|
||||||
|
@ -323,7 +325,7 @@ vmware_dependencies="\
|
||||||
libsoap-lite-perl \
|
libsoap-lite-perl \
|
||||||
libmodule-build-perl"
|
libmodule-build-perl"
|
||||||
execute_cmd "apt install -y $vmware_dependencies" "Installing VMware SDK dependencies"
|
execute_cmd "apt install -y $vmware_dependencies" "Installing VMware SDK dependencies"
|
||||||
execute_cmd "wget https://firefly.artica.es/pandorafms/utils/VMware-vSphere-Perl-SDK-7.0.0-16453907.x86_64.tar.gz" "Downloading VMware SDK"
|
execute_cmd "wget https://firefly.pandorafms.com/pandorafms/utils/VMware-vSphere-Perl-SDK-7.0.0-16453907.x86_64.tar.gz" "Downloading VMware SDK"
|
||||||
echo -en "${cyan}Installing VMware SDK...${reset}"
|
echo -en "${cyan}Installing VMware SDK...${reset}"
|
||||||
tar xvzf VMware-vSphere-Perl-SDK-7.0.0-16453907.x86_64.tar.gz &>> "$LOGFILE"
|
tar xvzf VMware-vSphere-Perl-SDK-7.0.0-16453907.x86_64.tar.gz &>> "$LOGFILE"
|
||||||
cd vmware-vsphere-cli-distrib/ &>> "$LOGFILE"
|
cd vmware-vsphere-cli-distrib/ &>> "$LOGFILE"
|
||||||
|
@ -358,7 +360,6 @@ source '/root/.profile' &>> "$LOGFILE"
|
||||||
|
|
||||||
#ipam dependencies
|
#ipam dependencies
|
||||||
ipam_dependencies=" \
|
ipam_dependencies=" \
|
||||||
xprobe \
|
|
||||||
libnetaddr-ip-perl \
|
libnetaddr-ip-perl \
|
||||||
coreutils \
|
coreutils \
|
||||||
libdbd-mysql-perl \
|
libdbd-mysql-perl \
|
||||||
|
@ -458,19 +459,19 @@ execute_cmd "systemctl restart mysql" "Configuring and restarting database engin
|
||||||
|
|
||||||
#Define packages
|
#Define packages
|
||||||
if [ "$PANDORA_LTS" -eq '1' ] ; then
|
if [ "$PANDORA_LTS" -eq '1' ] ; then
|
||||||
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandorafms/latest/Tarball/LTS/pandorafms_server-7.0NG.tar.gz"
|
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/Tarball/LTS/pandorafms_server-7.0NG.tar.gz"
|
||||||
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandorafms/latest/Tarball/LTS/pandorafms_console-7.0NG.tar.gz"
|
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/Tarball/LTS/pandorafms_console-7.0NG.tar.gz"
|
||||||
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/Tarball/LTS/pandorafms_agent_linux-7.0NG.tar.gz"
|
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/Tarball/LTS/pandorafms_agent_linux-7.0NG.tar.gz"
|
||||||
elif [ "$PANDORA_LTS" -ne '1' ] ; then
|
elif [ "$PANDORA_LTS" -ne '1' ] ; then
|
||||||
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandorafms/latest/Tarball/pandorafms_server-7.0NG.tar.gz"
|
[ "$PANDORA_SERVER_PACKAGE" ] || PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_server-7.0NG.tar.gz"
|
||||||
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandorafms/latest/Tarball/pandorafms_console-7.0NG.tar.gz"
|
[ "$PANDORA_CONSOLE_PACKAGE" ] || PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_console-7.0NG.tar.gz"
|
||||||
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz"
|
[ "$PANDORA_AGENT_PACKAGE" ] || PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PANDORA_BETA" -eq '1' ] ; then
|
if [ "$PANDORA_BETA" -eq '1' ] ; then
|
||||||
PANDORA_SERVER_PACKAGE="http://firefly.artica.es/pandora_enterprise_nightlies/pandorafms_server-latest_x86_64.tar.gz"
|
PANDORA_SERVER_PACKAGE="http://firefly.pandorafms.com/pandora_enterprise_nightlies/pandorafms_server-latest_x86_64.tar.gz"
|
||||||
PANDORA_CONSOLE_PACKAGE="http://firefly.artica.es/pandora_enterprise_nightlies/pandorafms_console-latest.tar.gz"
|
PANDORA_CONSOLE_PACKAGE="http://firefly.pandorafms.com/pandora_enterprise_nightlies/pandorafms_console-latest.tar.gz"
|
||||||
PANDORA_AGENT_PACKAGE="http://firefly.artica.es/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz"
|
PANDORA_AGENT_PACKAGE="http://firefly.pandorafms.com/pandorafms/latest/Tarball/pandorafms_agent_linux-7.0NG.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Downloading Pandora Packages
|
# Downloading Pandora Packages
|
||||||
|
@ -607,8 +608,9 @@ sed --follow-symlinks -i -e "s/^memory_limit.*/memory_limit = 800M/g" /etc/php.i
|
||||||
sed --follow-symlinks -i -e "s/.*post_max_size =.*/post_max_size = 800M/" /etc/php.ini
|
sed --follow-symlinks -i -e "s/.*post_max_size =.*/post_max_size = 800M/" /etc/php.ini
|
||||||
sed --follow-symlinks -i -e "s/^disable_functions/;disable_functions/" /etc/php.ini
|
sed --follow-symlinks -i -e "s/^disable_functions/;disable_functions/" /etc/php.ini
|
||||||
|
|
||||||
#adding 900s to httpd timeout
|
#adding 900s to httpd timeout and 300 to ProxyTimeout
|
||||||
#echo 'TimeOut 900' > /etc/httpd/conf.d/timeout.conf
|
echo 'TimeOut 900' > /etc/apache2/conf-enabled/timeout.conf
|
||||||
|
echo 'ProxyTimeout 300' >> /etc/apache2/conf-enabled/timeout.conf
|
||||||
|
|
||||||
cat > /var/www/html/index.html << EOF_INDEX
|
cat > /var/www/html/index.html << EOF_INDEX
|
||||||
<meta HTTP-EQUIV="REFRESH" content="0; url=/pandora_console/">
|
<meta HTTP-EQUIV="REFRESH" content="0; url=/pandora_console/">
|
||||||
|
@ -681,7 +683,16 @@ net.core.optmem_max = 81920
|
||||||
|
|
||||||
EO_KO
|
EO_KO
|
||||||
|
|
||||||
[ -d /dev/lxd/ ] || execute_cmd "sysctl --system" "Applying Kernel optimization"
|
echo -en "${cyan}Applying Kernel optimization... ${reset}"
|
||||||
|
sysctl --system &>> $LOGFILE
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${red}Fail${reset}"
|
||||||
|
echo -e "${yellow}Your kernel could not be optimized, you may be running this script in a virtualized environment with no support for accessing the kernel.${reset}"
|
||||||
|
echo -e "${yellow}This system can be used for testing but is not recommended for a production environment.${reset}"
|
||||||
|
echo "$old_sysctl_file" > old_sysctl_file
|
||||||
|
else
|
||||||
|
echo -e "${green}OK${reset}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix pandora_server.{log,error} permissions to allow Console check them
|
# Fix pandora_server.{log,error} permissions to allow Console check them
|
||||||
|
@ -771,6 +782,9 @@ systemctl enable pandora_agent_daemon &>> "$LOGFILE"
|
||||||
#fix path phantomjs
|
#fix path phantomjs
|
||||||
sed --follow-symlinks -i -e "s/^openssl_conf = openssl_init/#openssl_conf = openssl_init/g" /etc/ssl/openssl.cnf &>> "$LOGFILE"
|
sed --follow-symlinks -i -e "s/^openssl_conf = openssl_init/#openssl_conf = openssl_init/g" /etc/ssl/openssl.cnf &>> "$LOGFILE"
|
||||||
|
|
||||||
|
# Enable postfix
|
||||||
|
systemctl enable postfix --now &>> "$LOGFILE"
|
||||||
|
|
||||||
#SSH banner
|
#SSH banner
|
||||||
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
||||||
|
|
||||||
|
@ -778,7 +792,7 @@ cat > /etc/issue.net << EOF_banner
|
||||||
|
|
||||||
Welcome to Pandora FMS appliance on Ubuntu
|
Welcome to Pandora FMS appliance on Ubuntu
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
Go to Public http://$ipplublic/pandora_console$to to login web console
|
Go to Public http://$ipplublic/pandora_console to login web console
|
||||||
$(ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v "172.17.0.1" | awk '{print $2}' | awk -F '/' '{print "Go to Local http://"$1"/pandora_console to login web console"}')
|
$(ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v "172.17.0.1" | awk '{print $2}' | awk -F '/' '{print "Go to Local http://"$1"/pandora_console to login web console"}')
|
||||||
|
|
||||||
You can find more information at http://pandorafms.com
|
You can find more information at http://pandorafms.com
|
||||||
|
@ -799,4 +813,4 @@ execute_cmd "rm -rf $WORKDIR" "Removing temporary files"
|
||||||
GREEN='\033[01;32m'
|
GREEN='\033[01;32m'
|
||||||
NONE='\033[0m'
|
NONE='\033[0m'
|
||||||
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
||||||
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use these credentials to log in Pandora Console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use these credentials to log in Pandora Console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
||||||
|
|
|
@ -125,7 +125,6 @@ RUN dnf install -y --setopt=tsflags=nodocs \
|
||||||
bind-utils \
|
bind-utils \
|
||||||
whois \
|
whois \
|
||||||
libnsl \
|
libnsl \
|
||||||
http://firefly.artica.es/centos7/xprobe2-0.3-12.2.x86_64.rpm \
|
|
||||||
http://firefly.artica.es/centos7/wmic-1.4-1.el7.x86_64.rpm \
|
http://firefly.artica.es/centos7/wmic-1.4-1.el7.x86_64.rpm \
|
||||||
https://firefly.artica.es/centos8/pandorawmic-1.0.0-1.x86_64.rpm ; dnf clean all
|
https://firefly.artica.es/centos8/pandorawmic-1.0.0-1.x86_64.rpm ; dnf clean all
|
||||||
|
|
||||||
|
@ -136,7 +135,7 @@ RUN dnf install -y http://firefly.artica.es/centos8/perl-Crypt-OpenSSL-AES-0.02-
|
||||||
# Instant client Oracle
|
# Instant client Oracle
|
||||||
RUN dnf install -y https://download.oracle.com/otn_software/linux/instantclient/19800/oracle-instantclient19.8-basic-19.8.0.0.0-1.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/19800/oracle-instantclient19.8-sqlplus-19.8.0.0.0-1.x86_64.rpm
|
RUN dnf install -y https://download.oracle.com/otn_software/linux/instantclient/19800/oracle-instantclient19.8-basic-19.8.0.0.0-1.x86_64.rpm https://download.oracle.com/otn_software/linux/instantclient/19800/oracle-instantclient19.8-sqlplus-19.8.0.0.0-1.x86_64.rpm
|
||||||
# Install IPAM dependencies
|
# Install IPAM dependencies
|
||||||
RUN dnf install -y http://firefly.artica.es/centos7/xprobe2-0.3-12.2.x86_64.rpm "perl(NetAddr::IP)" "perl(Sys::Syslog)" "perl(DBI)" "perl(XML::Simple)" "perl(Geo::IP)" "perl(IO::Socket::INET6)" "perl(XML::Twig)" "perl(DBD::mysql)" --setopt=tsflags=nodocs
|
RUN dnf install -y "perl(NetAddr::IP)" "perl(Sys::Syslog)" "perl(DBI)" "perl(XML::Simple)" "perl(Geo::IP)" "perl(IO::Socket::INET6)" "perl(XML::Twig)" "perl(DBD::mysql)" --setopt=tsflags=nodocs
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 80 443 41121 162/udp
|
EXPOSE 80 443 41121 162/udp
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Generic Daemon launcher for Unix (AIX, HP-UX, SunOS, Linux)
|
# Generic Daemon launcher for Unix (AIX, HP-UX, SunOS, Linux)
|
||||||
# (c) 2008-2009 Artica ST
|
# (c) 2008-2023 Pandora FMS
|
||||||
# (c) 2008-2009 Sancho Lerena <slerena@gmail.com>
|
# (c) 2008-2009 Sancho Lerena <slerena@gmail.com>
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Pandora FMS Mail Transfer
|
# Pandora FMS Mail Transfer
|
||||||
# This is a tool for transfering Pandora FMS data files by mail (SMTP/POP)
|
# This is a tool for transfering Pandora FMS data files by mail (SMTP/POP)
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Copyright (c) 2011-2021 Artica Soluciones Tecnologicas S.L
|
# Copyright (c) 2011-2023 Pandora FMS
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
|
|
|
@ -3,7 +3,7 @@ Pandora Mail Transfer
|
||||||
|
|
||||||
1st Edition , 3 May 2011
|
1st Edition , 3 May 2011
|
||||||
|
|
||||||
(c) Artica Soluciones Tecnológicas 2005-2011
|
(c) Pandora FMS 2005-2023
|
||||||
(c) Juan Manuel Ramon <juanma@artica.es>
|
(c) Juan Manuel Ramon <juanma@artica.es>
|
||||||
(c) Javier Lanz <javier.lanz@artica.es>
|
(c) Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# Pandora FMS Agent Plugin for SunONE
|
# Pandora FMS Agent Plugin for SunONE
|
||||||
# (c) Artica Soluciones Tecnologicas <info@artica.es> 2011
|
# (c) Pandora FMS <info@pandorafms.com> 2011
|
||||||
# v2, 1 Sep 2011
|
# v2, 1 Sep 2011
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Copyright (C) 2011 Artica ST http://artica.es
|
Copyright (C) 2011-2023 Pandora FMS https://pandorafms.com
|
||||||
Copyright (C) 2011 Sancho Lerena <slerena@artica.es>
|
Copyright (C) 2011 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
Build and link Pandora FMS Embedded Agent
|
Build and link Pandora FMS Embedded Agent
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Pandora FMS Embedded Agent
|
// Pandora FMS Embedded Agent
|
||||||
// (c) Artica Soluciones Tecnológicas S.L 2011
|
// (c) Pandora FMS 2011-2023
|
||||||
// (c) Sancho Lerena <slerena@artica.es>
|
// (c) Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Pandora FMS Embedded Agent
|
// Pandora FMS Embedded Agent
|
||||||
// (c) Artica Soluciones Tecnológicas S.L 2011
|
// (c) Pandora FMS 2011-2023
|
||||||
// (c) Sancho Lerena <slerena@artica.es>
|
// (c) Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Pandora FMS Embedded Agent
|
// Pandora FMS Embedded Agent
|
||||||
// (c) Artica Soluciones Tecnológicas S.L 2011
|
// (c) Pandora FMS 2011-2023
|
||||||
// (c) Sancho Lerena <slerena@artica.es>
|
// (c) Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Pandora FMS Embedded Agent
|
// Pandora FMS Embedded Agent
|
||||||
// (c) Artica Soluciones Tecnológicas S.L 2011
|
// (c) Pandora FMS 2011-2023
|
||||||
// (c) Sancho Lerena <slerena@artica.es>
|
// (c) Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Pandora FMS Embedded Agent
|
// Pandora FMS Embedded Agent
|
||||||
// (c) Artica Soluciones Tecnológicas S.L 2011
|
// (c) Pandora FMS 2011-2023
|
||||||
// (c) Sancho Lerena <slerena@artica.es>
|
// (c) Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Pandora FMS Embedded Agent
|
// Pandora FMS Embedded Agent
|
||||||
// (c) Artica Soluciones Tecnológicas S.L 2011
|
// (c) Pandora FMS 2011-2023
|
||||||
// (c) Sancho Lerena <slerena@artica.es>
|
// (c) Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Pandora FMS Embedded Agent, startup script
|
# Pandora FMS Embedded Agent, startup script
|
||||||
# Copyright (c) 2011 Artica ST, <info@artica.es>
|
# Copyright (c) 2011-2023 Pandora FMS, <info@pandorafms.com>
|
||||||
# Tested on Busybox 1.13
|
# Tested on Busybox 1.13
|
||||||
# v4.0 Build 110122
|
# v4.0 Build 110122
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Pandora FMS Embedded Agent Installer (c) 2011 Artica ST
|
# Pandora FMS Embedded Agent Installer (c) 2011-2023 Pandora FMS
|
||||||
# Embedded Version (generic), for Busybox enviroments only
|
# Embedded Version (generic), for Busybox enviroments only
|
||||||
# Please see http://www.pandorafms.org
|
# Please see http://www.pandorafms.org
|
||||||
# v4.0 Build 110121
|
# v4.0 Build 110121
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 7.0NG.770, AIX version
|
# Version 7.0NG.772, AIX version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2023 Pandora FMS
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#Pandora FMS- http:#pandorafms.com
|
#Pandora FMS- http:#pandorafms.com
|
||||||
# ==================================================
|
# ==================================================
|
||||||
# Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2005-2023 Pandora FMS
|
||||||
# Please see http:#pandorafms.org for full contribution list
|
# Please see http:#pandorafms.org for full contribution list
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 7.0NG.770, FreeBSD Version
|
# Version 7.0NG.772, FreeBSD Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2023 Pandora FMS
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 7.0NG.770, HP-UX Version
|
# Version 7.0NG.772, HP-UX Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2023 Pandora FMS
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 7.0NG.770, GNU/Linux
|
# Version 7.0NG.772, GNU/Linux
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2023 Pandora FMS
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 7.0NG.770, GNU/Linux
|
# Version 7.0NG.772, GNU/Linux
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2023 Pandora FMS
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Pandora FMS Embedded Agent, startup script
|
# Pandora FMS Embedded Agent, startup script
|
||||||
# Copyright (c) 2011 Artica ST, <info@artica.es>
|
# Copyright (c) 2011-2023 Pandora FMS, <info@pandorafms.com>
|
||||||
# Tested on Busybox 1.13
|
# Tested on Busybox 1.13
|
||||||
# v4.0 Build 110122
|
# v4.0 Build 110122
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
|
@ -46,5 +46,5 @@ License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
The project is distributed under the GPL License v2 or later.
|
The project is distributed under the GPL License v2 or later.
|
||||||
Copyright (C) 2004-2011 Pandora FMS development team
|
Copyright (C) 2004-2023 Pandora FMS development team
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Licensed under GPL license v2.
|
Licensed under GPL license v2.
|
||||||
Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
Copyright (c) 2003-2023 Pandora FMS
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 7.0NG.770, Solaris Version
|
# Version 7.0NG.772, Solaris Version
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2003-2023 Pandora FMS
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Base config file for Pandora FMS Windows Agent
|
# Base config file for Pandora FMS Windows Agent
|
||||||
# (c) 2006-2021 Artica Soluciones Tecnologicas
|
# (c) 2006-2023 Pandora FMS
|
||||||
# Version 7.0NG.770
|
# Version 7.0NG.772
|
||||||
# This program is Free Software, you can redistribute it and/or modify it
|
# This program is Free Software, you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public Licence as published by the Free Software
|
# under the terms of the GNU General Public Licence as published by the Free Software
|
||||||
# Foundation; either version 2 of the Licence or any later version
|
# Foundation; either version 2 of the Licence or any later version
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Pandora FMS Generic Unix/Perl Agent
|
# Pandora FMS Generic Unix/Perl Agent
|
||||||
# (c) 2009-2011 Artica Soluciones Tecnológicas
|
# (c) 2009-2023 Pandora FMS
|
||||||
# with the help of many people. Please see http://pandorafms.org
|
# with the help of many people. Please see http://pandorafms.org
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
@ -2018,7 +2018,7 @@ sub pandora_agent_run () {
|
||||||
$Xml = $xml_header . $Xml . "</agent_data>";
|
$Xml = $xml_header . $Xml . "</agent_data>";
|
||||||
|
|
||||||
# Save XML data file
|
# Save XML data file
|
||||||
my $temp_file = $Conf{'temporal'} . '/' . $Conf{'agent_name'} . '.' . time () . '.data';
|
my $temp_file = $Conf{'temporal'} . '/' . md5($Conf{'agent_name'}) . '.' . time () . '.data';
|
||||||
if (-l $temp_file && !unlink($temp_file)) {
|
if (-l $temp_file && !unlink($temp_file)) {
|
||||||
error ("File '$temp_file' already exists as a symlink and could not be removed: $!");
|
error ("File '$temp_file' already exists as a symlink and could not be removed: $!");
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -2285,6 +2285,6 @@ This is released under the GNU Lesser General Public License.
|
||||||
|
|
||||||
=head1 COPYRIGHT
|
=head1 COPYRIGHT
|
||||||
|
|
||||||
Copyright (c) 2005-2010 Artica Soluciones Tecnologicas S.L
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Pandora FMS Agent Daemon launcher for Unix (AIX, HP-UX, SunOS, Linux)
|
# Pandora FMS Agent Daemon launcher for Unix (AIX, HP-UX, SunOS, Linux)
|
||||||
# (c) 2008-2010 Artica ST
|
# (c) 2008-2023 Pandora FMS
|
||||||
# (c) 2008-2010 Sancho Lerena <slerena@gmail.com>
|
# (c) 2008-2010 Sancho Lerena <slerena@gmail.com>
|
||||||
#
|
#
|
||||||
# Please see http://www.pandorafms.org
|
# Please see http://www.pandorafms.org
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
# pandora_exec - Execute a command with a time limit.
|
# pandora_exec - Execute a command with a time limit.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008-2023 Artica PFMS S.L.
|
# Copyright (c) 2008-2023 Pandora FMS S.L.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Pandora FMS Agent Installer for Unix (generic installer)
|
# Pandora FMS Agent Installer for Unix (generic installer)
|
||||||
# (c) 2008-2010 Artica ST
|
# (c) 2008-2023 Pandora FMS
|
||||||
# (c) 2008-2010 Sancho Lerena <slerena@gmail.com>
|
# (c) 2008-2010 Sancho Lerena <slerena@gmail.com>
|
||||||
#
|
#
|
||||||
# This is a generic installer for all Unix-like systems.(AIX, HP-UX, SunOS, Linux, FreeBSD)
|
# This is a generic installer for all Unix-like systems.(AIX, HP-UX, SunOS, Linux, FreeBSD)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008 Ramon Novoa <rnovoa@artica.es>
|
# Copyright (c) 2008 Ramon Novoa <rnovoa@artica.es>
|
||||||
# Copyright (c) 2008 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2008-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# grep_log Perl script to search log files for a matching pattern. The last
|
# grep_log Perl script to search log files for a matching pattern. The last
|
||||||
# searched position is saved in an index file so that consecutive
|
# searched position is saved in an index file so that consecutive
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2009-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# inventory Generate a hardware/software inventory.
|
# inventory Generate a hardware/software inventory.
|
||||||
#
|
#
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#
|
#
|
||||||
# Usage: nagios_plugin_wrapper <module_name> <nagios plugin execution with its parameters>
|
# Usage: nagios_plugin_wrapper <module_name> <nagios plugin execution with its parameters>
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Copyright (c) 2010 Artica Soluciones Tecnologicas S.L
|
# Copyright (c) 2010-2023 Pandora FMS
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 Ramon Novoa <rnovoa@artica.es>
|
# Copyright (c) 2009 Ramon Novoa <rnovoa@artica.es>
|
||||||
# Copyright (c) 2009 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2009-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# pandora_df Retrieve filesystem disk usage. By default information for all
|
# pandora_df Retrieve filesystem disk usage. By default information for all
|
||||||
# filesystems is returned, but one or more filesystems may be
|
# filesystems is returned, but one or more filesystems may be
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# Update binary tool
|
# Update binary tool
|
||||||
# Copyright (c) 2010 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2010-2023 Pandora FMS.
|
||||||
# Copyright (c) Sancho Lerena <slerena@artica.es>
|
# Copyright (c) Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007-2008 Ramon Novoa <rnovoa@artica.es>
|
# Copyright (c) 2007-2008 Ramon Novoa <rnovoa@artica.es>
|
||||||
# Copyright (c) 2007-2008 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2007-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# tentacle_client.pl Tentacle Client. See https://pandorafms.com/docs/ for
|
# tentacle_client.pl Tentacle Client. See https://pandorafms.com/docs/ for
|
||||||
# protocol description.
|
# protocol description.
|
||||||
|
@ -1095,7 +1095,7 @@ Protocol description and more info at: L<< https://pandorafms.com/docs/index.php
|
||||||
|
|
||||||
=head1 COPYRIGHT
|
=head1 COPYRIGHT
|
||||||
|
|
||||||
Copyright (c) 2005-2010 Artica Soluciones Tecnologicas S.L
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Tentacle have IANA assigned port tpc/41121 as official port.
|
# Tentacle have IANA assigned port tpc/41121 as official port.
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Copyright (c) 2007-2008 Ramon Novoa <rnovoa@artica.es>
|
# Copyright (c) 2007-2008 Ramon Novoa <rnovoa@artica.es>
|
||||||
# Copyright (c) 2005-2022 Artica Soluciones Tecnologicas S.L
|
# Copyright (c) 2005-2023 Pandora FMS
|
||||||
#
|
#
|
||||||
# tentacle_server.pl Tentacle Server. See https://pandorafms.com/docs/ for
|
# tentacle_server.pl Tentacle Server. See https://pandorafms.com/docs/ for
|
||||||
# protocol description.
|
# protocol description.
|
||||||
|
@ -1884,7 +1884,7 @@ Protocol description and more info at: L<< https://pandorafms.com/docs/index.php
|
||||||
|
|
||||||
=head1 COPYRIGHT
|
=head1 COPYRIGHT
|
||||||
|
|
||||||
Copyright (c) 2005-2010 Artica Soluciones Tecnologicas S.L
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
|
|
@ -54,5 +54,5 @@ License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
The project is distributed under the GPL License v2 or later.
|
The project is distributed under the GPL License v2 or later.
|
||||||
Copyright (C) 2004-2010 Pandora FMS development team
|
Copyright (C) 2004-2023 Pandora FMS development team
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/ksh
|
#!/usr/bin/ksh
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Pandora FMS AIX Agent
|
# Pandora FMS AIX Agent
|
||||||
# (c) 2009 Artica Soluciones Tecnológicas SL
|
# (c) 2009-2023 Pandora FMS
|
||||||
# with the help of many people. Please see http://pandorafms.org
|
# with the help of many people. Please see http://pandorafms.org
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Fichero de configuracion base de agentes de Pandora
|
# Fichero de configuracion base de agentes de Pandora
|
||||||
# Base config file for Pandora agents
|
# Base config file for Pandora agents
|
||||||
# Version 7.0NG.770, AIX version
|
# Version 7.0NG.772, AIX version
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
# ==================
|
# ==================
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/ksh
|
#!/usr/bin/ksh
|
||||||
|
|
||||||
# Pandora FMS AIX Agent, startup script
|
# Pandora FMS AIX Agent, startup script
|
||||||
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
|
# Copyright (c) 2006-2023 Pandora FMS, <info@pandorafms.com>
|
||||||
# v1.3.1 Build 091104
|
# v1.3.1 Build 091104
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
|
|
|
@ -54,5 +54,5 @@ License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
The project is distributed under the GPL License v2 or later.
|
The project is distributed under the GPL License v2 or later.
|
||||||
Copyright (C) 2004-2010 Pandora FMS development team
|
Copyright (C) 2004-2023 Pandora FMS development team
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Fichero de configuracion base de agentes de Pandora
|
# Fichero de configuracion base de agentes de Pandora
|
||||||
# Base config file for Pandora agents
|
# Base config file for Pandora agents
|
||||||
# Version 7.0NG.770
|
# Version 7.0NG.772
|
||||||
# FreeBSD/IPSO version
|
# FreeBSD/IPSO version
|
||||||
# Licenced under GPL licence, 2003-2007 Sancho Lerena
|
# Licenced under GPL licence, 2003-2007 Sancho Lerena
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Pandora FMS Generic IPSO/HPUX
|
# Pandora FMS Generic IPSO/HPUX
|
||||||
# (c) 2009-2021 Artica Soluciones Tecnológicas SL
|
# (c) 2009-2023 Pandora FMS
|
||||||
# with the help of many people. Please see http://pandorafms.org
|
# with the help of many people. Please see http://pandorafms.org
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/csh
|
#!/bin/csh
|
||||||
|
|
||||||
# Pandora FMS IPSO/BSD, startup script
|
# Pandora FMS IPSO/BSD, startup script
|
||||||
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
|
# Copyright (c) 2006-2023 Pandora FMS, <info@pandorafms.com>
|
||||||
# IPSO/BSD (csh)
|
# IPSO/BSD (csh)
|
||||||
# v1.2 Build 091104
|
# v1.2 Build 091104
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
|
@ -54,5 +54,5 @@ License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
The project is distributed under the GPL License v2 or later.
|
The project is distributed under the GPL License v2 or later.
|
||||||
Copyright (C) 2004-2010 Pandora FMS development team
|
Copyright (C) 2004-2023 Pandora FMS development team
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Pandora FMS Generic HPUX Agent
|
# Pandora FMS Generic HPUX Agent
|
||||||
# (c) 2009 Artica Soluciones Tecnológicas SL
|
# (c) 2009-2023 Pandora FMS
|
||||||
# with the help of many people. Please see http://pandorafms.org
|
# with the help of many people. Please see http://pandorafms.org
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Fichero de configuracion base de agentes de Pandora
|
# Fichero de configuracion base de agentes de Pandora
|
||||||
# Base config file for Pandora agents
|
# Base config file for Pandora agents
|
||||||
# Version 7.0NG.770, HPUX Version
|
# Version 7.0NG.772, HPUX Version
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
# ==================
|
# ==================
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Pandora FMS HP-UX Agent, startup script
|
# Pandora FMS HP-UX Agent, startup script
|
||||||
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
|
# Copyright (c) 2006-2023 Pandora FMS, <info@pandorafms.com>
|
||||||
# v1.2 Build 091104
|
# v1.2 Build 091104
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#Pandora FMS- http:#pandorafms.com
|
#Pandora FMS- http:#pandorafms.com
|
||||||
# ==================================================
|
# ==================================================
|
||||||
# Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
# Copyright (c) 2005-2023 Pandora FMS
|
||||||
# Please see http:#pandorafms.org for full contribution list
|
# Please see http:#pandorafms.org for full contribution list
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
|
|
|
@ -54,5 +54,5 @@ License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
The project is distributed under the GPL License v2 or later.
|
The project is distributed under the GPL License v2 or later.
|
||||||
Copyright (C) 2004-2010 Pandora FMS development team
|
Copyright (C) 2004-2023 Pandora FMS development team
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
# Pandora FMS Generic Linux Agent
|
# Pandora FMS Generic Linux Agent
|
||||||
# (c) 2010 Artica Soluciones Tecnológicas
|
# (c) 2010-2023 Pandora FMS
|
||||||
# with the help of many people. Please see http://pandorafms.org
|
# with the help of many people. Please see http://pandorafms.org
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
@ -172,7 +172,7 @@ function configure_agent {
|
||||||
if [ "$CRON_MODE" == "0" ]
|
if [ "$CRON_MODE" == "0" ]
|
||||||
then
|
then
|
||||||
# Script banner at start
|
# Script banner at start
|
||||||
echo "Pandora FMS Agent $AGENT_VERSION (c) Artica ST 2003-2010"
|
echo "Pandora FMS Agent $AGENT_VERSION (c) Pandora FMS 2003-2023"
|
||||||
echo "This program is licensed under GPL2 Terms. http://pandorafms.org"
|
echo "This program is licensed under GPL2 Terms. http://pandorafms.org"
|
||||||
echo "Running in $NOMBRE_HOST at $TIMESTAMP"
|
echo "Running in $NOMBRE_HOST at $TIMESTAMP"
|
||||||
echo " "
|
echo " "
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Base config file for Pandora FMS agents
|
# Base config file for Pandora FMS agents
|
||||||
# Version 7.0NG.770
|
# Version 7.0NG.772
|
||||||
# Licensed under GPL license v2,
|
# Licensed under GPL license v2,
|
||||||
# (c) 2003-2021 Artica Soluciones Tecnologicas
|
# (c) 2003-2023 Pandora FMS
|
||||||
# please visit http://pandora.sourceforge.net
|
# please visit http://pandora.sourceforge.net
|
||||||
|
|
||||||
# General Parameters
|
# General Parameters
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Pandora FMS Linux Agent, startup script
|
# Pandora FMS Linux Agent, startup script
|
||||||
# Copyright (c) 2006-2010 Artica ST, <info@artica.es>
|
# Copyright (c) 2006-2023 Pandora FMS, <info@pandorafms.com>
|
||||||
# Linux Version (generic), for SuSe and Debian/Ubuntu.
|
# Linux Version (generic), for SuSe and Debian/Ubuntu.
|
||||||
# other Linux distros could not work properly without modifications
|
# other Linux distros could not work properly without modifications
|
||||||
# v3.0.1 Build 091104
|
# v3.0.1 Build 091104
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Pandora FMS Agent Installer (c) 2008-2010 Artica ST
|
# Pandora FMS Agent Installer (c) 2008-2023 Pandora FMS
|
||||||
# Linux Version (generic), for SuSe and Debian/Ubuntu only
|
# Linux Version (generic), for SuSe and Debian/Ubuntu only
|
||||||
# other Linux distros could not work properly without modifications
|
# other Linux distros could not work properly without modifications
|
||||||
# Please see http://www.pandorafms.org
|
# Please see http://www.pandorafms.org
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008 Ramon Novoa <rnovoa@artica.es>
|
# Copyright (c) 2008 Ramon Novoa <rnovoa@artica.es>
|
||||||
# Copyright (c) 2008 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2008-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# grep_log Perl script to search log files for a matching pattern. The last
|
# grep_log Perl script to search log files for a matching pattern. The last
|
||||||
# searched position is saved in an index file so that consecutive
|
# searched position is saved in an index file so that consecutive
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2009-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# inventory Generate a hardware/software inventory.
|
# inventory Generate a hardware/software inventory.
|
||||||
#
|
#
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 Ramon Novoa <rnovoa@artica.es>
|
# Copyright (c) 2009 Ramon Novoa <rnovoa@artica.es>
|
||||||
# Copyright (c) 2009 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2009-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# pandora_df Retrieve filesystem disk usage. By default information for all
|
# pandora_df Retrieve filesystem disk usage. By default information for all
|
||||||
# filesystems is returned, but one or more filesystems may be
|
# filesystems is returned, but one or more filesystems may be
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007-2008 Ramon Novoa <rnovoa@artica.es>
|
# Copyright (c) 2007-2008 Ramon Novoa <rnovoa@artica.es>
|
||||||
# Copyright (c) 2007-2008 Artica Soluciones Tecnologicas S.L.
|
# Copyright (c) 2007-2023 Pandora FMS.
|
||||||
#
|
#
|
||||||
# tentacle_client.pl Tentacle Client. See https://pandorafms.com/docs/ for
|
# tentacle_client.pl Tentacle Client. See https://pandorafms.com/docs/ for
|
||||||
# protocol description.
|
# protocol description.
|
||||||
|
@ -1095,7 +1095,7 @@ Protocol description and more info at: L<< https://pandorafms.com/docs/index.php
|
||||||
|
|
||||||
=head1 COPYRIGHT
|
=head1 COPYRIGHT
|
||||||
|
|
||||||
Copyright (c) 2005-2010 Artica Soluciones Tecnologicas S.L
|
Copyright (c) 2005-2023 Pandora FMS
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
|
|
@ -60,5 +60,5 @@ License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
The project is distributed under the GPL License v2 or later.
|
The project is distributed under the GPL License v2 or later.
|
||||||
Copyright (C) 2004-2008 Pandora FMS development team
|
Copyright (C) 2004-2023 Pandora FMS development team
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue