Fix merge issues
This commit is contained in:
commit
f00e491738
|
@ -1,5 +1,5 @@
|
||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 7.0NG.775-240126
|
Version: 7.0NG.775-240205
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.775-240126"
|
pandora_version="7.0NG.775-240205"
|
||||||
|
|
||||||
echo "Test if you has the tools for to make the packages."
|
echo "Test if you has the tools for to make the packages."
|
||||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%global __os_install_post %{nil}
|
%global __os_install_post %{nil}
|
||||||
%define name pandorafms_agent_linux
|
%define name pandorafms_agent_linux
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
%define name pandorafms_agent_linux_bin
|
%define name pandorafms_agent_linux_bin
|
||||||
%define source_name pandorafms_agent_linux
|
%define source_name pandorafms_agent_linux
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, binary version
|
Summary: Pandora FMS Linux agent, binary version
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
%define name pandorafms_agent_linux_bin
|
%define name pandorafms_agent_linux_bin
|
||||||
%define source_name pandorafms_agent_linux
|
%define source_name pandorafms_agent_linux
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, binary version
|
Summary: Pandora FMS Linux agent, binary version
|
||||||
|
@ -13,23 +13,22 @@ Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
License: GPL
|
License: GPL
|
||||||
Vendor: ArticaST <http://www.artica.es>
|
Vendor: PandoraFMS <https://pandorafms.com>
|
||||||
Source0: %{source_name}-%{version}.tar.gz
|
Source0: %{source_name}-%{version}.tar.gz
|
||||||
URL: http://pandorafms.org
|
URL: https://pandorafms.com
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Packager: Sancho Lerena <slerena@artica.es>
|
Packager: PandoraFMS <info@pandorafms.com>
|
||||||
Prefix: /usr/share
|
Prefix: /usr/share
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||||
BuildArch: x86_64
|
BuildArch: x86_64
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(post): chkconfig /bin/ln
|
Requires(post): /bin/ln
|
||||||
Requires(preun): chkconfig /bin/rm /usr/sbin/userdel
|
Requires(preun): /bin/rm /usr/sbin/userdel
|
||||||
Requires: coreutils unzip
|
Requires: coreutils unzip
|
||||||
Requires: util-linux procps grep
|
Requires: util-linux procps grep
|
||||||
Requires: /sbin/ip /bin/awk
|
Requires: /sbin/ip /bin/awk
|
||||||
Requires: perl-interpreter
|
Requires: perl-interpreter
|
||||||
Requires: perl-IO-Compress
|
Requires: perl-IO-Compress
|
||||||
Requires: libnsl
|
|
||||||
Requires: libxcrypt-compat
|
Requires: libxcrypt-compat
|
||||||
AutoReq: 0
|
AutoReq: 0
|
||||||
Provides: %{name}-%{version}
|
Provides: %{name}-%{version}
|
||||||
|
@ -50,7 +49,7 @@ mkdir -p $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
|
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/pandora/
|
mkdir -p $RPM_BUILD_ROOT/etc/pandora/
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
#mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
|
mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
||||||
|
@ -58,7 +57,7 @@ cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
#cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
|
@ -119,21 +118,11 @@ then
|
||||||
cp -f /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
|
cp -f /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
|
||||||
chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service
|
chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service
|
||||||
# Enable the services on SystemD
|
# Enable the services on SystemD
|
||||||
|
systemctl daemon-reload
|
||||||
systemctl enable pandora_agent_daemon.service
|
systemctl enable pandora_agent_daemon.service
|
||||||
else
|
|
||||||
/sbin/chkconfig --add pandora_agent_daemon
|
|
||||||
/sbin/chkconfig pandora_agent_daemon on
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" -gt 1 ]
|
|
||||||
then
|
|
||||||
|
|
||||||
echo "If Pandora Agent daemon was running with init.d script,"
|
|
||||||
echo "please stop it manually and start the service with systemctl"
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
|
||||||
# Upgrading
|
# Upgrading
|
||||||
|
@ -141,8 +130,7 @@ if [ "$1" = "1" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/sbin/chkconfig --del pandora_agent_daemon
|
systemctl stop pandora_agent_daemon.service > /dev/null 2>&1 || :
|
||||||
/etc/rc.d/init.d/pandora_agent_daemon stop >/dev/null 2>&1 || :
|
|
||||||
|
|
||||||
# Remove symbolic links
|
# Remove symbolic links
|
||||||
pushd /etc/pandora
|
pushd /etc/pandora
|
||||||
|
@ -162,7 +150,6 @@ exit 0
|
||||||
%defattr(755,root,root)
|
%defattr(755,root,root)
|
||||||
/usr/bin/pandora_agent_exec
|
/usr/bin/pandora_agent_exec
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
/etc/rc.d/init.d/pandora_agent_daemon
|
|
||||||
|
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
%define name pandorafms_agent_linux_bin
|
%define name pandorafms_agent_linux_bin
|
||||||
%define source_name pandorafms_agent_linux
|
%define source_name pandorafms_agent_linux
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, binary version
|
Summary: Pandora FMS Linux agent, binary version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%global __os_install_post %{nil}
|
%global __os_install_post %{nil}
|
||||||
%define name pandorafms_agent_linux
|
%define name pandorafms_agent_linux
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.775"
|
PI_VERSION="7.0NG.775"
|
||||||
PI_BUILD="240126"
|
PI_BUILD="240205"
|
||||||
OS_NAME=`uname -s`
|
OS_NAME=`uname -s`
|
||||||
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
|
|
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{240126}
|
{240205}
|
||||||
|
|
||||||
ViewReadme
|
ViewReadme
|
||||||
{Yes}
|
{Yes}
|
||||||
|
|
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
||||||
using namespace Pandora_Strutils;
|
using namespace Pandora_Strutils;
|
||||||
|
|
||||||
#define PATH_SIZE _MAX_PATH+1
|
#define PATH_SIZE _MAX_PATH+1
|
||||||
#define PANDORA_VERSION ("7.0NG.775 Build 240126")
|
#define PANDORA_VERSION ("7.0NG.775 Build 240205")
|
||||||
|
|
||||||
string pandora_path;
|
string pandora_path;
|
||||||
string pandora_dir;
|
string pandora_dir;
|
||||||
|
|
|
@ -11,7 +11,7 @@ BEGIN
|
||||||
VALUE "LegalCopyright", "Pandora FMS"
|
VALUE "LegalCopyright", "Pandora FMS"
|
||||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||||
VALUE "ProductVersion", "(7.0NG.775(Build 240126))"
|
VALUE "ProductVersion", "(7.0NG.775(Build 240205))"
|
||||||
VALUE "FileVersion", "1.0.0.0"
|
VALUE "FileVersion", "1.0.0.0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package: pandorafms-console
|
package: pandorafms-console
|
||||||
Version: 7.0NG.775-240126
|
Version: 7.0NG.775-240205
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.775-240126"
|
pandora_version="7.0NG.775-240205"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
|
|
@ -56,6 +56,9 @@ ADD COLUMN `id_agent_data` int not null default 0 AFTER `script_type`;
|
||||||
ALTER TABLE `tusuario` CHANGE COLUMN `metaconsole_data_section` `metaconsole_data_section` TEXT NOT NULL DEFAULT '' ;
|
ALTER TABLE `tusuario` CHANGE COLUMN `metaconsole_data_section` `metaconsole_data_section` TEXT NOT NULL DEFAULT '' ;
|
||||||
ALTER TABLE `tmensajes` ADD COLUMN `icon_notification` VARCHAR(250) NULL DEFAULT NULL AFTER `url`;
|
ALTER TABLE `tmensajes` ADD COLUMN `icon_notification` VARCHAR(250) NULL DEFAULT NULL AFTER `url`;
|
||||||
|
|
||||||
|
UPDATE `tncm_template` SET `vendors` = CONCAT('["', TRIM(BOTH '"' FROM TRIM(BOTH ']' FROM TRIM(BOTH '[' FROM vendors))), '"]'), `models` = CONCAT('["', TRIM(BOTH '"' FROM TRIM(BOTH ']' FROM TRIM(BOTH '[' FROM models))), '"]');
|
||||||
|
UPDATE `tncm_agent_data_template` SET `vendors` = CONCAT('["', TRIM(BOTH '"' FROM TRIM(BOTH ']' FROM TRIM(BOTH '[' FROM vendors))), '"]'), `models` = CONCAT('["', TRIM(BOTH '"' FROM TRIM(BOTH ']' FROM TRIM(BOTH '[' FROM models))), '"]');
|
||||||
|
|
||||||
-- Create SNMPv3 credentials for recon tasks and update them
|
-- Create SNMPv3 credentials for recon tasks and update them
|
||||||
SET @creds_name = 'Recon-SNMP-creds-';
|
SET @creds_name = 'Recon-SNMP-creds-';
|
||||||
INSERT IGNORE INTO `tcredential_store` (`identifier`, `id_group`, `product`, `extra_1`)
|
INSERT IGNORE INTO `tcredential_store` (`identifier`, `id_group`, `product`, `extra_1`)
|
||||||
|
|
|
@ -507,14 +507,16 @@ if (enterprise_installed()) {
|
||||||
// Read configuration file.
|
// Read configuration file.
|
||||||
$files = config_agents_get_agent_config_filenames($id_agente);
|
$files = config_agents_get_agent_config_filenames($id_agente);
|
||||||
$file_name = $files['conf'];
|
$file_name = $files['conf'];
|
||||||
$agent_config = file_get_contents($file_name);
|
if (empty($file_name) === false) {
|
||||||
$encoding = 'UTF-8';
|
$agent_config = file_get_contents($file_name);
|
||||||
$agent_config_utf8 = mb_convert_encoding($agent_config, 'UTF-8', $encoding);
|
$encoding = 'UTF-8';
|
||||||
if ($agent_config_utf8 !== false) {
|
$agent_config_utf8 = mb_convert_encoding($agent_config, 'UTF-8', $encoding);
|
||||||
$agent_config = $agent_config_utf8;
|
if ($agent_config_utf8 !== false) {
|
||||||
}
|
$agent_config = $agent_config_utf8;
|
||||||
|
}
|
||||||
|
|
||||||
$broker = str_contains($agent_config, '#broker active');
|
$broker = str_contains($agent_config, '#broker active');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($broker === false) {
|
if ($broker === false) {
|
||||||
|
|
|
@ -960,60 +960,6 @@ echo '<legend>'.__('Mail configuration').'</legend>';
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Print the modal window for the summary of each alerts group
|
|
||||||
*
|
|
||||||
* @param string $id Id.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function print_email_test_modal_window($id)
|
|
||||||
{
|
|
||||||
// Email config table.
|
|
||||||
$table_mail_test = new stdClass();
|
|
||||||
$table_mail_test->width = '100%';
|
|
||||||
$table_mail_test->class = 'filter-table-adv';
|
|
||||||
$table_mail_test->data = [];
|
|
||||||
|
|
||||||
$table_mail_test->data[0][] = html_print_label_input_block(
|
|
||||||
__('Address'),
|
|
||||||
html_print_input_text(
|
|
||||||
'email_test_address',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
35,
|
|
||||||
100,
|
|
||||||
true
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
$table_mail_test->data[1][] = '  <span id="email_test_sent_message" class="invisible"><b>Email sent</b></span><span id="email_test_failure_message" class=invisible"><b>Email could not be sent</b></span>';
|
|
||||||
|
|
||||||
// $table_mail_test->colspan[2][0] = 2;
|
|
||||||
$submitButton = html_print_div(
|
|
||||||
[
|
|
||||||
'class' => 'action-buttons-right-forced',
|
|
||||||
'content' => html_print_button(
|
|
||||||
__('Send'),
|
|
||||||
'email_test',
|
|
||||||
false,
|
|
||||||
'',
|
|
||||||
[
|
|
||||||
'icon' => 'cog',
|
|
||||||
'mode' => 'mini',
|
|
||||||
],
|
|
||||||
true
|
|
||||||
),
|
|
||||||
],
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
echo '<div id="email_test_'.$id.'" title="'.__('Check mail configuration').'" class="invisible">'.html_print_table($table_mail_test, true).$submitButton.'</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function show_timezone () {
|
function show_timezone () {
|
||||||
|
@ -1033,62 +979,6 @@ function show_timezone () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_email_test(id) {
|
|
||||||
$('#email_test_sent_message').hide();
|
|
||||||
$('#email_test_failure_message').hide();
|
|
||||||
|
|
||||||
$("#email_test_"+id).dialog({
|
|
||||||
resizable: true,
|
|
||||||
draggable: true,
|
|
||||||
modal: true,
|
|
||||||
width: 450,
|
|
||||||
overlay: {
|
|
||||||
opacity: 0.5,
|
|
||||||
background: "black"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function perform_email_test () {
|
|
||||||
$('#email_test_sent_message').hide();
|
|
||||||
$('#email_test_failure_message').hide();
|
|
||||||
|
|
||||||
var test_address = $('#text-email_test_address').val();
|
|
||||||
params = {
|
|
||||||
email_smtpServer : $('#text-email_smtpServer').val(),
|
|
||||||
email_smtpPort : $('#text-email_smtpPort').val(),
|
|
||||||
email_username : $('#text-email_username').val(),
|
|
||||||
email_password : $('#password-email_password').val(),
|
|
||||||
email_encryption : $( "#email_encryption option:selected" ).val(),
|
|
||||||
email_from_dir : $('#text-email_from_dir').val(),
|
|
||||||
email_from_name : $('#text-email_from_name').val()
|
|
||||||
};
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: "ajax.php",
|
|
||||||
data : {
|
|
||||||
page: "godmode/setup/setup_general",
|
|
||||||
test_address: test_address,
|
|
||||||
params: params
|
|
||||||
},
|
|
||||||
dataType: "json",
|
|
||||||
success: function(data) {
|
|
||||||
if (parseInt(data) === 1) {
|
|
||||||
$('#email_test_sent_message').show();
|
|
||||||
$('#email_test_failure_message').hide();
|
|
||||||
} else {
|
|
||||||
$('#email_test_failure_message').show();
|
|
||||||
$('#email_test_sent_message').hide();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function() {
|
|
||||||
$('#email_test_failure_message').show();
|
|
||||||
$('#email_test_sent_message').hide();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
|
|
||||||
$("#zone").attr("hidden", true);
|
$("#zone").attr("hidden", true);
|
||||||
|
@ -1146,8 +1036,6 @@ $(document).ready (function () {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$('#button-email_test').click(perform_email_test);
|
|
||||||
|
|
||||||
$("#right_iblacklist").click (function () {
|
$("#right_iblacklist").click (function () {
|
||||||
jQuery.each($("select[name='inventory_changes_blacklist_out[]'] option:selected"), function (key, value) {
|
jQuery.each($("select[name='inventory_changes_blacklist_out[]'] option:selected"), function (key, value) {
|
||||||
imodule_name = $(value).html();
|
imodule_name = $(value).html();
|
||||||
|
|
|
@ -770,7 +770,7 @@ if ($update_user) {
|
||||||
$id_user = (string) get_parameter('id_user', '');
|
$id_user = (string) get_parameter('id_user', '');
|
||||||
|
|
||||||
if ($password_new != '') {
|
if ($password_new != '') {
|
||||||
if ($config['auth'] !== 'mysql') {
|
if ($config['auth'] !== 'mysql' && $values['local_user'] === false) {
|
||||||
ui_print_error_message(__('It is not possible to change the password because external authentication is being used'));
|
ui_print_error_message(__('It is not possible to change the password because external authentication is being used'));
|
||||||
} else {
|
} else {
|
||||||
$correct_password = false;
|
$correct_password = false;
|
||||||
|
|
|
@ -1671,6 +1671,10 @@ class ConsoleSupervisor
|
||||||
ini_get('upload_max_filesize')
|
ini_get('upload_max_filesize')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$PHPpost_max_size = config_return_in_bytes(
|
||||||
|
ini_get('post_max_size')
|
||||||
|
);
|
||||||
|
|
||||||
// PHP configuration.
|
// PHP configuration.
|
||||||
$PHPmax_input_time = ini_get('max_input_time');
|
$PHPmax_input_time = ini_get('max_input_time');
|
||||||
$PHPmemory_limit = config_return_in_bytes(ini_get('memory_limit'));
|
$PHPmemory_limit = config_return_in_bytes(ini_get('memory_limit'));
|
||||||
|
@ -1678,6 +1682,7 @@ class ConsoleSupervisor
|
||||||
$PHPsafe_mode = ini_get('safe_mode');
|
$PHPsafe_mode = ini_get('safe_mode');
|
||||||
$PHPdisable_functions = ini_get('disable_functions');
|
$PHPdisable_functions = ini_get('disable_functions');
|
||||||
$PHPupload_max_filesize_min = config_return_in_bytes('800M');
|
$PHPupload_max_filesize_min = config_return_in_bytes('800M');
|
||||||
|
$PHPpost_max_size_min = config_return_in_bytes('800M');
|
||||||
$PHPmemory_limit_min = config_return_in_bytes('800M');
|
$PHPmemory_limit_min = config_return_in_bytes('800M');
|
||||||
$PHPSerialize_precision = ini_get('serialize_precision');
|
$PHPSerialize_precision = ini_get('serialize_precision');
|
||||||
|
|
||||||
|
@ -1728,7 +1733,7 @@ class ConsoleSupervisor
|
||||||
'message' => sprintf(
|
'message' => sprintf(
|
||||||
__('Recommended value is %s'),
|
__('Recommended value is %s'),
|
||||||
'-1 ('.__('Unlimited').')'
|
'-1 ('.__('Unlimited').')'
|
||||||
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Do not forget to restart Apache process after)'),
|
).'<br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Do not forget to restart Apache process after)'),
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'icon_notification' => self::ICON_INFORMATION,
|
'icon_notification' => self::ICON_INFORMATION,
|
||||||
]
|
]
|
||||||
|
@ -1753,7 +1758,7 @@ class ConsoleSupervisor
|
||||||
'message' => sprintf(
|
'message' => sprintf(
|
||||||
__('Recommended value is: %s'),
|
__('Recommended value is: %s'),
|
||||||
'0 ('.__('Unlimited').')'
|
'0 ('.__('Unlimited').')'
|
||||||
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
|
).'<br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'icon_notification' => self::ICON_INFORMATION,
|
'icon_notification' => self::ICON_INFORMATION,
|
||||||
]
|
]
|
||||||
|
@ -1778,7 +1783,7 @@ class ConsoleSupervisor
|
||||||
'message' => sprintf(
|
'message' => sprintf(
|
||||||
__('Recommended value is: %s'),
|
__('Recommended value is: %s'),
|
||||||
sprintf(__('%s or greater'), '800M')
|
sprintf(__('%s or greater'), '800M')
|
||||||
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
|
).'<br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'icon_notification' => self::ICON_INFORMATION,
|
'icon_notification' => self::ICON_INFORMATION,
|
||||||
]
|
]
|
||||||
|
@ -1808,7 +1813,7 @@ class ConsoleSupervisor
|
||||||
'message' => sprintf(
|
'message' => sprintf(
|
||||||
__('Recommended value is: %s'),
|
__('Recommended value is: %s'),
|
||||||
sprintf(__('%s or greater'), $recommended_memory)
|
sprintf(__('%s or greater'), $recommended_memory)
|
||||||
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator'),
|
).'<br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator'),
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'icon_notification' => self::ICON_INFORMATION,
|
'icon_notification' => self::ICON_INFORMATION,
|
||||||
]
|
]
|
||||||
|
@ -1915,6 +1920,25 @@ class ConsoleSupervisor
|
||||||
} else {
|
} else {
|
||||||
$this->cleanNotifications('NOTIF.PHP.VERSION.SUPPORT');
|
$this->cleanNotifications('NOTIF.PHP.VERSION.SUPPORT');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($PHPpost_max_size < $PHPpost_max_size_min && (int) $PHPpost_max_size !== -1) {
|
||||||
|
$url = 'https://www.php.net/manual/en/ini.core.php#ini.post-max-size';
|
||||||
|
$this->notify(
|
||||||
|
[
|
||||||
|
'type' => 'NOTIF.PHP.POST_MAX_SIZE',
|
||||||
|
'title' => __('PHP POST MAX SIZE'),
|
||||||
|
'message' => sprintf(
|
||||||
|
__('Recommended value is: %s'),
|
||||||
|
sprintf(__('%sM or greater'), ($PHPpost_max_size_min / 1024 / 1024))
|
||||||
|
).'<br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator'),
|
||||||
|
'url' => $url,
|
||||||
|
'icon_notification' => self::ICON_HEADSUP,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$this->cleanNotifications('NOTIF.PHP.POST_MAX_SIZE');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -483,7 +483,7 @@ class Diagnostics extends Wizard
|
||||||
],
|
],
|
||||||
'isEnterprise' => [
|
'isEnterprise' => [
|
||||||
'name' => __('Enterprise installed'),
|
'name' => __('Enterprise installed'),
|
||||||
'value' => (enterprise_installed()) ? __('true') : __('false'),
|
'value' => $this->getStatusLicense(),
|
||||||
],
|
],
|
||||||
'customerKey' => [
|
'customerKey' => [
|
||||||
'name' => __('Update Key'),
|
'name' => __('Update Key'),
|
||||||
|
@ -505,6 +505,29 @@ class Diagnostics extends Wizard
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return status of license.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private function getStatusLicense():string
|
||||||
|
{
|
||||||
|
global $config;
|
||||||
|
|
||||||
|
if (enterprise_installed() === true) {
|
||||||
|
if (isset($config['license_mode'])
|
||||||
|
&& (int) $config['license_mode'] === 1
|
||||||
|
) {
|
||||||
|
return __('FREE/TRIAL');
|
||||||
|
} else {
|
||||||
|
return __('LICENSED');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return __('OpenSource');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHP Status.
|
* PHP Status.
|
||||||
*
|
*
|
||||||
|
@ -517,23 +540,31 @@ class Diagnostics extends Wizard
|
||||||
$result = [
|
$result = [
|
||||||
'error' => false,
|
'error' => false,
|
||||||
'data' => [
|
'data' => [
|
||||||
'phpVersion' => [
|
'phpVersion' => [
|
||||||
'name' => __('PHP Version'),
|
'name' => __('PHP Version'),
|
||||||
'value' => phpversion(),
|
'value' => phpversion(),
|
||||||
],
|
],
|
||||||
'maxExecutionTime' => [
|
'maxExecutionTime' => [
|
||||||
'name' => __('PHP Max execution time'),
|
'name' => __('PHP Max execution time'),
|
||||||
'value' => ini_get('max_execution_time'),
|
'value' => ini_get('max_execution_time'),
|
||||||
],
|
],
|
||||||
'maxInputTime' => [
|
'maxInputTime' => [
|
||||||
'name' => __('PHP Max input time'),
|
'name' => __('PHP Max input time'),
|
||||||
'value' => ini_get('max_input_time'),
|
'value' => ini_get('max_input_time'),
|
||||||
],
|
],
|
||||||
'memoryLimit' => [
|
'memoryLimit' => [
|
||||||
'name' => __('PHP Memory limit'),
|
'name' => __('PHP Memory limit'),
|
||||||
'value' => ini_get('memory_limit'),
|
'value' => ini_get('memory_limit'),
|
||||||
],
|
],
|
||||||
'sessionLifetime' => [
|
'postMaxSize' => [
|
||||||
|
'name' => __('PHP Post max size'),
|
||||||
|
'value' => ini_get('post_max_size'),
|
||||||
|
],
|
||||||
|
'uploadMaxFilesize' => [
|
||||||
|
'name' => __('PHP Upload max file size'),
|
||||||
|
'value' => ini_get('upload_max_filesize'),
|
||||||
|
],
|
||||||
|
'sessionLifetime' => [
|
||||||
'name' => __('Session cookie lifetime'),
|
'name' => __('Session cookie lifetime'),
|
||||||
'value' => ini_get('session.cookie_lifetime'),
|
'value' => ini_get('session.cookie_lifetime'),
|
||||||
],
|
],
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC240126';
|
$build_version = 'PC240205';
|
||||||
$pandora_version = 'v7.0NG.775';
|
$pandora_version = 'v7.0NG.775';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
|
|
@ -7691,3 +7691,52 @@ function html_print_wizard_diagnosis(
|
||||||
echo $output;
|
echo $output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print the modal window for the summary of each alerts group
|
||||||
|
*
|
||||||
|
* @param string $id Id.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function print_email_test_modal_window($id)
|
||||||
|
{
|
||||||
|
// Email config table.
|
||||||
|
$table_mail_test = new stdClass();
|
||||||
|
$table_mail_test->width = '100%';
|
||||||
|
$table_mail_test->class = 'filter-table-adv';
|
||||||
|
$table_mail_test->data = [];
|
||||||
|
$table_mail_test->data[0][] = html_print_label_input_block(
|
||||||
|
__('Address'),
|
||||||
|
html_print_input_text(
|
||||||
|
'email_test_address',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
35,
|
||||||
|
100,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$table_mail_test->data[1][] = '  <span id="email_test_sent_message" class="invisible"><b>Email sent</b></span><span id="email_test_failure_message" class=invisible"><b>Email could not be sent</b></span>';
|
||||||
|
// $table_mail_test->colspan[2][0] = 2;
|
||||||
|
$submitButton = html_print_div(
|
||||||
|
[
|
||||||
|
'class' => 'action-buttons-right-forced',
|
||||||
|
'content' => html_print_button(
|
||||||
|
__('Send'),
|
||||||
|
'email_test',
|
||||||
|
false,
|
||||||
|
'perform_email_test()',
|
||||||
|
[
|
||||||
|
'icon' => 'cog',
|
||||||
|
'mode' => 'mini',
|
||||||
|
],
|
||||||
|
true
|
||||||
|
),
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
|
echo '<div id="email_test_'.$id.'" title="'.__('Check mail configuration').'" class="invisible">'.html_print_table($table_mail_test, true).$submitButton.'</div>';
|
||||||
|
}
|
||||||
|
|
|
@ -1230,6 +1230,22 @@ if (is_ajax()) {
|
||||||
<p style="font-size: 10pt;">'.$php_sys->data->memoryLimit->value.'</p>
|
<p style="font-size: 10pt;">'.$php_sys->data->memoryLimit->value.'</p>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 35%;">
|
||||||
|
<p><span>'.$php_sys->data->postMaxSize->name.'</span></p>
|
||||||
|
</th>
|
||||||
|
<th style="width: 65%;">
|
||||||
|
<p style="font-size: 10pt;">'.$php_sys->data->postMaxSize->value.'</p>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 35%;">
|
||||||
|
<p><span>'.$php_sys->data->uploadMaxFilesize->name.'</span></p>
|
||||||
|
</th>
|
||||||
|
<th style="width: 65%;">
|
||||||
|
<p style="font-size: 10pt;">'.$php_sys->data->uploadMaxFilesize->value.'</p>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 35%;">
|
<th style="width: 35%;">
|
||||||
<p><span>'.$php_sys->data->sessionLifetime->name.'</span></p>
|
<p><span>'.$php_sys->data->sessionLifetime->name.'</span></p>
|
||||||
|
|
|
@ -133,6 +133,7 @@ function notifications_get_subtypes(?string $source=null)
|
||||||
'NOTIF.PHP.INPUT_TIME',
|
'NOTIF.PHP.INPUT_TIME',
|
||||||
'NOTIF.PHP.EXECUTION_TIME',
|
'NOTIF.PHP.EXECUTION_TIME',
|
||||||
'NOTIF.PHP.UPLOAD_MAX_FILESIZE',
|
'NOTIF.PHP.UPLOAD_MAX_FILESIZE',
|
||||||
|
'NOTIF.PHP.POST_MAX_SIZE',
|
||||||
'NOTIF.PHP.MEMORY_LIMIT',
|
'NOTIF.PHP.MEMORY_LIMIT',
|
||||||
'NOTIF.PHP.DISABLE_FUNCTIONS',
|
'NOTIF.PHP.DISABLE_FUNCTIONS',
|
||||||
'NOTIF.PHP.CHROMIUM',
|
'NOTIF.PHP.CHROMIUM',
|
||||||
|
|
|
@ -98,25 +98,6 @@ function update_manager_get_current_package()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if a trial license is in use.
|
|
||||||
*
|
|
||||||
* @return boolean true if a trial license is in use, false otherwise.
|
|
||||||
*/
|
|
||||||
function update_manager_verify_trial()
|
|
||||||
{
|
|
||||||
global $config;
|
|
||||||
|
|
||||||
if (isset($config['license_licensed_to'])
|
|
||||||
&& strstr($config['license_licensed_to'], 'info@pandorafms.com') !== false
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if there are packages available to be installed.
|
* Checks if there are packages available to be installed.
|
||||||
*
|
*
|
||||||
|
|
|
@ -3791,7 +3791,7 @@ function visual_map_get_user_layouts(
|
||||||
$retval = [];
|
$retval = [];
|
||||||
foreach ($layouts as $layout) {
|
foreach ($layouts as $layout) {
|
||||||
if ($only_names) {
|
if ($only_names) {
|
||||||
$retval[$layout['id']] = $layout['name'];
|
$retval[$layout['id']] = io_safe_output($layout['name']);
|
||||||
} else {
|
} else {
|
||||||
$retval[$layout['id']] = $layout;
|
$retval[$layout['id']] = $layout;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2621,3 +2621,60 @@ function christmas_click(flagEasternEgg) {
|
||||||
}, 120000);
|
}, 120000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function perform_email_test() {
|
||||||
|
$("#email_test_sent_message").hide();
|
||||||
|
$("#email_test_failure_message").hide();
|
||||||
|
|
||||||
|
var test_address = $("#text-email_test_address").val();
|
||||||
|
var params = {
|
||||||
|
email_smtpServer: $("#text-email_smtpServer").val(),
|
||||||
|
email_smtpPort: $("#text-email_smtpPort").val(),
|
||||||
|
email_username: $("#text-email_username").val(),
|
||||||
|
email_password: $("#password-email_password").val(),
|
||||||
|
email_encryption: $("#email_encryption option:selected").val(),
|
||||||
|
email_from_dir: $("#text-email_from_dir").val(),
|
||||||
|
email_from_name: $("#text-email_from_name").val()
|
||||||
|
};
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "ajax.php",
|
||||||
|
data: {
|
||||||
|
page: "godmode/setup/setup_general",
|
||||||
|
test_address: test_address,
|
||||||
|
params: params
|
||||||
|
},
|
||||||
|
dataType: "json",
|
||||||
|
success: function(data) {
|
||||||
|
if (parseInt(data) === 1) {
|
||||||
|
$("#email_test_sent_message").show();
|
||||||
|
$("#email_test_failure_message").hide();
|
||||||
|
} else {
|
||||||
|
console.log($("#email_test_failure_message"));
|
||||||
|
$("#email_test_failure_message").show();
|
||||||
|
$("#email_test_sent_message").hide();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function() {
|
||||||
|
$("#email_test_failure_message").show();
|
||||||
|
$("#email_test_sent_message").hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function show_email_test(id) {
|
||||||
|
$("#email_test_sent_message").hide();
|
||||||
|
$("#email_test_failure_message").hide();
|
||||||
|
|
||||||
|
$("#email_test_" + id).dialog({
|
||||||
|
resizable: true,
|
||||||
|
draggable: true,
|
||||||
|
modal: true,
|
||||||
|
width: 450,
|
||||||
|
overlay: {
|
||||||
|
opacity: 0.5,
|
||||||
|
background: "black"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
<div style='padding-bottom: 50px'>
|
<div style='padding-bottom: 50px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '7.0NG.775';
|
$version = '7.0NG.775';
|
||||||
$build = '240126';
|
$build = '240205';
|
||||||
$banner = "v$version Build $build";
|
$banner = "v$version Build $build";
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
|
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
|
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name apache2
|
%define httpd_name apache2
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 7.0NG.775-240126
|
Version: 7.0NG.775-240205
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.775-240126"
|
pandora_version="7.0NG.775-240205"
|
||||||
|
|
||||||
package_cpan=0
|
package_cpan=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
|
|
@ -46,7 +46,7 @@ our @EXPORT = qw(
|
||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "7.0NG.775";
|
my $pandora_version = "7.0NG.775";
|
||||||
my $pandora_build = "240126";
|
my $pandora_build = "240205";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
|
|
@ -34,7 +34,7 @@ our @ISA = qw(Exporter);
|
||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "7.0NG.775";
|
my $pandora_version = "7.0NG.775";
|
||||||
my $pandora_build = "240126";
|
my $pandora_build = "240205";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%global __os_install_post %{nil}
|
%global __os_install_post %{nil}
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 7.0NG.775
|
%define version 7.0NG.775
|
||||||
%define release 240126
|
%define release 240205
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.775"
|
PI_VERSION="7.0NG.775"
|
||||||
PI_BUILD="240126"
|
PI_BUILD="240205"
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
|
|
@ -38,7 +38,7 @@ use PandoraFMS::Config;
|
||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.775 Build 240126";
|
my $version = "7.0NG.775 Build 240205";
|
||||||
|
|
||||||
# Pandora server configuration
|
# Pandora server configuration
|
||||||
my %conf;
|
my %conf;
|
||||||
|
|
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
||||||
Encode::Locale::decode_argv;
|
Encode::Locale::decode_argv;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.775 Build 240126";
|
my $version = "7.0NG.775 Build 240205";
|
||||||
|
|
||||||
# save program name for logging
|
# save program name for logging
|
||||||
my $progname = basename($0);
|
my $progname = basename($0);
|
||||||
|
|
Loading…
Reference in New Issue