Merge branch '2106-intracom-rebranding' into 'develop'
2106 intracom rebranding See merge request artica/pandorafms!1473
This commit is contained in:
commit
a2941864a1
|
@ -101,7 +101,7 @@ function extension_api_checker() {
|
|||
$table->data[] = $row;
|
||||
|
||||
$row = array();
|
||||
$row[] = __("Pandora Console URL");
|
||||
$row[] = __("%s Console URL", get_product_name());
|
||||
$row[] = html_print_input_text('pandora_url', $pandora_url, '', 50, 255, true);
|
||||
$table->data[] = $row;
|
||||
|
||||
|
|
|
@ -180,10 +180,10 @@ function extension_db_check_tables_differences($connection_test,
|
|||
$diff_tables = array_diff($tables_test, $tables_system);
|
||||
|
||||
ui_print_result_message(
|
||||
empty($diff_tables),
|
||||
__('Successful the DB Pandora has all tables'),
|
||||
__('Pandora DB could not retrieve all tables. The missing tables are (%s)',
|
||||
implode(", ", $diff_tables)));
|
||||
!empty($diff_tables),
|
||||
__('Success! %s DB contains all tables', get_product_name()),
|
||||
__('%s DB could not retrieve all tables. The missing tables are (%s)',
|
||||
get_product_name(), implode(", ", $diff_tables)));
|
||||
|
||||
if (!empty($diff_tables)) {
|
||||
foreach ($diff_tables as $table) {
|
||||
|
|
|
@ -134,7 +134,13 @@ function dbmgr_extension_main () {
|
|||
ui_print_page_header (__('Database interface'), "images/gm_db.png", false, false, true);
|
||||
|
||||
echo '<div class="notify">';
|
||||
echo "This is an advanced extension to interface with Pandora FMS database directly from WEB console using native SQL sentences. Please note that <b>you can damage</b> your Pandora FMS installation if you don't know </b>exactly</b> what are you are doing, this means that you can severily damage your setup using this extension. This extension is intended to be used <b>only by experienced users</b> with a depth knowledge of Pandora FMS internals.";
|
||||
echo __("This is an advanced extension to interface with %s database directly from WEB console
|
||||
using native SQL sentences. Please note that <b>you can damage</b> your %s installation
|
||||
if you don't know </b>exactly</b> what are you are doing,
|
||||
this means that you can severily damage your setup using this extension.
|
||||
This extension is intended to be used <b>only by experienced users</b>
|
||||
with a depth knowledge of %s internals.",
|
||||
get_product_name(), get_product_name(), get_product_name());
|
||||
echo '</div>';
|
||||
|
||||
echo "<br />";
|
||||
|
|
|
@ -313,23 +313,23 @@ function godmode_net_tools() {
|
|||
$table->data = array();
|
||||
|
||||
$table->data[0][0] = __("Traceroute path");
|
||||
$table->data[0][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the traceroute system.'), true);
|
||||
$table->data[0][0] .= ui_print_help_tip(__('If empty, %s will search the traceroute system.', get_product_name()), true);
|
||||
$table->data[0][1] = html_print_input_text('traceroute_path', $traceroute_path, '', 40, 255, true);
|
||||
|
||||
$table->data[1][0] = __("Ping path");
|
||||
$table->data[1][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the ping system.'), true);
|
||||
$table->data[1][0] .= ui_print_help_tip(__('If empty, %s will search the ping system.', get_product_name()), true);
|
||||
$table->data[1][1] = html_print_input_text('ping_path', $ping_path, '', 40, 255, true);
|
||||
|
||||
$table->data[2][0] = __("Nmap path");
|
||||
$table->data[2][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the nmap system.'), true);
|
||||
$table->data[2][0] .= ui_print_help_tip(__('If empty, %s will search the nmap system.', get_product_name()), true);
|
||||
$table->data[2][1] = html_print_input_text('nmap_path', $nmap_path, '', 40, 255, true);
|
||||
|
||||
$table->data[3][0] = __("Dig path");
|
||||
$table->data[3][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the dig system.'), true);
|
||||
$table->data[3][0] .= ui_print_help_tip(__('If empty, %s will search the dig system', get_product_name()), true);
|
||||
$table->data[3][1] = html_print_input_text('dig_path', $dig_path, '', 40, 255, true);
|
||||
|
||||
$table->data[4][0] = __("Snmpget path");
|
||||
$table->data[4][0] .= ui_print_help_tip(__('If it is empty, Pandora searchs the snmpget system.'), true);
|
||||
$table->data[4][0] .= ui_print_help_tip(__('If empty, %s will search the snmpget system.', get_product_name()), true);
|
||||
$table->data[4][1] = html_print_input_text('snmpget_path', $snmpget_path, '', 40, 255, true);
|
||||
|
||||
echo '<form id="form_setup" method="post" >';
|
||||
|
|
|
@ -69,7 +69,7 @@ function pandoralogs_extension_main () {
|
|||
|
||||
ui_print_page_header (__("System logfile viewer"), "images/extensions.png", false, "", true, "" );
|
||||
|
||||
echo "<p>" . __('Use this tool to view your Pandora FMS logfiles directly on the console') . "</p>";
|
||||
echo "<p>" . __('Use this tool to view your %s logfiles directly on the console', get_product_name()) . "</p>";
|
||||
|
||||
echo "<p>" . __('You can choose the amount of information shown in general setup (Log size limit in system logs viewer extension), ' . $config['max_log_size'] * 1000 . 'B at the moment') . "</p>";
|
||||
|
||||
|
|
|
@ -33,10 +33,10 @@ function pluginreg_extension_main () {
|
|||
echo '</div>';
|
||||
echo '<div class="text_task">';
|
||||
echo '<h3>' . __("Plugin registration") . '</h3>';
|
||||
echo '<p id="description_task">' .
|
||||
__("This extension makes registration of server plugins more easy.
|
||||
Here you can upload a server plugin in Pandora FMS 3.x zipped format (.pspz).
|
||||
Please refer to documentation on how to obtain and use Pandora FMS Server Plugins.
|
||||
echo '<p id="description_task">' .
|
||||
__("This extension makes registering server plugins an easier task.
|
||||
Here you can upload a server plugin in .pspz zipped format.
|
||||
Please refer to the official documentation on how to obtain and use Server Plugins.
|
||||
<br><br>You can get more plugins in our <a href='http://pandorafms.com/Library/Library/'>Public Resource Library</a> ") . '</p>';
|
||||
// Upload form
|
||||
echo "<form name='submit_plugin' method='post' enctype='multipart/form-data'>";
|
||||
|
|
|
@ -63,12 +63,12 @@ function pandora_realtime_graphs () {
|
|||
$table->style['snmp_oid'] = 'font-weight: bold;';
|
||||
$table->data = array ();
|
||||
|
||||
$graph_fields['cpu_load'] = __('Pandora Server CPU');
|
||||
$graph_fields['pending_packets'] = __('Pandora Server Pending packets');
|
||||
$graph_fields['disk_io_wait'] = __('Pandora Server Disk IO Wait');
|
||||
$graph_fields['apache_load'] = __('Pandora Server Apache load');
|
||||
$graph_fields['mysql_load'] = __('Pandora Server MySQL load');
|
||||
$graph_fields['server_load'] = __('Pandora Server load');
|
||||
$graph_fields['cpu_load'] = __('%s Server CPU', get_product_name());
|
||||
$graph_fields['pending_packets'] = __('Pending packages from %s Server', get_product_name());
|
||||
$graph_fields['disk_io_wait'] = __('%s Server Disk IO Wait', get_product_name());
|
||||
$graph_fields['apache_load'] = __('%s Server Apache load', get_product_name());
|
||||
$graph_fields['mysql_load'] = __('%s Server MySQL load', get_product_name());
|
||||
$graph_fields['server_load'] = __('%s Server load', get_product_name());
|
||||
$graph_fields['snmp_interface'] = __('SNMP Interface throughput');
|
||||
|
||||
$graph = get_parameter('graph', 'cpu_load');
|
||||
|
|
|
@ -338,8 +338,9 @@ function resource_exportation_extension_main() {
|
|||
ui_print_page_header (__('Resource exportation'), "images/extensions.png", false, "", true, "" );
|
||||
|
||||
echo "<div class=notify>";
|
||||
echo __("This extension makes exportation of resource template more easy. " .
|
||||
"Here you can export as a resource template in Pandora FMS 3.x format (.ptr). ");
|
||||
echo __("This extension makes exportation of resource template more easy.") .
|
||||
" " .
|
||||
__("You can export resource templates in .ptr format.");
|
||||
echo "</div>";
|
||||
|
||||
echo "<br /><br />";
|
||||
|
|
|
@ -855,11 +855,12 @@ function resource_registration_extension_main() {
|
|||
}
|
||||
|
||||
echo "<div class=notify>";
|
||||
printf(__("This extension makes registration of resource template more easy. " .
|
||||
"Here you can upload a resource template in Pandora FMS 3.x format (.ptr). " .
|
||||
"Please refer to documentation on how to obtain and use Pandora FMS resources. " .
|
||||
"<br><br>You can get more resurces in our <a href='%s'>Public Resource Library</a>") ,
|
||||
"http://pandorafms.org/index.php?sec=community&sec2=repository&lng=en");
|
||||
echo __("This extension makes registering resource templates easier.") . " " .
|
||||
__("Here you can upload a resource template in .ptr format.") . " " .
|
||||
__("Please refer to our documentation for more information on how to obtain and use %s resources.", get_product_name()) . " " .
|
||||
"<br> <br>" .
|
||||
__("You can get more resurces in our <a href='http://pandorafms.com/Library/Library/'>Public Resource Library</a>")
|
||||
;
|
||||
echo "</div>";
|
||||
|
||||
echo "<br /><br />";
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
START TRANSACTION;
|
||||
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_docs_logo', 'default_docs.png');
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_support_logo', 'default_support.png');
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png');
|
||||
|
||||
UPDATE talert_actions SET name='Monitoring Event' WHERE name='Pandora FMS Event';
|
||||
|
||||
COMMIT;
|
|
@ -1123,6 +1123,7 @@ UPDATE talert_actions SET `field4` = 'integria',
|
|||
`field9` = 'admin',
|
||||
`field10` = '_alert_description_'
|
||||
WHERE `id` = 4 AND `id_alert_command` = 11;
|
||||
UPDATE talert_actions SET name='Monitoring Event' WHERE name='Pandora FMS Event';
|
||||
ALTER TABLE talert_actions ADD COLUMN `field11` TEXT NOT NULL DEFAULT "";
|
||||
ALTER TABLE talert_actions ADD COLUMN `field12` TEXT NOT NULL DEFAULT "";
|
||||
ALTER TABLE talert_actions ADD COLUMN `field13` TEXT NOT NULL DEFAULT "";
|
||||
|
@ -1160,6 +1161,9 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('big_operation_step_datos_purge
|
|||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('small_operation_step_datos_purge', '1000');
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('days_autodisable_deletion', '30');
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('MR', 13);
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_docs_logo', 'default_docs.png');
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_support_logo', 'default_support.png');
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png');
|
||||
UPDATE tconfig SET value = 'https://licensing.artica.es/pandoraupdate7/server.php' WHERE token='url_update_manager';
|
||||
DELETE FROM `tconfig` WHERE `token` = 'current_package_enterprise';
|
||||
INSERT INTO `tconfig` (`token`, `value`) VALUES ('current_package_enterprise', '720');
|
||||
|
|
|
@ -93,15 +93,17 @@ switch ($tipo) {
|
|||
|
||||
case "helpmodal":
|
||||
|
||||
echo __("This is the online help for Pandora FMS console. This help is -in best cases- just a brief contextual help, not intented to teach you how to use Pandora FMS. Official documentation of Pandora FMS is about 900 pages, and you probably don't need to read it entirely, but sure, you should download it and take a look.<br><br>
|
||||
<a href='https://pandorafms.org/en/docs/monitoring-documentation/' target='_blanck' style='color: #82b92e; font-size: 10pt; text-decoration: underline;'>Download the official documentation</a>");
|
||||
echo __("This is the online help for %s console. This help is -in best cases- just a brief contextual help, not intented to teach you how to use %s. Official documentation of %s is about 900 pages, and you probably don't need to read it entirely, but sure, you should download it and take a look.<br><br>
|
||||
<a href='%s' target='_blanck' style='color: #82b92e; font-size: 10pt; text-decoration: underline;'>Download the official documentation</a>",
|
||||
get_product_name(), get_product_name(), get_product_name(), $config['custom_docs_url']);
|
||||
|
||||
break;
|
||||
|
||||
case "noaccess":
|
||||
|
||||
echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance. <br/> <br/>
|
||||
Please know that all attempts to access this page are recorded in security logs of Pandora System Database');
|
||||
echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance. <br> <br>
|
||||
Please know that all attempts to access this page are recorded in security logs of %s System Database.',
|
||||
get_product_name());
|
||||
|
||||
break;
|
||||
|
||||
|
@ -111,13 +113,13 @@ switch ($tipo) {
|
|||
|
||||
echo
|
||||
'<p>' .
|
||||
__('The Update Manager client is included on Pandora FMS. It helps system administrators update their Pandora FMS automatically, since the Update Manager retrieves new modules, new plugins and new features (even full migrations tools for future versions) automatically.') .
|
||||
__('The Update Manager client is included on %s. It helps system administrators update their %s automatically, since the Update Manager retrieves new modules, new plugins and new features (even full migrations tools for future versions) automatically.', get_product_name(), get_product_name()) .
|
||||
'</p>' .
|
||||
'<p>' .
|
||||
__('<b>OpenSource version updates are automated packages generated each week. These updates come WITHOUT ANY warranty or support. If your system is corrupted or a feature stops working properly, you will need to recover a backup by yourself.</b>') .
|
||||
'</p>' .
|
||||
'<p>' .
|
||||
__('The Enterprise version comes with a different update system, with fully tested, professionally-supported packages, and our support team is there to help you in case of problems or queries. Update Manager is another feature present in the Enterprise version and not included in the OpenSource version. There are lots of advanced business-oriented features contained in Pandora FMS Enterprise Edition. For more information visit <a href="http://pandorafms.com">pandorafms.com</a>') .
|
||||
__('The Enterprise version comes with a different update system, with fully tested, professionally-supported packages, and our support team is there to help you in case of problems or queries. Update Manager is another feature present in the Enterprise version and not included in the OpenSource version. There are lots of advanced business-oriented features contained in %s Enterprise Edition. For more information visit <a href="http://pandorafms.com">pandorafms.com</a>', get_product_name()) .
|
||||
'</p>'
|
||||
;
|
||||
|
||||
|
@ -125,13 +127,13 @@ switch ($tipo) {
|
|||
|
||||
echo
|
||||
'<p>' .
|
||||
__('The new <a href="http://updatemanager.sourceforge.net">Update Manager</a> client is shipped with Pandora FMS It helps system administrators to update their Pandora FMS automatically, since the Update Manager does the task of getting new modules, new plugins and new features (even full migrations tools for future versions) automatically.') .
|
||||
__('The new <a href="http://updatemanager.sourceforge.net">Update Manager</a> client is included on %s. It helps system administrators update their %s automatically, since the Update Manager retrieves new modules, new plugins and new features (even full migrations tools for future versions) automatically.', get_product_name(), get_product_name()) .
|
||||
'</p>' .
|
||||
'<p>' .
|
||||
__('Update Manager is one of the most advanced features of Pandora FMS Enterprise version, for more information visit <a href="http://pandorafms.com">http://pandorafms.com</a>.') .
|
||||
__('The Update Manager is one of the most advanced features on the %s Enterprise Edition. For more information visit <a href="http://pandorafms.com">http://pandorafms.com</a>.', get_product_name()) .
|
||||
'</p>' .
|
||||
'<p>' .
|
||||
__('Update Manager sends anonymous information about Pandora FMS usage (number of agents and modules running). To disable it, please remove the remote server address from the Update Manager plugin setup.') .
|
||||
__('Update Manager sends anonymous information about %s usage (number of agents and modules running). To disable it, please remove the remote server address from the Update Manager plugin setup.', get_product_name()) .
|
||||
'</p>'
|
||||
;
|
||||
}
|
||||
|
@ -142,13 +144,13 @@ switch ($tipo) {
|
|||
<br><br><img style='width:105px' src='".$config['homeurl']."images/logo_oracle.png'><img style='width:105px' src='".$config['homeurl']."images/logo_citrix.png'><img style='width:105px' src='".$config['homeurl']."images/logo_sap.png'><img style='width:105px' src='".$config['homeurl']."images/logo_exchange.png'><br><br><span style='font-style:italic;'>* Todos los logotipos pertenecen a marcas registradas</span>");
|
||||
break;
|
||||
case "massivemodal":
|
||||
echo __("Do you want to consolidate all your system monitoring? Do you have many systems, making it difficult to manage them in a comprehensive manner? Would you like to deploy monitoring, alerts and even local plugins with a single click? Pandora FMS Enterprise Policies are exactly what you need; you'll save time, effort and annoyances. More information <a href='pandorafms.com'>pandorafms.com</a>");
|
||||
echo __("Do you want to consolidate all your system monitoring? Do you have many systems, making it difficult to manage them in a comprehensive manner? Would you like to deploy monitoring, alerts and even local plugins with a single click? %s Enterprise Policies are exactly what you need; you'll save time, effort and annoyances. More information <a href='pandorafms.com'>pandorafms.com</a>", get_product_name());
|
||||
break;
|
||||
case "eventsmodal":
|
||||
echo __("Pandora FMS Enterprise also features event correlation. Through correlation you can generate realtime alerts and / or new events based on logical rules. This allows you to automate troubleshooting. If you know the value of working with events, event correlation will take you to a new level.");
|
||||
echo __("%s Enterprise also features event correlation. Through correlation you can generate realtime alerts and / or new events based on logical rules. This allows you to automate troubleshooting. If you know the value of working with events, event correlation will take you to a new level.", get_product_name());
|
||||
break;
|
||||
case "reportingmodal":
|
||||
echo __("Report generating on the Enterprise version is also more powerful: it has wizards, you can schedule emails in PDF to be sent according to the schedule you decide, and it has a template system to create personalized reports quickly for each of your customers. It will even allow your customers to generate their own reports from templates created by you. If reports are key to your business, Pandora FMS Enterprise version is for you.");
|
||||
echo __("Report generating on the Enterprise version is also more powerful: it has wizards, you can schedule emails in PDF to be sent according to the schedule you decide, and it has a template system to create personalized reports quickly for each of your customers. It will even allow your customers to generate their own reports from templates created by you. If reports are key to your business, %s Enterprise version is for you.", get_product_name());
|
||||
break;
|
||||
case "visualmodal":
|
||||
echo __("These options are only effective on the Enterprise version.");
|
||||
|
|
|
@ -29,9 +29,10 @@ ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no cu
|
|||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Custom Graph'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("Graphs are designed to show the data collected by Pandora FMS in a temporary scale defined by the user.
|
||||
Pandora FMS Graphs display data in real time. They are generated every time the operator requires any of them and display the up-to-date state.
|
||||
There are two types of graphs: The agent's automated graphs and the graphs the user customizes by using one or more modules to do so."); ?></p>
|
||||
<p id="description_task"> <?php echo __("Graphs are designed to show the data collected by %s in a temporary scale defined by the user.
|
||||
%s Graphs display data in real time. They are generated every time the operator requires any of them and display the up-to-date state.
|
||||
There are two types of graphs: The agent's automated graphs and the graphs the user customizes by using one or more modules to do so.",
|
||||
get_product_name(), get_product_name()); ?></p>
|
||||
<form action="index.php?sec=reporting&sec2=godmode/reporting/graph_builder" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Custom Graph'); ?>" />
|
||||
</form>
|
||||
|
|
|
@ -33,13 +33,13 @@ if ($incident_w || $incident_m) {
|
|||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Incidents'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("Besides receiving and processing data to monitor systems or applications,
|
||||
you're also required to monitor possible incidents which might take place on these systems within the system monitoring process.
|
||||
For it, the Pandora FMS team has designed an incident manager within which any user is able to open incidents,
|
||||
explaining what's happened on the network and to update them with comments and files any time in case there is a need to do so.
|
||||
This system allows the users to work as a team, along with different roles and work-flow systems which allows an incident to be
|
||||
moved from one group to another, and that members from different groups and different people could work on the same incident, sharing information and files.
|
||||
"); ?></p>
|
||||
<p id="description_task"> <?php echo __("Besides receiving and processing data to monitor systems or applications,
|
||||
you're also required to monitor possible incidents which might take place on these subsystems within the system's monitoring process.
|
||||
For it, the %s team has designed an incident manager from which any user is able to open incidents,
|
||||
that explain what's happened on the network, and update them with comments and files, at any time, in case there is a need to do so.
|
||||
This system allows users to work as a team, along with different roles and work-flow systems which allow an incident to be
|
||||
moved from one group to another, and members from different groups and different people could work on the same incident, sharing information and files.
|
||||
", get_product_name()); ?></p>
|
||||
<form action="index.php?sec=workspace&sec2=operation/incidents/incident_detail&insert_form=1" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Incidents'); ?>" />
|
||||
</form>
|
||||
|
|
|
@ -33,11 +33,15 @@ if ($vconsoles_write || $vconsoles_manage) {
|
|||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Visual Console'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("Pandora FMS allows you to create visual maps in which each user is able to create his own monitoring map.
|
||||
The new visual console editor is much more practical, although the old visual console editor had its advantages.
|
||||
Within the new visual console, we've been successful in imitating the sensation and touch of a drawing application like GIMP.
|
||||
We've also simplified the editor by dividing it into several subject-matter tabs named 'Data', 'Preview', 'Wizard', 'List of Elements' and 'Editor'.
|
||||
The elements the Pandora FMS Visual Map was designed to handle are 'static image', 'percentage bar', 'module graph' and 'simple value'. "); ?></p>
|
||||
<p id="description_task"> <?php echo __(
|
||||
"%s allows users to create visual maps on which each user is able to create his or her " .
|
||||
"own monitoring map. The new visual console editor is much more practical, although the prior " .
|
||||
"visual console editor had its advantages. On the new visual console, we've been successful in " .
|
||||
"imitating the sensation and touch of a drawing application like GIMP. We've also simplified the " .
|
||||
"editor by dividing it into several subject-divided tabs named 'Data', 'Preview', 'Wizard', 'List of " .
|
||||
"Elements' and 'Editor'. The items the %s Visual Map was designed to handle are " .
|
||||
"'static images', 'percentage bars', 'module graphs' and 'simple values'.",
|
||||
get_product_name(), get_product_name()); ?></p>
|
||||
<form action="index.php?sec=network&sec2=godmode/reporting/visual_console_builder" method="post">
|
||||
<?php html_print_input_hidden ('edit_layout', 1); ?>
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Visual Console'); ?>" />
|
||||
|
|
|
@ -26,10 +26,11 @@ ui_require_css_file ('firts_task');
|
|||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Planned Downtime'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("Pandora FMS contains a scheduled downtime management system.
|
||||
This system was designed to deactivate the alerts in the intervals whenever there is down time by deactivating the agent.
|
||||
If an agent is deactivated, it doesn't collect information. In a down time, the down-time intervals aren't taken into
|
||||
account for most of the metrics or types of reports, because the agents don't contain any data within those intervals. "); ?></p>
|
||||
<p id="description_task"> <?php echo __("%s contains a scheduled downtime management system.
|
||||
This system was designed to deactivate alerts during specific intervals whenever there is down time by deactivating the agent.
|
||||
If an agent is deactivated, it doesn't gather information. During down time, down-time intervals aren't taken into
|
||||
account for most metrics or report types, because agents don't contain any data within those intervals.",
|
||||
get_product_name()); ?></p>
|
||||
<form action="index.php?sec=estado&sec2=godmode/agentes/planned_downtime.editor" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Planned Downtime'); ?>" />
|
||||
</form>
|
||||
|
|
|
@ -26,9 +26,9 @@ ui_require_css_file ('firts_task');
|
|||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Tags'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("From Pandora FMS versions 5 and above, the access to modules can be configured by a tags system.
|
||||
Tags are configured on the system and be assigned to the chosen modules.
|
||||
The user's access can be limited to modules with certain tags in this way. "); ?></p>
|
||||
<p id="description_task"> <?php echo __("Access to modules can be configured by a tagging system.
|
||||
Tags are configured on the system and are assigned to the chosen modules.
|
||||
A user's access can therefore be restricted to modules with certain tags."); ?></p>
|
||||
<form action="index.php?sec=gmodules&sec2=godmode/tag/edit_tag&action=new" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Tags'); ?>" />
|
||||
</form>
|
||||
|
|
|
@ -45,11 +45,11 @@ else{
|
|||
$build_package_version = $current_package;
|
||||
}
|
||||
|
||||
echo sprintf(__('Pandora FMS %s - Build %s - MR %s', $pandora_version, $build_package_version, $config["MR"]));
|
||||
echo sprintf(__('%s %s - Build %s - MR %s', get_product_name(), $pandora_version, $build_package_version, $config["MR"]));
|
||||
|
||||
echo '</a><br />';
|
||||
echo '<a class="white footer">'. __('Page generated at') . ' '. date('F j, Y h:i a'); //Always use timestamp here
|
||||
echo '</a><br /><span style="color:#eff">'.__("® Ártica ST").'</span>';
|
||||
echo '</a><br /><span style="color:#eff">® '.get_copyright_notice().'</span>';
|
||||
|
||||
if (isset ($config['debug'])) {
|
||||
$cache_info = array();
|
||||
|
|
|
@ -31,14 +31,14 @@ config_check();
|
|||
$custom_logo = 'images/custom_logo/' . $config['custom_logo'];
|
||||
|
||||
if (!defined ('PANDORA_ENTERPRISE')) {
|
||||
$logo_title = 'Pandora FMS Opensource';
|
||||
$logo_title = get_product_name() . ' Opensource';
|
||||
$custom_logo = 'images/custom_logo/pandora_logo_head_3.png';
|
||||
}
|
||||
else {
|
||||
if (file_exists(ENTERPRISE_DIR . '/' . $custom_logo)) {
|
||||
$custom_logo = ENTERPRISE_DIR . '/' . $custom_logo;
|
||||
}
|
||||
$logo_title = 'Pandora FMS Enterprise';
|
||||
$logo_title = get_product_name() . ' Enterprise';
|
||||
}
|
||||
|
||||
echo html_print_image($custom_logo, true,
|
||||
|
@ -158,7 +158,7 @@ config_check();
|
|||
</script>
|
||||
<?php
|
||||
|
||||
if ($config['tutorial_mode'] !== 'expert') {
|
||||
if ($config['tutorial_mode'] !== 'expert' && !$config['disable_help']) {
|
||||
$table->data[0]['clippy'] =
|
||||
'<a href="javascript: show_clippy();">' .
|
||||
html_print_image(
|
||||
|
@ -166,8 +166,8 @@ config_check();
|
|||
true,
|
||||
array("id" => 'clippy',
|
||||
"class" => 'clippy',
|
||||
"alt" => __('Pandora FMS assistant'),
|
||||
'title' => __('Pandora FMS assistant'))) .
|
||||
"alt" => __('%s assistant', get_product_name()),
|
||||
'title' => __('%s assistant', get_product_name()))) .
|
||||
'</a>';
|
||||
}
|
||||
|
||||
|
@ -307,11 +307,15 @@ config_check();
|
|||
$table->data[0][3] = $maintenance_img;
|
||||
|
||||
// Main help icon
|
||||
$table->data[0][4] = '<a href="#" class="modalpopup" id="helpmodal">'.html_print_image("images/header_help.png",
|
||||
true, array(
|
||||
"title" => __('Main help'),
|
||||
"id" => "helpmodal",
|
||||
"class" => "modalpopup")).'</a>';
|
||||
if (!$config['disable_help']) {
|
||||
$table->data[0][4] =
|
||||
'<a href="#" class="modalpopup" id="helpmodal">' .
|
||||
html_print_image("images/header_help.png", true, array(
|
||||
"title" => __('Main help'),
|
||||
"id" => "helpmodal",
|
||||
"class" => "modalpopup")) .
|
||||
'</a>';
|
||||
}
|
||||
|
||||
// Logout
|
||||
$table->data[0][5] = '<a class="white" href="' . ui_get_full_url('index.php?bye=bye') . '">';
|
||||
|
|
|
@ -36,10 +36,11 @@ if (is_ajax()) {
|
|||
|
||||
// Prints help dialog information
|
||||
echo '<div id="login_help_dialog" title="' .
|
||||
__('Welcome to Pandora FMS') . '" style="">';
|
||||
__('Welcome to %s', get_product_name()) . '" style="">';
|
||||
|
||||
echo '<div style="font-size: 10pt; margin: 20px;">';
|
||||
echo __('If this is your first time with Pandora FMS, we propose you a few links to learn more about Pandora FMS. Monitoring could be overwhelm, but take your time to learn how to use the power of Pandora FMS!');
|
||||
echo __("If this is your first time using %s, we suggest a few links that'll help you learn more about the software. Monitoring can be overwhelming, but take your time to learn how to harness the power of %s!",
|
||||
get_product_name(), get_product_name());
|
||||
echo '</div>';
|
||||
|
||||
echo '<div style="">';
|
||||
|
@ -70,11 +71,11 @@ echo '<div id="login_help_dialog" title="' .
|
|||
echo '</td>';
|
||||
|
||||
echo '<td style="border:1px solid #FFF; text-align:center;">';
|
||||
echo '<a href="http://pandorafms.com/pandora/doc/en" target="_blank" style="text-decoration:none;">' .
|
||||
echo '<a href="' . $config['custom_docs_url'] . '" target="_blank" style="text-decoration:none;">' .
|
||||
html_print_image('images/documentation.png', true,
|
||||
array("alt" => __('Documentation'), "border" => 0)) . '</a>';
|
||||
echo '<br style="margin-bottom: 40px;" />';
|
||||
echo '<a style="font-size: 9pt;" href="http://pandorafms.com/pandora/doc/en" target="_blank">' . __('Documentation') . '</span></a>';
|
||||
echo '<a style="font-size: 9pt;" href="' . $config['custom_docs_url'] . '" target="_blank">' . __('Documentation') . '</span></a>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
|
|
|
@ -138,17 +138,17 @@ if ($email == 'admin@example.com') $email = '';
|
|||
|
||||
// Prints accept register license
|
||||
echo '<div id="login_accept_register" title="' .
|
||||
__('The Pandora FMS community wizard') . '" style="">';
|
||||
__('The %s community wizard', get_product_name()) . '" style="">';
|
||||
echo '<div style="margin: 5px 0 10px; float: left; padding-left: 15px;">';
|
||||
echo html_print_image ('images/pandora_circle_big.png', true);
|
||||
echo '</div>';
|
||||
echo '<div style="font-size: 12pt; margin: 5px 20px; float: left; padding-top: 23px;">';
|
||||
echo __('Stay up to date with the Pandora FMS community') . ".";
|
||||
echo __('Stay up to date with the %s community', get_product_name()) . ".";
|
||||
echo '</div>';
|
||||
|
||||
echo '<div id="license_newsletter">';
|
||||
echo '<p>' . __("When you subscribe to the Pandora FMS Update Manager service, you accept that we register your Pandora instance as an identifier on the database owned by Artica TS. This data will solely be used to provide you with information about Pandora FMS and will not be conceded to third parties. You'll be able to unregister from said database at any time from the Update Manager options") . '.</p>';
|
||||
echo '<p>' . __("In the same fashion, when subscribed to the newsletter you accept that your email will pass on to a database property of Artica TS. This data will solely be used to provide you with information about Pandora FMS and will not be conceded to third parties. You'll be able to unregister from said database at any time from the newsletter subscription options") . '.</p>';
|
||||
echo '<p>' . __("When you subscribe to the %s Update Manager service, you accept that we register your %s instance as an identifier on the database owned by Artica TS. This data will solely be used to provide you with information about %s and will not be conceded to third parties. You can unregister from said database at any time from the Update Manager options.", get_product_name(), get_product_name(), get_product_name()) . '</p>';
|
||||
echo '<p>' . __("In the same fashion, when subscribed to the newsletter you accept that your email will pass on to a database property of Artica TS. This data will solely be used to provide you with information about %s and will not be conceded to third parties. You can unregister from said database at any time from the newsletter subscription options.", get_product_name()) . '</p>';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div style="position:absolute; margin: 0 auto; bottom: 0px; padding-top:10px; position:relative; border: 1px solid #FFF;">';
|
||||
|
@ -161,7 +161,7 @@ echo '<div id="login_accept_register" title="' .
|
|||
echo '</div>';
|
||||
echo '<div style="float: left; margin-left: 0px; width: 50%; text-align: left;">';
|
||||
html_print_checkbox('register', 1, false, false, false, 'cursor: \'pointer\'');
|
||||
echo ' <span style="font-size: 12px;" id="label-register">' .__("Join the Pandora FMS community") . '!</span><br>';
|
||||
echo ' <span style="font-size: 12px;" id="label-register">' .__('Join the %s community!', get_product_name()) . '!</span><br>';
|
||||
html_print_checkbox('newsletter', 1, false, false, false, 'cursor: \'pointer\'');
|
||||
echo ' <span style="font-size: 12px;" id="label-newsletter">' .__("Subscribe to our newsletter") . '</span>';
|
||||
echo "<br>";
|
||||
|
@ -176,7 +176,7 @@ echo '</div>';
|
|||
|
||||
// Print yes or not dialog
|
||||
echo '<div id="login_registration_yesno" title="' .
|
||||
__('Pandora FMS instance identification wizard') . '" style="">';
|
||||
__("%s instance identification wizard", get_product_name()) . '" style="">';
|
||||
echo '<div style="font-size: 12pt; margin: 20px;">';
|
||||
echo __("Do you want to continue without any registration") . "?";
|
||||
echo '</div>';
|
||||
|
|
|
@ -50,7 +50,7 @@ if (!isset($login_screen)) {
|
|||
switch ($login_screen) {
|
||||
case 'login':
|
||||
$logo_link = 'http://www.pandorafms.com';
|
||||
$logo_title = __('Go to Pandora FMS Website');
|
||||
$logo_title = __('Go to %s Website', get_product_name());
|
||||
break;
|
||||
case 'logout':
|
||||
case 'double_auth':
|
||||
|
@ -86,31 +86,39 @@ if (!empty($config['login_background'])) {
|
|||
$background_url = "images/backgrounds/" . $config['login_background'];
|
||||
$login_body_style = "style=\"background-image: url('$background_url');\"";
|
||||
}
|
||||
// Get the custom icons
|
||||
$docs_logo = ui_get_docs_logo();
|
||||
$support_logo = ui_get_support_logo();
|
||||
echo '<div id="login_body" ' . $login_body_style . '>';
|
||||
echo '<div id="header_login">';
|
||||
echo '<div id="icon_custom_pandora">';
|
||||
|
||||
if (file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
|
||||
if(isset ($config['custom_logo'])){
|
||||
echo '<img src="enterprise/images/custom_logo/' . $config['custom_logo'] .'" alt="pandora_console">';
|
||||
echo '<img src="enterprise/images/custom_logo/' . $config['custom_logo'] .'" alt="monitoring_console">';
|
||||
}
|
||||
else{
|
||||
echo '<img src="images/custom_logo/pandora_logo_head_4.png" alt="pandora_console">';
|
||||
echo '<img src="images/custom_logo/pandora_logo_head_4.png" alt="monitoring_console">';
|
||||
}
|
||||
}
|
||||
else{
|
||||
echo '<img src="images/custom_logo/pandora_logo_head_3.png" alt="pandora_console">';
|
||||
echo '<img src="images/custom_logo/pandora_logo_head_3.png" alt="monitoring_console">';
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div id="list_icon_docs_support"><ul>';
|
||||
echo '<li><a href="'.$config['custom_docs_url'].'" target="_blank"><img src="images/icono_docs.png" alt="docs pandora"></a></li>';
|
||||
echo '<li>' . __('Docs') . '</li>';
|
||||
if (file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
|
||||
echo '<li id="li_margin_left"><a href="'.$config['custom_support_url'].'" target="_blank"><img src="images/icono_support.png" alt="support pandora"></a></li>';
|
||||
} else {
|
||||
echo '<li id="li_margin_left"><a href="https://pandorafms.com/monitoring-services/support/" target="_blank"><img src="images/icono_support.png" alt="support pandora"></a></li>';
|
||||
echo '<div id="list_icon_docs_support"><ul style="line-height: 36px;">';
|
||||
if ($docs_logo !== false) {
|
||||
echo '<li><a href="'.$config['custom_docs_url'].'" target="_blank"><img src="' . $docs_logo . '" alt="docs"></a></li>';
|
||||
}
|
||||
echo '<li><a style="color: white; font-size:inherit;" href="'.$config['custom_docs_url'].'" target="_blank">' . __('Docs') . '</li>';
|
||||
if (file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
|
||||
if ($support_logo !== false) {
|
||||
echo '<li id="li_margin_left"><a href="'.$config['custom_support_url'].'" target="_blank"><img src="' . $support_logo .'" alt="support"></a></li>';
|
||||
}
|
||||
echo '<li><a style="color: white; font-size:inherit;" href="'.$config['custom_support_url'].'" target="_blank">' . __('Support') . '</li>';
|
||||
} else {
|
||||
echo '<li id="li_margin_left"><a href="https://pandorafms.com/monitoring-services/support/" target="_blank"><img src="' . $support_logo .'" alt="support"></a></li>';
|
||||
echo '<li>' . __('Support') . '</li>';
|
||||
}
|
||||
echo '<li>' . __('Support') . '</li>';
|
||||
echo '</ul></div>';
|
||||
|
||||
|
||||
|
@ -250,17 +258,17 @@ echo '<div class="login_page">';
|
|||
echo '</form></div>';
|
||||
echo '<div class="login_data">';
|
||||
echo '<div class ="text_banner_login">';
|
||||
echo '<div><span class="span1">';
|
||||
echo '<div><span class="span1 pandora_upper">';
|
||||
if(file_exists (ENTERPRISE_DIR . "/load_enterprise.php")){
|
||||
if($config['custom_title1_login']){
|
||||
echo io_safe_output($config['custom_title1_login']);
|
||||
}
|
||||
else{
|
||||
echo __('WELCOME TO PANDORA FMS');
|
||||
echo __('WELCOME TO %s', get_product_name());
|
||||
}
|
||||
}
|
||||
else{
|
||||
echo __('WELCOME TO PANDORA FMS');
|
||||
echo __('WELCOME TO %s', get_product_name());
|
||||
}
|
||||
echo '</span></div>';
|
||||
echo '<div><span class="span2">';
|
||||
|
@ -380,7 +388,7 @@ if ($login_screen == 'logout'){
|
|||
echo '<div class="content_message_alert">';
|
||||
echo '<div class="text_message_alert">';
|
||||
echo '<h1>'. __('Logged out') .'</h1>';
|
||||
echo '<p>' . __('Your session is over. Please close your browser window to close this Pandora session.') .'</p>';
|
||||
echo '<p>' . __('Your session has ended. Please close your browser window to close this %s session.', get_product_name()) .'</p>';
|
||||
echo '</div>';
|
||||
echo '<div class="button_message_alert">';
|
||||
html_print_submit_button("Ok", 'hide-login-logout', false);
|
||||
|
@ -393,7 +401,7 @@ if ($login_screen == 'logout'){
|
|||
switch ($login_screen) {
|
||||
case 'error_authconfig':
|
||||
case 'error_dbconfig':
|
||||
$title = __('Problem with Pandora FMS database');
|
||||
$title = __('Problem with %s database', get_product_name());
|
||||
$message = __('Cannot connect to the database, please check your database setup in the <b>include/config.php</b> file.<i><br/><br/>
|
||||
Probably your database, hostname, user or password values are incorrect or
|
||||
the database server is not running.').'<br /><br />';
|
||||
|
@ -404,21 +412,22 @@ switch ($login_screen) {
|
|||
|
||||
if ($error_code == 'error_authconfig') {
|
||||
$message .= '<br/><br/>';
|
||||
$message .= __('If you have modified auth system, this problem could be because Pandora cannot override authorization variables from the config database. Remove them from your database by executing:<br><pre>DELETE FROM tconfig WHERE token = "auth";</pre>');
|
||||
$message .= __('If you have modified the auth system, the origin of this problem could be that %s cannot override the authorization variables from the config database. Please remove them from your database by executing:<br><pre>DELETE FROM tconfig WHERE token = "auth";</pre>', get_product_name());
|
||||
}
|
||||
break;
|
||||
case 'error_emptyconfig':
|
||||
$title = __('Empty configuration table');
|
||||
$message = __('Cannot load configuration variables from database. Please check your database setup in the
|
||||
<b>include/config.php</b> file.<i><br><br>
|
||||
Most likely your database schema has been created but there are is no data in it, you have a problem with the database access credentials or your schema is out of date.
|
||||
<br><br>Pandora FMS Console cannot find <i>include/config.php</i> or this file has invalid
|
||||
permissions and HTTP server cannot read it. Please read documentation to fix this problem.</i>').'<br /><br />';
|
||||
<b>include/config.php</b> file.<i><br><br>
|
||||
Most likely your database schema has been created but there are is no data in it, you have a problem with the database access credentials or your schema is out of date.
|
||||
<br><br>%s Console cannot find <i>include/config.php</i> or this file has invalid
|
||||
permissions and HTTP server cannot read it. Please read documentation to fix this problem.</i>',
|
||||
get_product_name()).'<br /><br />';
|
||||
break;
|
||||
case 'error_noconfig':
|
||||
$title = __('No configuration file found');
|
||||
$message = __('Pandora FMS Console cannot find <i>include/config.php</i> or this file has invalid
|
||||
permissions and HTTP server cannot read it. Please read documentation to fix this problem.').'<br /><br />';
|
||||
$message = __('%s Console cannot find <i>include/config.php</i> or this file has invalid
|
||||
permissions and HTTP server cannot read it. Please read documentation to fix this problem.', get_product_name()).'<br /><br />';
|
||||
if (file_exists('install.php')) {
|
||||
$link_start = '<a href="install.php">';
|
||||
$link_end = '</a>';
|
||||
|
@ -433,7 +442,7 @@ switch ($login_screen) {
|
|||
case 'error_install':
|
||||
$title = __('Installer active');
|
||||
$message = __('For security reasons, normal operation is not possible until you delete installer file.
|
||||
Please delete the <i>./install.php</i> file before running Pandora FMS Console.');
|
||||
Please delete the <i>./install.php</i> file before running %s Console.', get_product_name());
|
||||
break;
|
||||
case 'error_perms':
|
||||
$title = __('Bad permission for include/config.php');
|
||||
|
|
|
@ -66,10 +66,10 @@ if ($email == 'admin@example.com') $email = '';
|
|||
|
||||
// Prints first step pandora registration
|
||||
echo '<div id="login_id_dialog" title="' .
|
||||
__('Pandora FMS instance identification wizard') . '" style="display: none;">';
|
||||
__('%s instance identification wizard', get_product_name()) . '" style="display: none;">';
|
||||
|
||||
echo '<div style="font-size: 10pt; margin: 20px;">';
|
||||
echo __('Please fill the following information in order to configure your Pandora FMS instance successfully') . '.';
|
||||
echo __('Please fill the following information in order to configure your %s instance successfully', get_product_name()) . '.';
|
||||
echo '</div>';
|
||||
|
||||
echo '<div style="">';
|
||||
|
@ -83,7 +83,7 @@ echo '<div id="login_id_dialog" title="' .
|
|||
$table->size[1] = '60%';
|
||||
$table->border = '5px solid';
|
||||
|
||||
$table->data[0][0] = __('Language code for Pandora');
|
||||
$table->data[0][0] = __('Language code');
|
||||
$table->data[0][1] = html_print_select_from_sql (
|
||||
'SELECT id_language, name FROM tlanguage',
|
||||
'language', $config['language'] , '', '', '', true);
|
||||
|
|
|
@ -29,8 +29,6 @@ require_once ("include/functions_reporting.php");
|
|||
require_once ("include/functions_tactical.php");
|
||||
require_once ($config["homedir"] . '/include/functions_graph.php');
|
||||
|
||||
//ui_print_page_header (__('Welcome to Pandora FMS Web Console'),'',false,"",false);
|
||||
|
||||
if (tags_has_user_acl_tags()) {
|
||||
ui_print_tags_warning();
|
||||
}
|
||||
|
@ -111,7 +109,7 @@ if (!empty($all_data)) {
|
|||
$table->data = array ();
|
||||
$table->headstyle[0] = 'text-align:center;';
|
||||
$table->width = "100%";
|
||||
$table->head[0] = '<span>' . __('Pandora FMS Overview') . '</span>';
|
||||
$table->head[0] = '<span>' . __('%s Overview', get_product_name()) . '</span>';
|
||||
$table->head_colspan[0] = 4;
|
||||
|
||||
// Indicators
|
||||
|
@ -226,7 +224,7 @@ if (!empty($all_data)) {
|
|||
$table->head[2] = __('Date');
|
||||
$table->head[3] = __('Source IP');
|
||||
$table->head[4] = __('Comments');
|
||||
$table->title = '<span>' . __('This is your last activity in Pandora FMS console') . '</span>';
|
||||
$table->title = '<span>' . __('This is your last activity performed on the %s console', get_product_name()) . '</span>';
|
||||
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
|
@ -294,198 +292,4 @@ if (!empty($all_data)) {
|
|||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
return;
|
||||
// ---------------------------------------------------------------------
|
||||
// Site news !
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
//echo '<div id="left_column_logon_ok" id="leftcolumn">';
|
||||
echo '<div style="width:30%; float:left;" id="leftcolumn">';
|
||||
|
||||
///////////////
|
||||
// Overview Table
|
||||
///////////////
|
||||
|
||||
$table->class = "databox";
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->head = array ();
|
||||
$table->data = array ();
|
||||
$table->style[0] = 'text-align:center;';
|
||||
$table->width = "100%";
|
||||
$table->head[0] = '<span>' . __('Pandora FMS Overview') . '</span>';
|
||||
$table->head_colspan[0] = 4;
|
||||
|
||||
// Indicators
|
||||
$tdata = array();
|
||||
$tdata[0] = reporting_get_stats_indicators($data);
|
||||
$table->rowclass[] = '';
|
||||
|
||||
$table->data[] = $tdata;
|
||||
|
||||
// Alerts
|
||||
$tdata = array();
|
||||
$tdata[0] = reporting_get_stats_alerts($data);
|
||||
$table->rowclass[] = '';
|
||||
$table->data[] = $tdata;
|
||||
|
||||
// Modules by status
|
||||
$tdata = array();
|
||||
$tdata[0] = reporting_get_stats_modules_status($data);
|
||||
$table->rowclass[] = '';
|
||||
$table->data[] = $tdata;
|
||||
|
||||
// Total agents and modules
|
||||
$tdata = array();
|
||||
$tdata[0] = reporting_get_stats_agents_monitors($data);
|
||||
$table->rowclass[] = '';
|
||||
$table->data[] = $tdata;
|
||||
|
||||
// Users
|
||||
$tdata = array();
|
||||
$tdata[0] = reporting_get_stats_users($data);
|
||||
$table->rowclass[] = '';
|
||||
$table->data[] = $tdata;
|
||||
|
||||
html_print_table($table);
|
||||
unset($table);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Site stats (global!)
|
||||
// ---------------------------------------------------------------------------
|
||||
//echo '<div id="right_column_logon_ok" id="rightcolumn">';
|
||||
echo '<div style="width: 50%; float:left;" id="rightcolumn">';
|
||||
|
||||
$options = array();
|
||||
$options['id_user'] = $config['id_user'];
|
||||
$options['modal'] = false;
|
||||
$options['limit'] = 3;
|
||||
$news = get_news($options);
|
||||
|
||||
|
||||
if (!empty($news)) {
|
||||
//////////////////NEWS BOARD/////////////////////////////
|
||||
echo '<div id="news_board">';
|
||||
|
||||
echo '<table cellpadding="4" cellspacing="4" class="databox">';
|
||||
echo '<tr><th><span>' . __('News board') . '</span></th></tr>';
|
||||
if ($config["prominent_time"] == "timestamp") {
|
||||
$comparation_suffix = "";
|
||||
}
|
||||
else {
|
||||
$comparation_suffix = __('ago');
|
||||
}
|
||||
foreach ($news as $article) {
|
||||
$text = io_safe_output($article["text"]);
|
||||
|
||||
|
||||
echo '<tr><th><b>'.$article["subject"].'</b></th></tr>';
|
||||
echo '<tr><td>' . __('by') . ' <b>' .
|
||||
$article["author"] . '</b> <i>' . ui_print_timestamp ($article["timestamp"], true).'</i> ' . $comparation_suffix . '</td></tr>';
|
||||
echo '<tr><td class="datos">';
|
||||
echo nl2br($text);
|
||||
echo '</td></tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</div>'; // News board
|
||||
|
||||
|
||||
|
||||
echo '<br><br>';
|
||||
|
||||
//////////////////END OF NEWS BOARD/////////////////////////////
|
||||
}
|
||||
|
||||
//////////////////LAST ACTIVITY/////////////////////////////
|
||||
|
||||
// Show last activity from this user
|
||||
echo '<div id="activity">';
|
||||
|
||||
$table->width = '100%'; //Don't specify px
|
||||
$table->data = array ();
|
||||
$table->size = array ();
|
||||
$table->size[2] = '150px';
|
||||
$table->size[3] = '130px';
|
||||
$table->size[5] = '200px';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('User');
|
||||
$table->head[1] = '';
|
||||
$table->head[2] = __('Action');
|
||||
$table->head[3] = __('Date');
|
||||
$table->head[4] = __('Source IP');
|
||||
$table->head[5] = __('Comments');
|
||||
$table->title = '<span>' . __('This is your last activity in Pandora FMS console') . '</span>';
|
||||
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
$sql = sprintf ("SELECT id_usuario,accion,fecha,ip_origen,descripcion,utimestamp
|
||||
FROM tsesion
|
||||
WHERE (`utimestamp` > UNIX_TIMESTAMP(NOW()) - " . SECONDS_1WEEK . ")
|
||||
AND `id_usuario` = '%s' ORDER BY `utimestamp` DESC LIMIT 10", $config["id_user"]);
|
||||
break;
|
||||
case "postgresql":
|
||||
$sql = sprintf ("SELECT \"id_usuario\", accion, fecha, \"ip_origen\", descripcion, utimestamp
|
||||
FROM tsesion
|
||||
WHERE (\"utimestamp\" > ceil(date_part('epoch', CURRENT_TIMESTAMP)) - " . SECONDS_1WEEK . ")
|
||||
AND \"id_usuario\" = '%s' ORDER BY \"utimestamp\" DESC LIMIT 10", $config["id_user"]);
|
||||
break;
|
||||
case "oracle":
|
||||
$sql = sprintf ("SELECT id_usuario, accion, fecha, ip_origen, descripcion, utimestamp
|
||||
FROM tsesion
|
||||
WHERE ((utimestamp > ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (" . SECONDS_1DAY . ")) - " . SECONDS_1WEEK . ")
|
||||
AND id_usuario = '%s') AND rownum <= 10 ORDER BY utimestamp DESC", $config["id_user"]);
|
||||
break;
|
||||
}
|
||||
|
||||
$sessions = db_get_all_rows_sql ($sql);
|
||||
|
||||
if ($sessions === false)
|
||||
$sessions = array ();
|
||||
|
||||
foreach ($sessions as $session) {
|
||||
$data = array ();
|
||||
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
case "oracle":
|
||||
$session_id_usuario = $session['id_usuario'];
|
||||
$session_ip_origen = $session['ip_origen'];
|
||||
break;
|
||||
case "postgresql":
|
||||
$session_id_usuario = $session['id_usuario'];
|
||||
$session_ip_origen = $session['ip_origen'];
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$data[0] = '<strong>' . $session_id_usuario . '</strong>';
|
||||
$data[1] = ui_print_session_action_icon ($session['accion'], true);
|
||||
$data[2] = $session['accion'];
|
||||
$data[3] = ui_print_help_tip($session['fecha'], true) . human_time_comparation($session['utimestamp'], 'tiny');
|
||||
$data[4] = $session_ip_origen;
|
||||
$data[5] = io_safe_output ($session['descripcion']);
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
echo "<div style='width:100%; overflow-x:auto;'>";
|
||||
html_print_table ($table);
|
||||
unset($table);
|
||||
echo "</div>";
|
||||
echo "</div>"; // activity
|
||||
|
||||
//////////////////END OF LAST ACTIVIYY/////////////////////////////
|
||||
|
||||
|
||||
|
||||
echo "</div>";
|
||||
echo "<div style='clear:both'></div>";
|
||||
?>
|
||||
</table>
|
|
@ -112,7 +112,7 @@ position:absolute;background:black;opacity:0.6;z-index:-1;left:0px;top:0px;width
|
|||
|
||||
<div class='modalheade'>
|
||||
<span class='modalheadertex'>
|
||||
You don't have access to this page
|
||||
<?php echo __("You don't have access to this page");?>
|
||||
</span>
|
||||
<img class='modalclose cerrar' src='<?php echo $config['homeurl'];?>images/icono_cerrar.png'>
|
||||
|
||||
|
@ -121,8 +121,11 @@ position:absolute;background:black;opacity:0.6;z-index:-1;left:0px;top:0px;width
|
|||
<div class='modalconten'>
|
||||
<img class='modalcontentim' src='<?php echo $config['homeurl'];?>images/access_denied.png'>
|
||||
<div class='modalcontenttex'>
|
||||
Access to this page is restricted to authorized users only, please contact system administrator if you need assistance. <br/> <br/>
|
||||
Please know that all attempts to access this page are recorded in security logs of Pandora System Database
|
||||
<?php
|
||||
echo __("Access to this page is restricted to authorized users only, please contact system administrator if you need assistance.");
|
||||
echo "<br/> <br/>";
|
||||
echo __("Please know that all attempts to access this page are recorded in security logs of %s System Database", get_product_name());
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ require_once ("../include/functions_html.php");
|
|||
?>
|
||||
<html style="height:100%; margin-top: 25px; margin-left: 15px; margin-right: 15px; background-color: #333;"><head><title>
|
||||
<?php
|
||||
echo __('Pandora FMS help system');
|
||||
echo __('%s help system', get_product_name());
|
||||
?>
|
||||
</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
|
@ -61,11 +61,12 @@ foreach ($files as $file) {
|
|||
}
|
||||
}
|
||||
|
||||
$logo = ui_get_custom_header_logo(true);
|
||||
|
||||
if (! $id || ! file_exists ($help_file)) {
|
||||
echo '<div id="main_help" style="background-color: #fff;text-align:center; padding-top: 15px; padding-bottom: 15px; ">';
|
||||
if (!is_metaconsole()) {
|
||||
echo html_print_image('images/pandora_tinylogo.png', true, array("border" => '0'));
|
||||
echo html_print_image($logo, true, array("border" => '0'));
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div style="font-family: verdana, arial; font-size: 11px; text-align:left; background-color: #fff;">';
|
||||
|
@ -77,7 +78,7 @@ if (! $id || ! file_exists ($help_file)) {
|
|||
echo "<div style='text-align: center; background-color: #fff'>";
|
||||
|
||||
echo "</div>";
|
||||
echo '<div class="msg" style="padding-left: 30px;padding-right: 30px;padding-bottom: 15px;">'.__('Pandora FMS help system has been called with a help reference that currently don\'t exist. There is no help content to show.').'</div></div></div>';
|
||||
echo '<div class="msg" style="padding-left: 30px;padding-right: 30px;padding-bottom: 15px;">'.__("%s help system has been called with a help reference that currently don't exist. There is no help content to show.", get_product_name()).'</div></div></div>';
|
||||
echo '<br /><br />';
|
||||
echo '<div style="text-align: center; padding: 5px; font-family: verdana, arial; font-size: 11px;">';
|
||||
include ('footer.php');
|
||||
|
@ -86,16 +87,11 @@ if (! $id || ! file_exists ($help_file)) {
|
|||
|
||||
/* Show help */
|
||||
echo '<div id="main_help_new" style="background-color: #fff">';
|
||||
if (empty($config['enterprise_installed'])) {
|
||||
echo html_print_image('images/pandora_tinylogo_open.png', true, array("border" => '0'));
|
||||
if (!empty($config['enterprise_installed']) && is_metaconsole()) {
|
||||
echo '<img src="' . $config["homeurl"] . $logo . '">';
|
||||
}
|
||||
else {
|
||||
if (is_metaconsole()) {
|
||||
echo '<img src="'.$config["homeurl"].'images/pandora_tinylogo.png">';
|
||||
}
|
||||
else{
|
||||
echo html_print_image('images/pandora_tinylogo.png', true, array("border" => '0'));
|
||||
}
|
||||
echo html_print_image($logo, true, array("border" => '0'));
|
||||
}
|
||||
echo '</div>';
|
||||
echo '<div id="main_help_new_content" style="height: auto ! important;overfloat: auto;">';
|
||||
|
|
|
@ -54,7 +54,7 @@ $header_buttons = array(
|
|||
)
|
||||
);
|
||||
|
||||
ui_print_page_header(__('Pandora audit') . " » " . __('Review Logs'), "images/gm_log.png", false, "", true, $header_buttons);
|
||||
ui_print_page_header(__('%s audit', get_product_name()) . " » " . __('Review Logs'), "images/gm_log.png", false, "", true, $header_buttons);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->class = "databox filters";
|
||||
|
|
|
@ -409,8 +409,8 @@ if($id_agente){
|
|||
}
|
||||
|
||||
$table->data[2][0] = __('Safe operation mode')
|
||||
. ui_print_help_tip(__('This mode allow Pandora FMS to disable all modules
|
||||
of this agent while the selected module is on CRITICAL status'), true);
|
||||
. ui_print_help_tip(__('This mode allow %s to disable all modules
|
||||
of this agent while the selected module is on CRITICAL status', get_product_name()), true);
|
||||
$table->data[2][1] = html_print_checkbox('safe_mode', 1, $safe_mode, true);
|
||||
$table->data[2][1] .= " " . __('Module') . " " . html_print_select ($safe_mode_modules, "safe_mode_module", $safe_mode_module, "", "", 0, true);
|
||||
}
|
||||
|
@ -542,7 +542,7 @@ foreach ($fields as $field) {
|
|||
. '.<br />'
|
||||
. __('The format is: [url=\'url to navigate\']\'text to show\'[/url]')
|
||||
. '.<br /><br />'
|
||||
. __('e.g.: [url=pandorafms.org]Pandora FMS Community[/url]')
|
||||
. __('e.g.: [url=google.com]Google web search[/url]')
|
||||
, true);
|
||||
|
||||
$custom_value = db_get_value_filter('description',
|
||||
|
|
|
@ -1792,7 +1792,7 @@ if ($updateGIS) {
|
|||
"altitude" => $previusAgentGISData['stored_altitude'],
|
||||
"start_timestamp" => $previusAgentGISData['start_timestamp'],
|
||||
"end_timestamp" => date( 'Y-m-d H:i:s'),
|
||||
"description" => __('Save by Pandora Console'),
|
||||
"description" => __('Save by %s Console', get_product_name()),
|
||||
"manual_placement" => $previusAgentGISData['manual_placement'],
|
||||
"number_of_packages" => $previusAgentGISData['number_of_packages'],
|
||||
"tagente_id_agente" => $previusAgentGISData['tagente_id_agente']
|
||||
|
@ -1807,7 +1807,7 @@ if ($updateGIS) {
|
|||
"stored_altitude" => $lastAltitude,
|
||||
"start_timestamp" => date( 'Y-m-d H:i:s'),
|
||||
"manual_placement" => 1,
|
||||
"description" => __('Update by Pandora Console')),
|
||||
"description" => __('Update by %s Console', get_product_name())),
|
||||
array("tagente_id_agente" => $idAgente));
|
||||
}
|
||||
else {
|
||||
|
@ -1820,7 +1820,7 @@ if ($updateGIS) {
|
|||
"stored_latitude" => $lastLatitude,
|
||||
"stored_altitude" => $lastAltitude,
|
||||
"manual_placement" => 1,
|
||||
"description" => __('Insert by Pandora Console')
|
||||
"description" => __('Insert by %s Console', get_product_name())
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ $viewtab['active'] = false;
|
|||
$onheader = array('view' => $viewtab);
|
||||
|
||||
// Header
|
||||
ui_print_page_header (__('Agents defined in Pandora'), "images/agent_mc.png", false, "", true, $onheader);
|
||||
ui_print_page_header (__('Agents defined in %s', get_product_name()), "images/agent_mc.png", false, "", true, $onheader);
|
||||
|
||||
// Perform actions
|
||||
$agent_to_delete = (int)get_parameter('borrar_agente');
|
||||
|
|
|
@ -151,12 +151,13 @@ if (($policy_page) || (isset($agent))) {
|
|||
|
||||
echo "</table>";
|
||||
|
||||
|
||||
echo '<div style="text-align: right; width: 100%;padding-top:10px;padding-bottom:10px">';
|
||||
echo "<strong>";
|
||||
echo "<a style='color: #373737;' target='_blank' href='http://pandorafms.com/Library/Library/'>".__("Get more modules in Pandora FMS Library")."</a>";
|
||||
echo "</strong>";
|
||||
echo '</div>';
|
||||
if (!$config['disable_help']) {
|
||||
echo '<div style="text-align: right; width: 100%;padding-top:10px;padding-bottom:10px">';
|
||||
echo "<strong>";
|
||||
echo "<a style='color: #373737;' target='_blank' href='http://pandorafms.com/Library/Library/'>".__("Get more modules on Monitoring Library")."</a>";
|
||||
echo "</strong>";
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
if (! isset ($id_agente))
|
||||
return;
|
||||
|
|
|
@ -493,12 +493,7 @@ switch ($moduletype) {
|
|||
/* WARNING: type 7 is reserved on enterprise */
|
||||
default:
|
||||
if (enterprise_include ('godmode/agentes/module_manager_editor.php') === ENTERPRISE_NOT_HOOK) {
|
||||
ui_print_error_message(sprintf(__('DEBUG: Invalid module type specified in %s:%s'), __FILE__, __LINE__));
|
||||
echo __('Most likely you have recently upgraded from an earlier version of Pandora and either <br />
|
||||
1) forgot to use the database converter<br />
|
||||
2) used a bad version of the database converter (see Bugreport #2124706 for the solution)<br />
|
||||
3) found a new bug - please report a way to duplicate this error');
|
||||
|
||||
ui_print_error_message(sprintf(__('Invalid module type')));
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -522,9 +522,9 @@ $table->data[5][1] = "
|
|||
"</td>
|
||||
<td>".
|
||||
html_print_input_text ('once_date_from', $once_date_from, '', 10, 10, true, $disabled_in_execution) .
|
||||
ui_print_help_tip(__('Date format in Pandora is year/month/day'), true) .
|
||||
ui_print_help_tip(__('Date format is YY/MM/DD'), true) .
|
||||
html_print_input_text ('once_time_from', $once_time_from, '', 9, 9, true, $disabled_in_execution) .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true) .
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds'), true) .
|
||||
"</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -533,9 +533,9 @@ $table->data[5][1] = "
|
|||
"</td>
|
||||
<td>".
|
||||
html_print_input_text ('once_date_to', $once_date_to, '', 10, 10, true) .
|
||||
ui_print_help_tip(__('Date format in Pandora is year/month/day'), true) .
|
||||
ui_print_help_tip(__('Date format is YY/MM/DD'), true) .
|
||||
html_print_input_text ('once_time_to', $once_time_to, '', 9, 9, true) .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true) .
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds'), true) .
|
||||
"</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -603,7 +603,7 @@ $table->data[5][1] = "
|
|||
html_print_input_text (
|
||||
'periodically_time_from',
|
||||
$periodically_time_from, '', 7, 7, true, $disabled_in_execution) .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds').
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds.').
|
||||
".<br>".__('The end time must be higher than the start time'), true) .
|
||||
"</td>
|
||||
<td>" . __('To hour:') . "</td>
|
||||
|
@ -611,7 +611,7 @@ $table->data[5][1] = "
|
|||
html_print_input_text (
|
||||
'periodically_time_to',
|
||||
$periodically_time_to, '', 7, 7, true, $disabled_in_execution) .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds').
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds.').
|
||||
".<br>".__('The end time must be higher than the start time'), true) .
|
||||
"</td>
|
||||
</tr>
|
||||
|
|
|
@ -111,6 +111,13 @@ $table->size[0] = '20%';
|
|||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 35, 255, true);
|
||||
if (io_safe_output($name) == "Monitoring Event") {
|
||||
$table->data[0][1] .= ' ' . ui_print_help_tip(
|
||||
__("This action may stop working, if you change its name."),
|
||||
true,
|
||||
"images/header_yellow.png"
|
||||
);
|
||||
}
|
||||
$table->colspan[0][1] = 2;
|
||||
|
||||
$table->data[1][0] = __('Group');
|
||||
|
|
|
@ -538,11 +538,11 @@ if ($step == 2) {
|
|||
$table->data[0][3] = html_print_checkbox ('special_day', 1, $special_day, true);
|
||||
|
||||
$table->data[1][0] = __('Time from') . ' ' .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true);
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds'), true);
|
||||
$table->data[1][1] = html_print_input_text ('time_from', $time_from, '', 7, 8,
|
||||
true);
|
||||
$table->data[1][2] = __('Time to') . ' ' .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true);
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds'), true);
|
||||
$table->data[1][3] = html_print_input_text ('time_to', $time_to, '', 7, 8,
|
||||
true);
|
||||
|
||||
|
|
|
@ -197,7 +197,7 @@ echo "</td></tr>";
|
|||
|
||||
echo '<tr><td colspan=2>';
|
||||
echo '<div align="justify"><br><hr width=100%>';
|
||||
echo '(*) '.__('Please check your Pandora Server setup and be sure that database maintenance daemon is running. It\'s very important to keep up-to-date database to get the best performance and results in Pandora');
|
||||
echo '(*) '.__("Please make sure your %s Server settings are correct and that the database maintenance daemon is running. It's very important to keep your database up to date in order to get the best performance and results from %s.", get_product_name(), get_product_name());
|
||||
echo '</div>';
|
||||
echo '</td></tr></table>';
|
||||
?>
|
||||
|
|
|
@ -193,7 +193,7 @@ if (defined('METACONSOLE')) {
|
|||
}
|
||||
else {
|
||||
|
||||
ui_print_page_header (__("Groups defined in Pandora"),
|
||||
ui_print_page_header (__("Groups defined in %s", get_product_name()),
|
||||
"images/group.png", false, "", true, "");
|
||||
$sec = 'gagente';
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ if (is_ajax ()) {
|
|||
|
||||
if (!is_metaconsole()) {
|
||||
// Header
|
||||
ui_print_page_header (__("Module groups defined in Pandora"), "images/module_group.png", false, "", true, "");
|
||||
ui_print_page_header (__("Module groups defined in %s", get_product_name()), "images/module_group.png", false, "", true, "");
|
||||
}
|
||||
$create_group = (bool) get_parameter ('create_group');
|
||||
$update_group = (bool) get_parameter ('update_group');
|
||||
|
|
|
@ -507,7 +507,7 @@ foreach ($fields as $field) {
|
|||
. '.<br />'
|
||||
. __('The format is: [url=\'url to navigate\']\'text to show\'[/url]')
|
||||
. '.<br /><br />'
|
||||
. __('e.g.: [url=pandorafms.org]Pandora FMS Community[/url]')
|
||||
. __('e.g.: [url=google.com]Google web search[/url]')
|
||||
, true);
|
||||
|
||||
$custom_value = db_get_value_filter('description', 'tagent_custom_data', array('id_field' => $field['id_field'], 'id_agent' => $id_agente));
|
||||
|
|
|
@ -435,7 +435,7 @@ foreach ($rows as $row) {
|
|||
$menu_godmode["links"]["sub"] = $sub;
|
||||
|
||||
// Update Manager
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
if (check_acl ($config['id_user'], 0, "PM") && $config['enable_update_manager']) {
|
||||
$menu_godmode["messages"]["text"] = __('Update manager');
|
||||
$menu_godmode["messages"]["sec2"] = "";
|
||||
$menu_godmode["messages"]["id"] = "god-um_messages";
|
||||
|
|
|
@ -59,8 +59,6 @@ if ($edit_graph) {
|
|||
$graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id_graph);
|
||||
$stacked = $graphInTgraph['stacked'];
|
||||
$period = $graphInTgraph['period'];
|
||||
$name = $graphInTgraph['name'];
|
||||
$description = $graphInTgraph['description'];
|
||||
$id_group = $graphInTgraph['id_group'];
|
||||
$width = $graphInTgraph['width'];
|
||||
$height = $graphInTgraph['height'];
|
||||
|
@ -80,7 +78,6 @@ else {
|
|||
$id_agent = 0;
|
||||
$id_module = 0;
|
||||
$id_group = 0;
|
||||
$name = "Pandora FMS combined graph";
|
||||
$width = 550;
|
||||
$height = 210;
|
||||
$period = SECONDS_1DAY;
|
||||
|
|
|
@ -888,7 +888,7 @@ You can of course remove the warnings, that's why we include the source and do n
|
|||
<td>
|
||||
<?php
|
||||
echo __('Time from') .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true);
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds'), true);
|
||||
?>
|
||||
</td>
|
||||
<td colspan="6"><?php html_print_input_text ('time_from', $time_from, '', 7, 8);?></td>
|
||||
|
@ -897,7 +897,7 @@ You can of course remove the warnings, that's why we include the source and do n
|
|||
<td>
|
||||
<?php
|
||||
echo __('Time to') .
|
||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true);
|
||||
ui_print_help_tip(__('Watch format is hours (24h):minutes:seconds'), true);
|
||||
?>
|
||||
</td>
|
||||
<td colspan="6"><?php html_print_input_text ('time_to', $time_to, '', 7, 8);?></td>
|
||||
|
|
|
@ -328,7 +328,7 @@ $table->data["all_8"][2] = '<span id="parent_column_2_item_in_visual_map">' .
|
|||
__('Item in the map') . '</span>' .
|
||||
'<span id="parent_column_2_relationship">' .
|
||||
ui_print_help_tip(
|
||||
__('The parent relationships in Pandora will be drawn in the map.'), true) .
|
||||
__('The parenting relationships in %s will be drawn on the map.', get_product_name()), true) .
|
||||
'</span>';
|
||||
$table->data["all_8"][3] = '<span id="parent_column_3_item_in_visual_map">' .
|
||||
html_print_select($parents, 'item_in_the_map', 0, '',
|
||||
|
|
|
@ -186,11 +186,10 @@ if (!$modify){
|
|||
ui_print_page_header (__('Manage recontask'), "", false, "recontask", true);
|
||||
}
|
||||
|
||||
|
||||
$is_windows = strtoupper(substr(PHP_OS, 0, 3)) == 'WIN';
|
||||
if ($is_windows) {
|
||||
echo '<div class="notify">';
|
||||
echo __('Warning') . ": " . __("By default, in Windows, Pandora FMS only support Standard network sweep, not custom scripts");
|
||||
echo __('Warning') . ": " . __("By default, in Windows, %s only support Standard network sweep, not custom scripts", get_product_name());
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ elseif (isset($_GET["server_remote"])) {
|
|||
}
|
||||
else {
|
||||
// Header
|
||||
ui_print_page_header (__('Pandora servers'), "images/gm_servers.png", false, "servers", true);
|
||||
ui_print_page_header (__('%s servers', get_product_name()), "images/gm_servers.png", false, "servers", true);
|
||||
|
||||
// Move SNMP modules back to the enterprise server
|
||||
if (isset($_GET["server_reset_snmp_enterprise"])) {
|
||||
|
|
|
@ -561,7 +561,7 @@ else {
|
|||
$sec = 'advanced';
|
||||
}
|
||||
else {
|
||||
ui_print_page_header (__('Plugins registered in Pandora FMS'), "images/gm_servers.png", false, "", true);
|
||||
ui_print_page_header (__('Plug-ins registered on %s', get_product_name()), "images/gm_servers.png", false, "", true);
|
||||
|
||||
$is_windows = strtoupper(substr(PHP_OS, 0, 3)) == 'WIN';
|
||||
if ($is_windows) {
|
||||
|
|
|
@ -225,7 +225,7 @@ if (($create != "") OR ($view != "")) {
|
|||
echo '</form></table>';
|
||||
}
|
||||
else {
|
||||
ui_print_page_header (__('Recon scripts registered in Pandora FMS'), "images/gm_servers.png", false, "", true);
|
||||
ui_print_page_header (__('Recon scripts registered on %s', get_product_name()), "images/gm_servers.png", false, "", true);
|
||||
|
||||
// Update reconscript
|
||||
if (isset($_GET["update_reconscript"])) { // if modified any parameter
|
||||
|
|
|
@ -103,9 +103,9 @@ if (enterprise_installed()) {
|
|||
echo '</form>';
|
||||
echo '<div id="code_license_dialog" style="display: none; text-align: left;" title="' . __('Request new license') . '">';
|
||||
echo '<div id="logo">';
|
||||
html_print_image('images/pandora_tinylogo.png');
|
||||
html_print_image(ui_get_custom_header_logo(true));
|
||||
echo '</div>';
|
||||
echo '' . __('To get your <b>Pandora FMS Enterprise License</b>:') . '<br />';
|
||||
echo '' . __('To get your <b>%s Enterprise License</b>:', get_product_name()) . '<br />';
|
||||
echo '<ul>';
|
||||
echo '<li>';
|
||||
echo '' . sprintf(__('Go to %s'), "<a target=\"_blank\" href=\"https://licensing.artica.es/pandoraupdate7/index.php?section=generate_key_client\">https://licensing.artica.es/pandoraupdate7/index.php?section=generate_key_client</a>");
|
||||
|
|
|
@ -185,7 +185,7 @@ $no_autocreate_rows = array();
|
|||
$ldap_rows = array();
|
||||
|
||||
// Method
|
||||
$auth_methods = array ('mysql' => __('Local Pandora FMS'), 'ldap' => __('ldap'));
|
||||
$auth_methods = array ('mysql' => __('Local %s', get_product_name()), 'ldap' => __('ldap'));
|
||||
if (enterprise_installed()) {
|
||||
add_enterprise_auth_methods($auth_methods);
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ if ($current_system_lang == "") {
|
|||
$current_system_lang = "en";
|
||||
}
|
||||
|
||||
$table->data[0][0] = __('Language code for Pandora');
|
||||
$table->data[0][0] = __('Language code');
|
||||
$table->data[0][1] = html_print_select_from_sql (
|
||||
'SELECT id_language, name FROM tlanguage',
|
||||
'language', $current_system_lang , '', '', '', true);
|
||||
|
@ -72,7 +72,7 @@ $table->data[10][1] = __('Yes').' '.html_print_radio_button ('a
|
|||
$table->data[10][1] .= __('No').' '.html_print_radio_button ('autoupdate', 0, '', $config["autoupdate"], true);
|
||||
|
||||
$table->data[11][0] = __('Enforce https');
|
||||
$table->data[11][1] = __('Yes').' '.html_print_radio_button_extended ('https', 1, '', $config["https"], false, "if (! confirm ('" . __('If SSL is not properly configured you will lose access to Pandora FMS Console. Do you want to continue?') . "')) return false", '', true) .' ';
|
||||
$table->data[11][1] = __('Yes').' '.html_print_radio_button_extended ('https', 1, '', $config["https"], false, "if (! confirm ('" . __('If SSL is not properly configured you will lose access to %s Console. Do you want to continue?', get_product_name()) . "')) return false", '', true) .' ';
|
||||
$table->data[11][1] .= __('No').' '.html_print_radio_button ('https', 0, '', $config["https"], true);
|
||||
|
||||
$table->data[12][0] = __('Use cert of SSL');
|
||||
|
@ -99,7 +99,7 @@ $table->data[16][0] = __('API password') .
|
|||
ui_print_help_tip (__("Please be careful if you put a password put https access."), true);
|
||||
$table->data[16][1] = html_print_input_password('api_password', io_output_password($config['api_password']), '', 25, 255, true);
|
||||
|
||||
$table->data[17][0] = __('Enable GIS features in Pandora Console');
|
||||
$table->data[17][0] = __('Enable GIS features');
|
||||
$table->data[17][1] = __('Yes').' '.html_print_radio_button ('activate_gis', 1, '', $config["activate_gis"], true).' ';
|
||||
$table->data[17][1] .= __('No').' '.html_print_radio_button ('activate_gis', 0, '', $config["activate_gis"], true);
|
||||
|
||||
|
@ -141,7 +141,6 @@ $table->data[23][1] .= '<a id="change_timezone">'.html_print_image ('images/penc
|
|||
$table->data[23][1] .= " ". html_print_select($zone_name, 'zone', $zone_selected, 'show_timezone();', '', '', true);
|
||||
$table->data[23][1] .= " ". html_print_select($timezone_n, 'timezone', $config["timezone"], '', '', '', true);
|
||||
|
||||
|
||||
$sounds = get_sounds();
|
||||
$table->data[24][0] = __('Sound for Alert fired');
|
||||
$table->data[24][1] = html_print_select($sounds, 'sound_alert', $config['sound_alert'], 'replaySound(\'alert\');', '', '', true);
|
||||
|
@ -159,12 +158,12 @@ $table->data[26][1] .= ' <a href="javascript: toggleButton(\'warning\');">' . ht
|
|||
$table->data[26][1] .= '<div id="layer_sound_warning"></div>';
|
||||
|
||||
$table->data[28][0] = __('Public URL');
|
||||
$table->data[28][0] .= ui_print_help_tip(__('Set this value when your PandoraFMS across inverse proxy or for example with mod_proxy of Apache.') .
|
||||
' '.__('Without the index.php such as http://domain/pandora_url/'), true);
|
||||
$table->data[28][0] .= ui_print_help_tip(__('Set this value when your %s across inverse proxy or for example with mod_proxy of Apache.', get_product_name()) .
|
||||
' '.__('Without the index.php such as http://domain/console_url/'), true);
|
||||
$table->data[28][1] = html_print_input_text ('public_url', $config['public_url'], '', 40, 255, true);
|
||||
|
||||
$table->data[29][0] = __('Referer security');
|
||||
$table->data[29][0] .= ui_print_help_tip(__('When it is set as "yes" in some important sections check if the user have gone from url Pandora.'), true);
|
||||
$table->data[29][0] .= ui_print_help_tip(__("If enabled, actively checks if the user comes from %s's URL", get_product_name()), true);
|
||||
$table->data[29][1] = __('Yes') . ' ' .
|
||||
html_print_radio_button ('referer_security', 1, '', $config["referer_security"], true) .
|
||||
' ';
|
||||
|
@ -281,20 +280,10 @@ function show_timezone () {
|
|||
}
|
||||
|
||||
$(document).ready (function () {
|
||||
|
||||
|
||||
$("#zone").attr("hidden", true);
|
||||
$("#timezone").attr("hidden", true);
|
||||
|
||||
$("input[name='acl_enterprise']").click(function() {
|
||||
flag = $(this).is(':checked');
|
||||
if (flag == true) {
|
||||
<?php
|
||||
echo "if (! confirm ('" . __('If Enterprise ACL System is enabled without rules you will lose access to Pandora FMS Console (even admin). Do you want to continue?') . "')) return false;";
|
||||
?>
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("#change_timezone").click(function () {
|
||||
$("#zone").attr("hidden", false);
|
||||
$("#timezone").attr("hidden", false);
|
||||
|
|
|
@ -163,7 +163,7 @@ $iconsets["color_text"] = __('Colors and text');
|
|||
$table_styles->data[$row][1] = html_print_select($iconsets,
|
||||
'status_images_set', $config["status_images_set"], '', '', '', true);
|
||||
$table_styles->data[$row][1] .= " " .
|
||||
html_print_button(__("View"), 'status_set_preview', false, '', '', true);
|
||||
html_print_button(__("View"), 'status_set_preview', false, '', 'class="sub camera logo_preview"', true);
|
||||
$row++;
|
||||
|
||||
$table_styles->data[$row][0] = __('Login background') .
|
||||
|
@ -179,15 +179,40 @@ if(!enterprise_installed()){
|
|||
$open=true;
|
||||
}
|
||||
|
||||
// Custom favicon
|
||||
$files = list_files('images/custom_favicon', "ico", 1, 0);
|
||||
$table_styles->data[$row][0] = __('Custom favicon');
|
||||
$table_styles->data[$row][0] .= ui_print_help_tip(__('You can place your favicon into the folder images/custom_favicon/. This file should be in .ico format with a size of 16x16.'), true);
|
||||
$table_styles->data[$row][1] = html_print_select(
|
||||
$files,
|
||||
'custom_favicon',
|
||||
$config["custom_favicon"],
|
||||
'setup_visuals_change_favicon();',
|
||||
__('Default'),
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
'',
|
||||
false,
|
||||
'width:240px'
|
||||
);
|
||||
$table_styles->data[$row][1] .= " " . html_print_image(
|
||||
ui_get_favicon(),
|
||||
true,
|
||||
array('id' => 'favicon_preview')
|
||||
);
|
||||
$row++;
|
||||
|
||||
$table_styles->data[$row][0] = __('Custom background logo');
|
||||
$table_styles->data[$row][1] = html_print_select ($backgrounds_list,
|
||||
'login_background', $config["login_background"], '', __('Default'),
|
||||
'', true,false,true,'',false,'width:240px');
|
||||
$table_styles->data[$row][1] .= " " .
|
||||
html_print_button(__("View"), 'login_background_preview', false, '', 'class="sub camera"', true);
|
||||
html_print_button(__("View"), 'login_background_preview', false, '', 'class="sub camera logo_preview"', true);
|
||||
$row++;
|
||||
|
||||
$table_styles->data[$row][0] = __('Custom logo (header)') . ui_print_help_icon("custom_logo", true);
|
||||
|
||||
if(enterprise_installed()){
|
||||
$ent_files = list_files('enterprise/images/custom_logo', "png", 1, 0);
|
||||
$open_files = list_files('images/custom_logo', "png", 1, 0);
|
||||
|
@ -201,8 +226,24 @@ else{
|
|||
list_files('images/custom_logo', "png", 1, 0), 'custom_logo',
|
||||
$config["custom_logo"], '', '', '',true,false,true,'',$open,'width:240px');
|
||||
}
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
|
||||
$table_styles->data[$row][0] = __('Custom logo (header white background)');
|
||||
if(enterprise_installed()){
|
||||
$ent_files = list_files('enterprise/images/custom_logo', "png", 1, 0);
|
||||
$open_files = list_files('images/custom_logo', "png", 1, 0);
|
||||
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal');
|
||||
$table_styles->data[$row][1] = html_print_select(
|
||||
array_merge($open_files, $ent_files), 'custom_logo_white_bg',
|
||||
$config["custom_logo_white_bg"], '', '', '',true,false,true,'',$open,'width:240px');
|
||||
}
|
||||
else{
|
||||
$table_styles->data[$row][1] = html_print_select(
|
||||
list_files('images/custom_logo', "png", 1, 0), 'custom_logo_white_bg',
|
||||
$config["custom_logo_white_bg"], '', '', '',true,false,true,'',$open,'width:240px');
|
||||
}
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_white_bg_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
|
||||
$table_styles->data[$row][0] = __('Custom logo (login)') . ui_print_help_icon("custom_logo", true);
|
||||
|
@ -218,7 +259,7 @@ else {
|
|||
$config["custom_logo_login"], '', '', '',true,false,true,'',$open,'width:240px');
|
||||
}
|
||||
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_login_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal');
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_login_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
|
||||
//Splash login
|
||||
|
@ -229,8 +270,93 @@ if(enterprise_installed()) {
|
|||
list_files('enterprise/images/custom_splash_login', "png", 1, 0), 'custom_splash_login',
|
||||
$config["custom_splash_login"], '', '', '',true,false,true,'',$open,'width:240px');
|
||||
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_splash_login_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal');
|
||||
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_splash_login_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
}
|
||||
|
||||
if(enterprise_installed()){
|
||||
// Get all the custom logos
|
||||
$files = list_files('enterprise/images/custom_general_logos', "png", 1, 0);
|
||||
|
||||
// Custom docs icon
|
||||
$table_styles->data[$row][0] = __('Custom documentation logo');
|
||||
$table_styles->data[$row][0] .= ui_print_help_tip(__('You can place your custom logos into the folder enterprise/images/custom_general_logos/'), true);
|
||||
|
||||
$table_styles->data[$row][1] = html_print_select(
|
||||
$files,
|
||||
'custom_docs_logo',
|
||||
$config["custom_docs_logo"],
|
||||
'',
|
||||
__('None'),
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
'',
|
||||
false,
|
||||
'width:240px'
|
||||
);
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_docs_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
|
||||
// Custom support icon
|
||||
$table_styles->data[$row][0] = __('Custom support logo');
|
||||
$table_styles->data[$row][0] .= ui_print_help_tip(__('You can place your custom logos into the folder enterprise/images/custom_general_logos/'), true);
|
||||
$table_styles->data[$row][1] = html_print_select(
|
||||
$files,
|
||||
'custom_support_logo',
|
||||
$config["custom_support_logo"],
|
||||
'',
|
||||
__('None'),
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
'',
|
||||
false,
|
||||
'width:240px'
|
||||
);
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_support_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
|
||||
// Custom center networkmap icon
|
||||
$table_styles->data[$row][0] = __('Custom networkmap center logo');
|
||||
$table_styles->data[$row][0] .= ui_print_help_tip(__('You can place your custom logos into the folder enterprise/images/custom_general_logos/'), true);
|
||||
$table_styles->data[$row][1] = html_print_select(
|
||||
$files,
|
||||
'custom_network_center_logo',
|
||||
$config["custom_network_center_logo"],
|
||||
'',
|
||||
__('Default'),
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
'',
|
||||
false,
|
||||
'width:240px'
|
||||
);
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_network_center_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
|
||||
// Custom center mobile console icon
|
||||
$table_styles->data[$row][0] = __('Custom mobile console icon');
|
||||
$table_styles->data[$row][0] .= ui_print_help_tip(__('You can place your custom logos into the folder enterprise/images/custom_general_logos/'), true);
|
||||
$table_styles->data[$row][1] = html_print_select(
|
||||
$files,
|
||||
'custom_mobile_console_logo',
|
||||
$config["custom_mobile_console_logo"],
|
||||
'',
|
||||
__('Default'),
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
'',
|
||||
false,
|
||||
'width:240px'
|
||||
);
|
||||
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_mobile_console_logo_preview', $open, '', 'class="sub camera logo_preview"', true,false,$open,'visualmodal');
|
||||
$row++;
|
||||
}
|
||||
|
||||
|
@ -258,7 +384,19 @@ if(enterprise_installed()) {
|
|||
$table_styles->data[$row][0] = __('Support URL (login)');
|
||||
$table_styles->data[$row][1] = html_print_input_text ('custom_support_url', $config["custom_support_url"], '', 50, 50, true);
|
||||
$row++;
|
||||
}
|
||||
}
|
||||
|
||||
if(enterprise_installed()) {
|
||||
$table_styles->data[$row][0] = __('Product name');
|
||||
$table_styles->data[$row][1] = html_print_input_text('rb_product_name', get_product_name(), '', 30, 255, true);
|
||||
$row++;
|
||||
}
|
||||
|
||||
if(enterprise_installed()) {
|
||||
$table_styles->data[$row][0] = __('Copyright notice');
|
||||
$table_styles->data[$row][1] = html_print_input_text('rb_copyright_notice', get_copyright_notice(), '', 30, 255, true);
|
||||
$row++;
|
||||
}
|
||||
|
||||
$table_styles->data[$row][0] = __('Disable logo in graphs');
|
||||
$table_styles->data[$row][1] = __('Yes') . ' ' .
|
||||
|
@ -273,6 +411,13 @@ $table_styles->data[$row][1] .= __('No') . ' ' .
|
|||
html_print_radio_button_extended ('fixed_graph', 0, '', $config["fixed_graph"], $open, '','',true, $open,'visualmodal');
|
||||
$row++;
|
||||
|
||||
$table_styles->data[$row][0] = __('Disable helps');
|
||||
$table_styles->data[$row][1] = __('Yes') . ' ' .
|
||||
html_print_radio_button ('disable_help', 1, '', $config["disable_help"], true) .
|
||||
' ';
|
||||
$table_styles->data[$row][1] .= __('No') . ' ' .
|
||||
html_print_radio_button ('disable_help', 0, '', $config["disable_help"], true);
|
||||
$row++;
|
||||
|
||||
$table_styles->data[$row][0] = __('Fixed header');
|
||||
$table_styles->data[$row][1] = __('Yes') . ' ' .
|
||||
|
@ -336,7 +481,7 @@ $table_gis->data[$row][1] = html_print_select($arraySelectIcon,
|
|||
"gis_default_icon", $config["gis_default_icon"], "", __('Agent icon group'),
|
||||
'', true);
|
||||
$table_gis->data[$row][1] .= " " .
|
||||
html_print_button(__("View"), 'gis_icon_preview', false, '', '', true);
|
||||
html_print_button(__("View"), 'gis_icon_preview', false, '', 'class="sub camera logo_preview"', true);
|
||||
$row++;
|
||||
|
||||
echo "<fieldset>";
|
||||
|
@ -386,7 +531,7 @@ $table_font->data[$row][1] = html_print_select($font_size_array, 'font_size',
|
|||
$row++;
|
||||
|
||||
$table_font->data[$row][0] = __('Agent size text') .
|
||||
ui_print_help_tip(__('When the agent name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true);
|
||||
ui_print_help_tip(__('When the agent name has a lot of characters, it is needed to truncate it into N characters in some sections in %s Console', get_product_name()), true);
|
||||
$table_font->data[$row][1] = __('Small:') .
|
||||
html_print_input_text ('agent_size_text_small', $config["agent_size_text_small"], '', 3, 3, true);
|
||||
$table_font->data[$row][1] .= ' ' . __('Normal:') .
|
||||
|
@ -394,19 +539,19 @@ $table_font->data[$row][1] .= ' ' . __('Normal:') .
|
|||
$row++;
|
||||
|
||||
$table_font->data[$row][0] = __('Module size text') .
|
||||
ui_print_help_tip(__('When the module name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true);
|
||||
ui_print_help_tip(__('When the module name has a lot of characters, it is needed to truncate it into N characters in some sections in %s Console', get_product_name()), true);
|
||||
$table_font->data[$row][1] = __('Small:') .
|
||||
html_print_input_text ('module_size_text_small', $config["module_size_text_small"], '', 3, 3, true);
|
||||
$table_font->data[$row][1] .= ' ' . __('Normal:') .
|
||||
html_print_input_text ('module_size_text_medium', $config["module_size_text_medium"], '', 3, 3, true);
|
||||
$row++;
|
||||
|
||||
$table_font->data[$row][0] = __('Description size text') . ui_print_help_tip(__('When the description name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true);
|
||||
$table_font->data[$row][0] = __('Description size text') . ui_print_help_tip(__('If the description name has a lot of characters, in some places in %s Console it is necessary to truncate it to N characters.', get_product_name()), true);
|
||||
$table_font->data[$row][1] = html_print_input_text ('description_size_text', $config["description_size_text"], '', 3, 3, true);
|
||||
$row++;
|
||||
|
||||
$table_font->data[$row][0] = __('Item title size text') .
|
||||
ui_print_help_tip(__('When the item title name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true);
|
||||
ui_print_help_tip(__('When the item title name has a lot of characters, it is needed to truncate it into N characters in some sections in %s Console.', get_product_name()), true);
|
||||
$table_font->data[$row][1] = html_print_input_text('item_title_size_text',
|
||||
$config["item_title_size_text"], '', 3, 3, true);
|
||||
$row++;
|
||||
|
@ -488,7 +633,7 @@ if (!enterprise_installed()) {
|
|||
$disabled_graph_precision = true;
|
||||
}
|
||||
|
||||
$table_chars->data[$row][0] = __('Data precision in PandoraFMS');
|
||||
$table_chars->data[$row][0] = __('Data precision');
|
||||
$table_chars->data[$row][0] .= ui_print_help_tip(__('Number of decimals shown. It must be a number between 0 and 5, except in graphs.'), true);
|
||||
$table_chars->data[$row][1] = html_print_input_text ('graph_precision', $config["graph_precision"], '', 5, 5, true, $disabled_graph_precision, false, "onChange=\"change_precision()\"");
|
||||
$row++;
|
||||
|
@ -665,7 +810,7 @@ $table_other->data['custom_report_front-font'][1] = html_print_select ($_fonts,
|
|||
$table_other->data['custom_report_front-logo'][0] = __('Custom report front') . ' - ' .
|
||||
__('Custom logo') .
|
||||
ui_print_help_tip(
|
||||
__("The dir of custom logos is in your www Pandora Console in \"images/custom_logo\". You can upload more files (ONLY JPEG AND PNG) in upload tool in console."), true);
|
||||
__("The dir of custom logos is in your www Console in 'images/custom_logo'. You can upload more files (ONLY JPEG AND PNG) in upload tool in console."), true);
|
||||
$table_other->data['custom_report_front-logo'][1] = html_print_select(
|
||||
$customLogos,
|
||||
'custom_report_front_logo',
|
||||
|
@ -874,6 +1019,7 @@ function load_fonts() {
|
|||
}
|
||||
|
||||
ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
||||
ui_require_javascript_file('pandora');
|
||||
|
||||
?>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
@ -1056,167 +1202,73 @@ $(document).ready (function () {
|
|||
});
|
||||
});
|
||||
|
||||
// Change the favicon preview when is changed
|
||||
function setup_visuals_change_favicon() {
|
||||
var icon_name = $("select#custom_favicon option:selected").val();
|
||||
var icon_path = (icon_name == "")
|
||||
? "images/pandora.ico"
|
||||
: "images/custom_favicon/" + icon_name;
|
||||
$("#favicon_preview").attr("src", "<?php echo $config['homeurl'];?>" + icon_path);
|
||||
}
|
||||
|
||||
// Dialog loaders for the images previews
|
||||
$(".logo_preview").click (function(e) {
|
||||
// Init the vars
|
||||
var icon_name = '';
|
||||
var icon_path = '';
|
||||
var options = {
|
||||
title: "<?php echo __('Logo preview'); ?>"
|
||||
};
|
||||
|
||||
$("#button-custom_logo_preview").click (function (e) {
|
||||
var icon_name = $("select#custom_logo option:selected").val();
|
||||
var icon_path = "<?php echo $config['homeurl']; if(enterprise_installed){ echo 'enterprise/'; } ?>images/custom_logo/" + icon_name;
|
||||
|
||||
if (icon_name == "")
|
||||
return;
|
||||
|
||||
$dialog = $("<div></div>");
|
||||
$image = $("<div style='background-color:grey'><img src=\"" + icon_path + "\"></div>");
|
||||
$image
|
||||
.css('max-width', '500px')
|
||||
.css('max-height', '500px');
|
||||
|
||||
try {
|
||||
$dialog
|
||||
.hide()
|
||||
.html($image)
|
||||
.dialog({
|
||||
title: "<?php echo __('Logo preview'); ?>",
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
overlay: {
|
||||
opacity: 0.5,
|
||||
background: "black"
|
||||
},
|
||||
minHeight: 1,
|
||||
width: $image.width,
|
||||
close: function () {
|
||||
$dialog
|
||||
.empty()
|
||||
.remove();
|
||||
}
|
||||
}).show();
|
||||
// Fill it seing the target has been clicked
|
||||
switch (e.target.id) {
|
||||
case 'button-custom_logo_preview':
|
||||
icon_name = $("select#custom_logo option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; if(enterprise_installed){ echo 'enterprise/'; } ?>images/custom_logo/" + icon_name;
|
||||
options.grayed = true;
|
||||
break;
|
||||
case 'button-custom_logo_white_bg_preview':
|
||||
icon_name = $("select#custom_logo_white_bg option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; if(enterprise_installed){ echo 'enterprise/'; } ?>images/custom_logo/" + icon_name;
|
||||
break;
|
||||
case 'button-custom_logo_login_preview':
|
||||
icon_name = $("select#custom_logo_login option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; if(enterprise_installed){ echo 'enterprise/'; } ?>images/custom_logo_login/" + icon_name;
|
||||
options.grayed = true;
|
||||
break;
|
||||
case 'button-custom_splash_login_preview':
|
||||
icon_name = $("select#custom_splash_login option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; if(enterprise_installed){ echo 'enterprise/'; } ?>images/custom_splash_login/" + icon_name;
|
||||
options.title = "<?php echo __('Splash Preview'); ?>";
|
||||
break;
|
||||
case 'button-custom_docs_logo_preview':
|
||||
icon_name = $("select#custom_docs_logo option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; ?>enterprise/images/custom_general_logos/" + icon_name;
|
||||
options.grayed = true;
|
||||
break;
|
||||
case 'button-custom_support_logo_preview':
|
||||
icon_name = $("select#custom_support_logo option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; ?>enterprise/images/custom_general_logos/" + icon_name;
|
||||
options.grayed = true;
|
||||
break;
|
||||
case 'button-custom_network_center_logo_preview':
|
||||
icon_name = $("select#custom_network_center_logo option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; ?>enterprise/images/custom_general_logos/" + icon_name;
|
||||
break;
|
||||
case 'button-custom_mobile_console_logo_preview':
|
||||
icon_name = $("select#custom_mobile_console_logo option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; ?>enterprise/images/custom_general_logos/" + icon_name;
|
||||
options.title = "<?php echo __('Mobile console logo preview'); ?>";
|
||||
break;
|
||||
case 'button-login_background_preview':
|
||||
icon_name = $("select#login_background option:selected").val();
|
||||
icon_path = "<?php echo $config['homeurl']; ?>/images/backgrounds/" + icon_name;
|
||||
options.title = "<?php echo __('Background preview'); ?>";
|
||||
break;
|
||||
}
|
||||
catch (err) {
|
||||
// console.log(err);
|
||||
}
|
||||
});
|
||||
|
||||
$("#button-custom_logo_login_preview").click (function (e) {
|
||||
var icon_name = $("select#custom_logo_login option:selected").val();
|
||||
var icon_path = "<?php echo $config['homeurl']; if(enterprise_installed){ echo 'enterprise/'; } ?>images/custom_logo_login/" + icon_name;
|
||||
|
||||
if (icon_name == "")
|
||||
return;
|
||||
|
||||
$dialog = $("<div></div>");
|
||||
$image = $("<div style='background-color:grey'><img src=\"" + icon_path + "\"></div>");
|
||||
$image
|
||||
.css('max-width', '500px')
|
||||
.css('max-height', '500px');
|
||||
|
||||
try {
|
||||
$dialog
|
||||
.hide()
|
||||
.html($image)
|
||||
.dialog({
|
||||
title: "<?php echo __('Logo preview'); ?>",
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
overlay: {
|
||||
opacity: 0.5,
|
||||
background: "black"
|
||||
},
|
||||
minHeight: 1,
|
||||
width: $image.width,
|
||||
close: function () {
|
||||
$dialog
|
||||
.empty()
|
||||
.remove();
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
catch (err) {
|
||||
// console.log(err);
|
||||
}
|
||||
});
|
||||
|
||||
$("#button-custom_splash_login_preview").click (function (e) {
|
||||
var icon_name = $("select#custom_splash_login option:selected").val();
|
||||
var icon_path = "<?php echo $config['homeurl']; if(enterprise_installed){ echo 'enterprise/'; } ?>images/custom_splash_login/" + icon_name;
|
||||
|
||||
if (icon_name == "")
|
||||
return;
|
||||
|
||||
$dialog = $("<div></div>");
|
||||
$image = $("<img src=\"" + icon_path + "\">");
|
||||
$image
|
||||
.css('max-width', '500px')
|
||||
.css('max-height', '500px');
|
||||
|
||||
try {
|
||||
$dialog
|
||||
.hide()
|
||||
.html($image)
|
||||
.dialog({
|
||||
title: "<?php echo __('Splash Preview'); ?>",
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
overlay: {
|
||||
opacity: 0.5,
|
||||
background: "black"
|
||||
},
|
||||
minHeight: 1,
|
||||
width: $image.width,
|
||||
close: function () {
|
||||
$dialog
|
||||
.empty()
|
||||
.remove();
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
catch (err) {
|
||||
// console.log(err);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#button-login_background_preview").click (function (e) {
|
||||
var icon_name = $("select#login_background option:selected").val();
|
||||
var icon_path = "<?php echo $config['homeurl']; ?>/images/backgrounds/" + icon_name;
|
||||
|
||||
if (icon_name == "")
|
||||
return;
|
||||
|
||||
$dialog = $("<div></div>");
|
||||
$image = $("<img src=\"" + icon_path + "\">");
|
||||
$image
|
||||
.css('max-width', '500px')
|
||||
.css('max-height', '500px');
|
||||
|
||||
try {
|
||||
$dialog
|
||||
.hide()
|
||||
.html($image)
|
||||
.dialog({
|
||||
title: "<?php echo __('Background preview'); ?>",
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
overlay: {
|
||||
opacity: 0.5,
|
||||
background: "black"
|
||||
},
|
||||
minHeight: 1,
|
||||
width: $image.width,
|
||||
close: function () {
|
||||
$dialog
|
||||
.empty()
|
||||
.remove();
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
catch (err) {
|
||||
// console.log(err);
|
||||
}
|
||||
// Display the preview
|
||||
logo_preview (icon_name, icon_path, options);
|
||||
});
|
||||
|
||||
$("#button-gis_icon_preview").click (function (e) {
|
||||
|
|
|
@ -37,7 +37,7 @@ $baseurl = ui_get_full_url(false, false, false, false);
|
|||
var drop_the_package_here_or = "<?php echo __('Drop the package here or'); ?>\n";
|
||||
var browse_it = "<?php echo __('browse it'); ?>\n";
|
||||
var the_package_has_been_uploaded_successfully = "<?php echo __('The package has been uploaded successfully.'); ?>\n";
|
||||
var remember_that_this_package_will = "<?php echo __('Remember that this package will override the actual Pandora FMS files and it is recommended to do a backup before continue with the update.'); ?>\n";
|
||||
var remember_that_this_package_will = "<?php echo __("Please keep in mind that this package is going to override your actual %s files and that it's recommended to conduct a backup before continuing the updating process.", get_product_name()); ?>\n";
|
||||
var click_on_the_file_below_to_begin = "<?php echo __('Click on the file below to begin.'); ?>\n";
|
||||
var updating = "<?php echo __('Updating'); ?>\n";
|
||||
var package_updated_successfully = "<?php echo __('Package updated successfully.'); ?>\n";
|
||||
|
|
|
@ -46,7 +46,7 @@ if (!is_metaconsole()) {
|
|||
|
||||
$buttons[$tab]['active'] = true;
|
||||
|
||||
ui_print_page_header (__('User management').' » '.__('Profiles defined in Pandora'), "images/gm_users.png", false, "", true, $buttons);
|
||||
ui_print_page_header (__('User management').' » '.__('Profiles defined on %s', get_product_name()), "images/gm_users.png", false, "", true, $buttons);
|
||||
$sec2 = 'gusuarios';
|
||||
}
|
||||
else {
|
||||
|
@ -211,8 +211,8 @@ if ($id_profile || $new_profile) {
|
|||
' Visual console edit: ' . $vconsole_edit .
|
||||
' Visual console management: ' . $vconsole_management .
|
||||
|
||||
' Pandora Management: ' . $pandora_management;
|
||||
|
||||
' ' . get_product_name() . ' Management: ' . $pandora_management;
|
||||
|
||||
enterprise_hook('audit_pandora_enterprise', array($id_audit, $info));
|
||||
|
||||
|
||||
|
@ -361,7 +361,7 @@ if ($id_profile || $new_profile) {
|
|||
|
||||
// Pandora
|
||||
$row = array();
|
||||
$row['name'] = __('Pandora management');
|
||||
$row['name'] = __('%s management', get_product_name());
|
||||
$row['input'] = html_print_checkbox ('pandora_management', 1, $pandora_management, true);
|
||||
$table->data['PM'] = $row;
|
||||
$table->data[] = '<hr>';
|
||||
|
|
|
@ -148,7 +148,7 @@ if ($new_user && $config['admin_can_add_user']) {
|
|||
|
||||
if ($create_user) {
|
||||
if (! $config['admin_can_add_user']) {
|
||||
ui_print_error_message (__('The current authentication scheme doesn\'t support creating users from Pandora FMS'));
|
||||
ui_print_error_message (__('The current authentication scheme doesn\'t support creating users on %s', get_product_name()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ if (!defined('METACONSOLE')) {
|
|||
|
||||
$buttons[$tab]['active'] = true;
|
||||
|
||||
ui_print_page_header (__('User management').' » '.__('Profiles defined in Pandora'), "images/gm_users.png", false, "profile", true, $buttons);
|
||||
ui_print_page_header (__('User management').' » '.__('Profiles defined on %s', get_product_name()), "images/gm_users.png", false, "profile", true, $buttons);
|
||||
$sec = 'gusuarios';
|
||||
}
|
||||
else {
|
||||
|
@ -205,7 +205,7 @@ if ($update_profile) {
|
|||
"Visual console view":"'.$vconsole_view.'",
|
||||
"Visual console edit":"'.$vconsole_edit.'",
|
||||
"Visual console management":"'.$vconsole_management.'",
|
||||
"Pandora Management":"'.$pandora_management.'"}';
|
||||
"'.get_product_name().' Management":"'.$pandora_management.'"}';
|
||||
|
||||
db_pandora_audit("User management",
|
||||
"Update profile ". $name, false, false, $info);
|
||||
|
@ -252,7 +252,7 @@ if ($create_profile) {
|
|||
"Visual console view":"'.$vconsole_view.'",
|
||||
"Visual console edit":"'.$vconsole_edit.'",
|
||||
"Visual console management":"'.$vconsole_management.'",
|
||||
"Pandora Management":"'.$pandora_management.'"}';
|
||||
"'.get_product_name().' Management":"'.$pandora_management.'"}';
|
||||
|
||||
db_pandora_audit("User management",
|
||||
"Created profile ". $name, false, false, $info);
|
||||
|
|
|
@ -118,7 +118,7 @@ else {
|
|||
|
||||
$buttons[$tab]['active'] = true;
|
||||
|
||||
ui_print_page_header (__('User management').' » '.__('Users defined in Pandora'), "images/gm_users.png", false, "", true, $buttons);
|
||||
ui_print_page_header (__('User management').' » '.__('Users defined on %s', get_product_name()), "images/gm_users.png", false, "", true, $buttons);
|
||||
|
||||
$sec = 'gusuarios';
|
||||
|
||||
|
@ -486,7 +486,7 @@ if ($config["admin_can_add_user"] !== false) {
|
|||
echo '</form>';
|
||||
}
|
||||
else {
|
||||
echo '<i>'.__('The current authentication scheme doesn\'t support creating users from Pandora FMS').'</i>';
|
||||
echo '<i>'.__("The current authentication scheme doesn't support creating users on %s", get_product_name()).'</i>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
|
@ -245,7 +245,7 @@ if ($install_package) {
|
|||
}
|
||||
|
||||
update_manager_enterprise_set_version($version);
|
||||
db_pandora_audit("Update Pandora", "Update version: $version of Pandora FMS by ".$config['id_user']);
|
||||
db_pandora_audit("Update " . get_product_name(), "Update version: $version of " . get_product_name() ." by ".$config['id_user']);
|
||||
|
||||
$return["status"] = "success";
|
||||
echo json_encode($return);
|
||||
|
@ -260,6 +260,7 @@ if ($install_package) {
|
|||
}
|
||||
|
||||
if ($check_install_package) {
|
||||
|
||||
// 1 second
|
||||
//sleep(1);
|
||||
// Half second
|
||||
|
|
|
@ -63,7 +63,7 @@ switch($info) {
|
|||
$config["MR"] = 0;
|
||||
}
|
||||
|
||||
echo 'Pandora FMS ' . $pandora_version . ' - ' . $build_version . " MR" . $config["MR"];
|
||||
echo get_product_name() . ' ' . $pandora_version . ' - ' . $build_version . " MR" . $config["MR"];
|
||||
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -27,9 +27,8 @@ if (!isset ($config)) {
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf8">
|
||||
<meta name="resource-type" content="document">
|
||||
<meta name="distribution" content="global">
|
||||
<meta name="author" content="Sancho Lerena">
|
||||
<meta name="copyright" content="This is GPL software. Created by Sancho Lerena and others">
|
||||
<meta name="keywords" content="pandora, monitoring, system, GPL, software">
|
||||
<meta name="author" content="Artica ST">
|
||||
<meta name="copyright" content="(c) Artica ST">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link rel="icon" href="../../images/pandora.ico" type="image/ico">
|
||||
<link rel="stylesheet" href="../styles/pandora.css" type="text/css">
|
||||
|
|
|
@ -28,9 +28,8 @@ if (!isset ($config)) {
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf8">
|
||||
<meta name="resource-type" content="document">
|
||||
<meta name="distribution" content="global">
|
||||
<meta name="author" content="Sancho Lerena">
|
||||
<meta name="copyright" content="This is GPL software. Created by Sancho Lerena and others">
|
||||
<meta name="keywords" content="pandora, monitoring, system, GPL, software">
|
||||
<meta name="author" content="Artica ST">
|
||||
<meta name="copyright" content="(c) Artica ST">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link rel="icon" href="../../images/pandora.ico" type="image/ico">
|
||||
<link rel="stylesheet" href="../styles/pandora.css" type="text/css">
|
||||
|
|
|
@ -28,9 +28,8 @@ if (!isset ($config)) {
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf8">
|
||||
<meta name="resource-type" content="document">
|
||||
<meta name="distribution" content="global">
|
||||
<meta name="author" content="Sancho Lerena">
|
||||
<meta name="copyright" content="This is GPL software. Created by Sancho Lerena and others">
|
||||
<meta name="keywords" content="pandora, monitoring, system, GPL, software">
|
||||
<meta name="author" content="Artica ST">
|
||||
<meta name="copyright" content="(c) Artica ST">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link rel="icon" href="../../images/pandora.ico" type="image/ico">
|
||||
<link rel="stylesheet" href="../styles/pandora.css" type="text/css">
|
||||
|
|
|
@ -2823,4 +2823,32 @@ function validate_address($address){
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the product name.
|
||||
*
|
||||
* @return string If the installation is open, it will be 'Pandora FMS'.
|
||||
* If the product name stored is empty, it returns 'Pandora FMS' too.
|
||||
*/
|
||||
function get_product_name () {
|
||||
$stored_name = enterprise_hook('enterprise_get_product_name');
|
||||
if (empty($stored_name) || $stored_name == ENTERPRISE_NOT_HOOK) {
|
||||
return "Pandora FMS";
|
||||
}
|
||||
return $stored_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the copyright notice.
|
||||
*
|
||||
* @return string If the installation is open, it will be 'Artica ST'.
|
||||
* If the product name stored is empty, it returns 'Artica ST' too.
|
||||
*/
|
||||
function get_copyright_notice () {
|
||||
$stored_name = enterprise_hook('enterprise_get_copyright_notice');
|
||||
if (empty($stored_name) || $stored_name == ENTERPRISE_NOT_HOOK) {
|
||||
return "Ártica ST";
|
||||
}
|
||||
return $stored_name;
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1358,7 +1358,7 @@ function api_set_new_agent($thrash1, $thrash2, $other, $thrash3) {
|
|||
returnError('id_os_not_exist', 'The OS don`t exist.');
|
||||
}
|
||||
else if (db_get_value_sql($sql1) === false) {
|
||||
returnError('server_not_exist', 'The Pandora Server don`t exist.');
|
||||
returnError('server_not_exist', 'The ' . get_product_name() . ' Server don`t exist.');
|
||||
}
|
||||
else {
|
||||
$idAgente = db_process_sql_insert ('tagente',
|
||||
|
@ -7721,9 +7721,9 @@ function api_set_gis_agent_only_position($id_agent, $trash1, $other, $return_typ
|
|||
if ($correct) {
|
||||
$correct = agents_update_gis($id_agent, $latitude,
|
||||
$longitude, $altitude, 0, 1, date( 'Y-m-d H:i:s'), null,
|
||||
1, __('Save by Pandora Console'),
|
||||
__('Update by Pandora Console'),
|
||||
__('Insert by Pandora Console'));
|
||||
1, __('Save by %s Console', get_product_name()),
|
||||
__('Update by %s Console', get_product_name()),
|
||||
__('Insert by %s Console', get_product_name()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9111,7 +9111,7 @@ function api_set_create_event($id, $trash1, $other, $returnType) {
|
|||
$values['source'] = $other['data'][14];
|
||||
}
|
||||
else {
|
||||
$values['source'] = "Pandora";
|
||||
$values['source'] = get_product_name();
|
||||
}
|
||||
|
||||
if ($other['data'][15] != '') {
|
||||
|
|
|
@ -125,7 +125,7 @@ function clippy_write_javascript_helps_steps($tours) {
|
|||
if (!empty($steps)) {
|
||||
foreach ($steps as $iterator => $element) {
|
||||
$steps[$iterator]['intro'] =
|
||||
"<div id='clippy_head_title'>" . __("Pandora FMS assistant") . "</div>" .
|
||||
"<div id='clippy_head_title'>" . __("%s assistant", get_product_name()) . "</div>" .
|
||||
$steps[$iterator]['intro'];
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ function config_update_config () {
|
|||
switch ($section_setup) {
|
||||
case 'general':
|
||||
if (!config_update_value ('language', (string) get_parameter ('language')))
|
||||
$error_update[] = __('Language code for Pandora');
|
||||
$error_update[] = __('Language settings');
|
||||
if (!config_update_value ('remote_config', (string) get_parameter ('remote_config')))
|
||||
$error_update[] = __('Remote config directory');
|
||||
if (!config_update_value ('loginhash_pwd', io_input_password((string) get_parameter ('loginhash_pwd'))))
|
||||
|
@ -149,9 +149,7 @@ function config_update_config () {
|
|||
if (!config_update_value ('api_password', io_input_password(get_parameter('api_password'))))
|
||||
$error_update[] = __('API password');
|
||||
if (!config_update_value ('activate_gis', (bool) get_parameter ('activate_gis')))
|
||||
$error_update[] = __('Enable GIS features in Pandora Console');
|
||||
if (!config_update_value ('integria_enabled', get_parameter ('integria_enabled')))
|
||||
$error_update[] = __('Enable Integria incidents in Pandora Console');
|
||||
$error_update[] = __('Enable GIS features');
|
||||
if (!config_update_value ('integria_inventory', get_parameter ('integria_inventory')))
|
||||
$error_update[] = __('Integria inventory');
|
||||
if (!config_update_value ('integria_api_password', io_input_password(get_parameter ('integria_api_password'))))
|
||||
|
@ -249,7 +247,9 @@ function config_update_config () {
|
|||
$error_update[] = __('Metaconsole agent cache');
|
||||
if (!config_update_value ('log_collector', (bool)get_parameter('log_collector')))
|
||||
$error_update[] = __('Activate Log Collector');
|
||||
|
||||
if (!config_update_value ('enable_update_manager', get_parameter('enable_update_manager')))
|
||||
$error_update[] = __('Enable Update Manager');
|
||||
|
||||
$inventory_changes_blacklist = get_parameter('inventory_changes_blacklist', array());
|
||||
if (!config_update_value ('inventory_changes_blacklist', implode(',',$inventory_changes_blacklist)))
|
||||
$error_update[] = __('Inventory changes blacklist');
|
||||
|
@ -500,12 +500,24 @@ function config_update_config () {
|
|||
if (!config_update_value ('flash_charts', (bool) get_parameter ('flash_charts')))
|
||||
$error_update[] = __('Interactive charts');
|
||||
|
||||
if (!config_update_value ('custom_favicon', (string) get_parameter ('custom_favicon')))
|
||||
$error_update[] = __('Custom favicon');
|
||||
if (!config_update_value ('custom_logo', (string) get_parameter ('custom_logo')))
|
||||
$error_update[] = __('Custom logo');
|
||||
if (!config_update_value ('custom_logo_white_bg', (string) get_parameter ('custom_logo_white_bg')))
|
||||
$error_update[] = __('Custom logo white background');
|
||||
if (!config_update_value ('custom_logo_login', (string) get_parameter ('custom_logo_login')))
|
||||
$error_update[] = __('Custom logo login');
|
||||
if (!config_update_value ('custom_splash_login', (string) get_parameter ('custom_splash_login')))
|
||||
$error_update[] = __('Custom splash login');
|
||||
if (!config_update_value ('custom_docs_logo', (string) get_parameter ('custom_docs_logo')))
|
||||
$error_update[] = __('Custom documentation logo');
|
||||
if (!config_update_value ('custom_support_logo', (string) get_parameter ('custom_support_logo')))
|
||||
$error_update[] = __('Custom support logo');
|
||||
if (!config_update_value ('custom_network_center_logo', (string) get_parameter ('custom_network_center_logo')))
|
||||
$error_update[] = __('Custom networkmap center logo');
|
||||
if (!config_update_value ('custom_mobile_console_logo', (string) get_parameter ('custom_mobile_console_logo')))
|
||||
$error_update[] = __('Custom networkmap center logo');
|
||||
if (!config_update_value ('custom_title1_login', (string) get_parameter ('custom_title1_login')))
|
||||
$error_update[] = __('Custom title1 login');
|
||||
if (!config_update_value ('custom_title2_login', (string) get_parameter ('custom_title2_login')))
|
||||
|
@ -517,9 +529,15 @@ function config_update_config () {
|
|||
$error_update[] = __('Custom Docs url');
|
||||
if (!config_update_value ('custom_support_url', (string) get_parameter ('custom_support_url')))
|
||||
$error_update[] = __('Custom support url');
|
||||
|
||||
if (!config_update_value ('rb_product_name', (string) get_parameter ('rb_product_name')))
|
||||
$error_update[] = __('Product name');
|
||||
if (!config_update_value ('rb_copyright_notice', (string) get_parameter ('rb_copyright_notice')))
|
||||
$error_update[] = __('Copyright notice');
|
||||
|
||||
if (!config_update_value ('meta_custom_logo', (string) get_parameter ('meta_custom_logo')))
|
||||
$error_update[] = __('Custom logo metaconsole');
|
||||
if (!config_update_value ('meta_custom_logo_white_bg', (string) get_parameter ('meta_custom_logo_white_bg')))
|
||||
$error_update[] = __('Custom logo metaconsole (white background)');
|
||||
if (!config_update_value ('meta_custom_logo_login', (string) get_parameter ('meta_custom_logo_login')))
|
||||
$error_update[] = __('Custom logo login metaconsole');
|
||||
if (!config_update_value ('meta_custom_splash_login', (string) get_parameter ('meta_custom_splash_login')))
|
||||
|
@ -567,8 +585,10 @@ function config_update_config () {
|
|||
$error_update[] = __('Autohidden menu');
|
||||
if (!config_update_value ('visual_animation', get_parameter('visual_animation')))
|
||||
$error_update[] = __('visual_animation');
|
||||
if (!config_update_value ('disable_help', get_parameter('disable_help')))
|
||||
$error_update[] = __('Disable help');
|
||||
if (!config_update_value ('fixed_graph', get_parameter('fixed_graph')))
|
||||
$error_update[] = __('Fixed graph');
|
||||
$error_update[] = __('Fixed graph');
|
||||
if (!config_update_value ('fixed_header', get_parameter('fixed_header')))
|
||||
$error_update[] = __('Fixed header');
|
||||
if (!config_update_value ('fixed_menu', get_parameter('fixed_menu')))
|
||||
|
@ -1049,6 +1069,10 @@ function config_process_config () {
|
|||
config_update_value ('log_collector', 0);
|
||||
}
|
||||
|
||||
if (!isset ($config["enable_update_manager"])) {
|
||||
config_update_value ('enable_update_manager', 1);
|
||||
}
|
||||
|
||||
if (!isset ($config["reset_pass_option"])) {
|
||||
config_update_value ('reset_pass_option', 0);
|
||||
}
|
||||
|
@ -1163,7 +1187,11 @@ function config_process_config () {
|
|||
if (!isset ($config["graphviz_bin_dir"])) {
|
||||
config_update_value ('graphviz_bin_dir', "");
|
||||
}
|
||||
|
||||
|
||||
if (!isset ($config["disable_help"])) {
|
||||
config_update_value ('disable_help', false);
|
||||
}
|
||||
|
||||
if (!isset ($config["fixed_header"])) {
|
||||
config_update_value ('fixed_header', false);
|
||||
}
|
||||
|
@ -1175,11 +1203,19 @@ function config_process_config () {
|
|||
if (!isset ($config["fixed_menu"])) {
|
||||
config_update_value ('fixed_menu', false);
|
||||
}
|
||||
|
||||
|
||||
if (!isset ($config["custom_favicon"])) {
|
||||
config_update_value ('custom_favicon', '');
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_logo"])) {
|
||||
config_update_value ('custom_logo', 'pandora_logo_head_4.png');
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_logo_white_bg"])) {
|
||||
config_update_value ('custom_logo_white_bg', 'pandora_logo_head_white_bg.png');
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_logo_login"])) {
|
||||
config_update_value ('custom_logo_login', 'login_logo_v7.png');
|
||||
}
|
||||
|
@ -1187,7 +1223,23 @@ function config_process_config () {
|
|||
if (!isset ($config["custom_splash_login"])) {
|
||||
config_update_value ('custom_splash_login', 'splash_image_default.png');
|
||||
}
|
||||
|
||||
|
||||
if (!isset ($config["custom_docs_logo"])) {
|
||||
config_update_value ('custom_docs_logo', '');
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_support_logo"])) {
|
||||
config_update_value ('custom_support_logo', '');
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_network_center_logo"])) {
|
||||
config_update_value ('custom_network_center_logo', '');
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_mobile_console_logo"])) {
|
||||
config_update_value ('custom_mobile_console_logo', '');
|
||||
}
|
||||
|
||||
if (!isset ($config["custom_title1_login"])) {
|
||||
config_update_value ('custom_title1_login', __('WELCOME TO PANDORA FMS'));
|
||||
}
|
||||
|
@ -1203,6 +1255,14 @@ function config_process_config () {
|
|||
if (!isset ($config["custom_support_url"])) {
|
||||
config_update_value ('custom_support_url', 'https://support.artica.es');
|
||||
}
|
||||
|
||||
if (!isset ($config['rb_product_name'])) {
|
||||
config_update_value('rb_product_name', get_product_name());
|
||||
}
|
||||
|
||||
if (!isset ($config['rb_copyright_notice'])) {
|
||||
config_update_value('rb_copyright_notice', get_copyright_notice());
|
||||
}
|
||||
|
||||
if (!isset ($config["meta_custom_docs_url"])) {
|
||||
config_update_value ('meta_custom_docs_url', 'http://wiki.pandorafms.com/index.php?title=Main_Page');
|
||||
|
@ -1216,6 +1276,10 @@ function config_process_config () {
|
|||
config_update_value ('meta_custom_logo', 'logo_pandora_metaconsola.png');
|
||||
}
|
||||
|
||||
if (!isset ($config["meta_custom_logo_white_bg"])) {
|
||||
config_update_value ('pandora_logo_head_white_bg', 'pandora_logo_head_white_bg.png');
|
||||
}
|
||||
|
||||
if (!isset ($config["meta_custom_logo_login"])) {
|
||||
config_update_value ('meta_custom_logo_login', 'pandora_logo.png');
|
||||
}
|
||||
|
@ -2039,7 +2103,7 @@ function config_check () {
|
|||
// ~ about 50 hr
|
||||
if ($last_maintance > 190000) {
|
||||
set_pandora_error_for_header(
|
||||
__('Your database is not well maintained. Seems that it have more than 48hr without a proper maintance. Please review Pandora FMS documentation about how to execute this maintance process (pandora_db.pl) and enable it as soon as possible'),
|
||||
__("Your database is not maintained correctly. It seems that more than 48hrs have passed without proper maintenance. Please review documents of %s on how to perform this maintenance process (DB Tool) and enable it as soon as possible.", get_product_name()),
|
||||
__("Database maintance problem"));
|
||||
}
|
||||
|
||||
|
@ -2060,7 +2124,7 @@ function config_check () {
|
|||
|
||||
if ($develop_bypass == 1) {
|
||||
set_pandora_error_for_header(
|
||||
__('Your Pandora FMS has the "develop_bypass" mode enabled. This is a developer mode and should be disabled in a production system. This value is written in the main index.php file'),
|
||||
__('Your %s has the "develop_bypass" mode enabled. This is a developer mode and should be disabled in a production system. This value is written in the main index.php file', get_product_name()),
|
||||
__("Developer mode is enabled"));
|
||||
}
|
||||
|
||||
|
@ -2077,7 +2141,7 @@ function config_check () {
|
|||
if ($_SESSION['new_update'] == 'new') {
|
||||
set_pandora_error_for_header(
|
||||
__('There is a new update available. Please<a style="font-weight:bold;" href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=online"> go to Administration:Setup:Update Manager</a> for more details.'),
|
||||
__("New update of Pandora Console"));
|
||||
__("New %s Console update", get_product_name()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1744,6 +1744,8 @@ function db_process_file ($path, $handle_error = true) {
|
|||
*/
|
||||
function db_check_minor_relase_available () {
|
||||
global $config;
|
||||
|
||||
if (!$config['enable_update_manager']) return false;
|
||||
|
||||
$dir = $config["homedir"]."/extras/mr";
|
||||
|
||||
|
@ -1788,6 +1790,8 @@ function db_check_minor_relase_available () {
|
|||
function db_check_minor_relase_available_to_um ($package, $ent, $offline) {
|
||||
global $config;
|
||||
|
||||
if (!$config['enable_update_manager']) return false;
|
||||
|
||||
if (!$ent) {
|
||||
$dir = $config['attachment_store'] . "/downloads/pandora_console/extras/mr";
|
||||
}
|
||||
|
|
|
@ -703,10 +703,12 @@ function events_create_event ($event, $id_group, $id_agent, $status = 0,
|
|||
$id_user = "", $event_type = "unknown", $priority = 0,
|
||||
$id_agent_module = 0, $id_aam = 0, $critical_instructions = '',
|
||||
$warning_instructions = '', $unknown_instructions = '',
|
||||
$source="Pandora", $tags="", $custom_data="", $server_id = 0, $id_extra ="") {
|
||||
$source=false, $tags="", $custom_data="", $server_id = 0, $id_extra ="") {
|
||||
|
||||
global $config;
|
||||
|
||||
if ($source === false) $source = get_product_name();
|
||||
|
||||
$table_events = 'tevento';
|
||||
if (defined ('METACONSOLE')) {
|
||||
$table_events = 'tmetaconsole_event';
|
||||
|
|
|
@ -2174,7 +2174,7 @@ function groups_get_group_to_list($group, $groups_count, &$symbolBranchs, $has_c
|
|||
else {
|
||||
$data[5] .= ' ' .
|
||||
ui_print_help_tip(
|
||||
__('You can not delete the last group in Pandora. A common installation must has almost one group.'), true);
|
||||
__('You cannot delete the last group. A common installation must have at least one group.'), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,11 @@ require_once($config['homedir'] . "/include/functions_modules.php");
|
|||
require_once($config['homedir'] . "/include/functions_groups.php");
|
||||
ui_require_css_file ('cluetip');
|
||||
|
||||
/**
|
||||
* Definitions
|
||||
*/
|
||||
define('DEFAULT_NETWORKMAP_CENTER_LOGO', 'images/networkmap/bola_pandora_network_maps.png');
|
||||
|
||||
// Check if a node descends from a given node
|
||||
function networkmap_is_descendant ($node, $ascendant, $parents) {
|
||||
if (! isset ($parents[$node])) {
|
||||
|
@ -1327,7 +1332,7 @@ function networkmap_create_pandora_node ($name, $font_size = 10, $simple = 0, $s
|
|||
}
|
||||
$stats_json = base64_encode(json_encode($summary));
|
||||
|
||||
$img_src = "images/networkmap/bola_pandora_network_maps.png";
|
||||
$img_src = ui_get_logo_to_center_networkmap();
|
||||
if (defined('METACONSOLE')) {
|
||||
|
||||
$url_tooltip = '../../ajax.php?' .
|
||||
|
@ -1346,11 +1351,11 @@ function networkmap_create_pandora_node ($name, $font_size = 10, $simple = 0, $s
|
|||
|
||||
if ($hack_networkmap_mobile) {
|
||||
$img = '<TR><TD>' .
|
||||
"<img src='" . $config['homedir'] . '/' . "images/networkmap/bola_pandora_network_maps.png' />" .
|
||||
"<img src='" . $config['homedir'] . '/' . ui_get_logo_to_center_networkmap() . "' />" .
|
||||
'</TD></TR>';
|
||||
}
|
||||
else {
|
||||
$image = html_print_image("images/networkmap/bola_pandora_network_maps.png", true, false, false, true);
|
||||
$image = html_print_image(ui_get_logo_to_center_networkmap(), true, false, false, true);
|
||||
//$image = str_replace('"',"'",$image);
|
||||
$img = '<TR><TD>' . $image . '</TD></TR>';
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ function networkmap_process_networkmap($id = 0) {
|
|||
// Open Graph
|
||||
$graph = networkmap_open_graph ($layout, $nooverlap, $pure, $zoom,
|
||||
$ranksep, $font_size, null);
|
||||
$graph .= networkmap_create_pandora_node (__('Pandora FMS'), $font_size, $simple);
|
||||
$graph .= networkmap_create_pandora_node (get_product_name(), $font_size, $simple);
|
||||
$graph .= networkmap_close_graph ();
|
||||
|
||||
switch (PHP_OS) {
|
||||
|
@ -211,7 +211,7 @@ function networkmap_process_networkmap($id = 0) {
|
|||
}
|
||||
else {
|
||||
// Generate dot file
|
||||
$graph = networkmap_generate_dot (__('Pandora FMS'),
|
||||
$graph = networkmap_generate_dot (get_product_name(),
|
||||
$id_group,
|
||||
$simple,
|
||||
$font_size,
|
||||
|
@ -1090,8 +1090,9 @@ function networkmap_loadfile($id = 0, $file = '',
|
|||
$data['id_agent'] = 0;
|
||||
$data['id_module'] = 0;
|
||||
$data['type'] = '';
|
||||
if (preg_match('/Pandora FMS/', $line) != 0) {
|
||||
$data['text'] = 'Pandora FMS';
|
||||
$product_name = get_product_name();
|
||||
if (preg_match("/$product_name/", $line) != 0) {
|
||||
$data['text'] = $product_name;
|
||||
$data['id_agent'] = 0;
|
||||
}
|
||||
else {
|
||||
|
@ -1621,7 +1622,9 @@ if (empty($list_networkmaps))
|
|||
$list_networkmaps = array();
|
||||
?>
|
||||
|
||||
<div id="open_version_dialog" style="display: none;">In the Open version of PandoraFMS can not be edited nodes or map</div>
|
||||
<div id="open_version_dialog" style="display: none;">
|
||||
<?php echo __("In the Open version of %s can not be edited nodes or map", get_product_name()); ?>
|
||||
</div>
|
||||
|
||||
<div id="dialog_node_edit" style="display: none;" title="<?php echo __('Edit node');?>">
|
||||
<div style="text-align: left; width: 100%;">
|
||||
|
|
|
@ -880,7 +880,7 @@ function reporting_html_event_report_group($table, $item, $pdf = 0) {
|
|||
if (!empty($event['id_agente']))
|
||||
$data[] = agents_get_alias($event['id_agente']);
|
||||
else
|
||||
$data[] = __('Pandora System');
|
||||
$data[] = __('%s System', get_product_name());
|
||||
$data[] = get_priority_name ($event['criticity']);
|
||||
if (empty($event['id_usuario']) && $event['estado'] == EVENT_VALIDATE) {
|
||||
$data[] = '<i>' . __('System') . '</i>';
|
||||
|
@ -3729,7 +3729,7 @@ function reporting_get_last_activity() {
|
|||
$table->head[3] = __('Date');
|
||||
$table->head[4] = __('Source IP');
|
||||
$table->head[5] = __('Comments');
|
||||
$table->title = '<span>' . __('Last activity in Pandora FMS console') . '</span>';
|
||||
$table->title = '<span>' . __('Last activity in %s console', get_product_name()) . '</span>';
|
||||
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
|
|
|
@ -753,25 +753,25 @@ function servers_show_type ($id) {
|
|||
|
||||
switch ($id) {
|
||||
case 1:
|
||||
return html_print_image("images/database.png", true, array("title" => "Pandora FMS Data server"));
|
||||
return html_print_image("images/database.png", true, array("title" => get_product_name() . " Data server"));
|
||||
break;
|
||||
case 2:
|
||||
return html_print_image("images/network.png", true, array("title" => "Pandora FMS Network server"));
|
||||
return html_print_image("images/network.png", true, array("title" => get_product_name() . " Network server"));
|
||||
break;
|
||||
case 4:
|
||||
return html_print_image("images/plugin.png", true, array("title" => "Pandora FMS Plugin server"));
|
||||
return html_print_image("images/plugin.png", true, array("title" => get_product_name() . " Plugin server"));
|
||||
break;
|
||||
case 5:
|
||||
return html_print_image("images/chart_bar.png", true, array("title" => "Pandora FMS Prediction server"));
|
||||
return html_print_image("images/chart_bar.png", true, array("title" => get_product_name() . " Prediction server"));
|
||||
break;
|
||||
case 6:
|
||||
return html_print_image("images/wmi.png", true, array("title" => "Pandora FMS WMI server"));
|
||||
return html_print_image("images/wmi.png", true, array("title" => get_product_name() . " WMI server"));
|
||||
break;
|
||||
case 7:
|
||||
return html_print_image("images/server_web.png", true, array("title" => "Pandora FMS WEB server"));
|
||||
return html_print_image("images/server_web.png", true, array("title" => get_product_name() . " WEB server"));
|
||||
break;
|
||||
case 8:
|
||||
return html_print_image("images/module-wux.png", true, array("title" => "Pandora FMS WUX server"));
|
||||
return html_print_image("images/module-wux.png", true, array("title" => get_product_name() . " WUX server"));
|
||||
break;
|
||||
default:
|
||||
return "--";
|
||||
|
|
|
@ -1104,6 +1104,9 @@ function ui_print_alert_template_example ($id_alert_template, $return = false, $
|
|||
function ui_print_help_icon ($help_id, $return = false, $home_url = '', $image = "images/help.png", $is_relative = false) {
|
||||
global $config;
|
||||
|
||||
// Do not display the help icon if help is disabled
|
||||
if ($config['disable_help']) return '';
|
||||
|
||||
if (empty($home_url))
|
||||
$home_url = "";
|
||||
|
||||
|
@ -1346,24 +1349,18 @@ function ui_process_page_head ($string, $bitfield) {
|
|||
}
|
||||
}
|
||||
$output .= "\n\t";
|
||||
$output .= '<title>Pandora FMS - '.__('the Flexible Monitoring System').'</title>
|
||||
$output .= '<title>' . get_product_name() . ' - '.__('the Flexible Monitoring System').'</title>
|
||||
<meta http-equiv="expires" content="never" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta name="resource-type" content="document" />
|
||||
<meta name="distribution" content="global" />
|
||||
<meta name="author" content="Pandora FMS Developer team" />
|
||||
<meta name="copyright" content="(c) Artica Soluciones Tecnologicas" />
|
||||
<meta name="keywords" content="pandora, monitoring, system, GPL, software" />
|
||||
<meta name="author" content="' . get_copyright_notice() . '" />
|
||||
<meta name="copyright" content="(c) ' . get_copyright_notice() . '" />
|
||||
<meta name="robots" content="index, follow" />';
|
||||
if(defined ('METACONSOLE')){
|
||||
$output .='<link rel="icon" href="images/favicon_meta.ico" type="image/ico" />';
|
||||
}
|
||||
else{
|
||||
$output .='<link rel="icon" href="images/pandora.ico" type="image/ico" />';
|
||||
}
|
||||
$output .='<link rel="icon" href="' . ui_get_favicon() . '" type="image/ico" />';
|
||||
$output .='
|
||||
<link rel="shortcut icon" href="images/pandora.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="' . ui_get_favicon() . '" type="image/x-icon" />
|
||||
<link rel="alternate" href="operation/events/events_rss.php" title="Pandora RSS Feed" type="application/rss+xml" />';
|
||||
|
||||
if ($config["language"] != "en") {
|
||||
|
@ -3719,62 +3716,12 @@ function ui_print_agent_autocomplete_input($parameters) {
|
|||
*
|
||||
* @param string error code
|
||||
*/
|
||||
function ui_get_error ($error_code) {
|
||||
switch($error_code) {
|
||||
case 'error_authconfig':
|
||||
case 'error_dbconfig':
|
||||
$title = __('Problem with Pandora FMS database');
|
||||
$message = __('Cannot connect to the database, please check your database setup in the <b>include/config.php</b> file.<i><br/><br/>
|
||||
Probably your database, hostname, user or password values are incorrect or
|
||||
the database server is not running.').'<br /><br />';
|
||||
$message .= '<span class="red">';
|
||||
$message .= '<b>' . __('DB ERROR') . ':</b><br>';
|
||||
$message .= db_get_last_error();
|
||||
$message .= '</span>';
|
||||
|
||||
if ($error_code == 'error_authconfig') {
|
||||
$message .= '<br/><br/>';
|
||||
$message .= __('If you have modified auth system, this problem could be because Pandora cannot override authorization variables from the config database. Remove them from your database by executing:<br><pre>DELETE FROM tconfig WHERE token = "auth";</pre>');
|
||||
}
|
||||
break;
|
||||
case 'error_emptyconfig':
|
||||
$title = __('Empty configuration table');
|
||||
$message = __('Cannot load configuration variables from database. Please check your database setup in the
|
||||
<b>include/config.php</b> file.<i><br><br>
|
||||
Most likely your database schema has been created but there are is no data in it, you have a problem with the database access credentials or your schema is out of date.
|
||||
<br><br>Pandora FMS Console cannot find <i>include/config.php</i> or this file has invalid
|
||||
permissions and HTTP server cannot read it. Please read documentation to fix this problem.</i>').'<br /><br />';
|
||||
break;
|
||||
case 'error_noconfig':
|
||||
$title = __('No configuration file found');
|
||||
$message = __('Pandora FMS Console cannot find <i>include/config.php</i> or this file has invalid
|
||||
permissions and HTTP server cannot read it. Please read documentation to fix this problem.').'<br /><br />';
|
||||
if (file_exists('install.php')) {
|
||||
$link_start = '<a href="install.php">';
|
||||
$link_end = '</a>';
|
||||
}
|
||||
else {
|
||||
$link_start = '';
|
||||
$link_end = '';
|
||||
}
|
||||
|
||||
$message .= sprintf(__('You may try to run the %s<b>installation wizard</b>%s to create one.'), $link_start, $link_end);
|
||||
break;
|
||||
case 'error_install':
|
||||
$title = __('Installer active');
|
||||
$message = __('For security reasons, normal operation is not possible until you delete installer file.
|
||||
Please delete the <i>./install.php</i> file before running Pandora FMS Console.');
|
||||
break;
|
||||
case 'error_perms':
|
||||
$title = __('Bad permission for include/config.php');
|
||||
$message = __('For security reasons, <i>config.php</i> must have restrictive permissions, and "other" users
|
||||
should not read it or write to it. It should be written only for owner
|
||||
(usually www-data or http daemon user), normal operation is not possible until you change
|
||||
permissions for <i>include/config.php</i> file. Please do it, it is for your security.');
|
||||
break;
|
||||
}
|
||||
|
||||
return array('title' => $title, 'message' => $message);
|
||||
function ui_get_error ($error_code = '') {
|
||||
// FIXME: Deprecated. Pandora shouldn't go inside this
|
||||
return array(
|
||||
'title' => __('Unhandled error'),
|
||||
'message' => __('An unhandled error occurs')
|
||||
);
|
||||
}
|
||||
|
||||
function ui_include_time_picker($echo_tags = false) {
|
||||
|
@ -3968,4 +3915,113 @@ function ui_get_snapshot_link($params, $only_params = false) {
|
|||
// Return the function call to inline js execution
|
||||
return "winopeng_var('" . implode("', '", $link_parts) . "')";
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the custom docs logo
|
||||
*
|
||||
* @return string with the path to logo. False if it should not be displayed
|
||||
*
|
||||
*/
|
||||
function ui_get_docs_logo () {
|
||||
global $config;
|
||||
|
||||
// Default logo to open version (enterprise_installed function only works in login status)
|
||||
if (!file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
|
||||
return "images/icono_docs.png";
|
||||
}
|
||||
|
||||
if (empty($config['custom_docs_logo'])) return false;
|
||||
return 'enterprise/images/custom_general_logos/' . $config['custom_docs_logo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the custom support logo
|
||||
*
|
||||
* @return string with the path to logo. False if it should not be displayed
|
||||
*
|
||||
*/
|
||||
function ui_get_support_logo () {
|
||||
global $config;
|
||||
|
||||
// Default logo to open version (enterprise_installed function only works in login status)
|
||||
if (!file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
|
||||
return "images/icono_support.png";
|
||||
}
|
||||
|
||||
if (empty($config['custom_support_logo'])) return false;
|
||||
return 'enterprise/images/custom_general_logos/' . $config['custom_support_logo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the custom header logo
|
||||
*
|
||||
* @return string with the path to logo. If it is not set, return the default value
|
||||
*
|
||||
*/
|
||||
function ui_get_custom_header_logo ($white_bg = false) {
|
||||
global $config;
|
||||
|
||||
if (empty($config['enterprise_installed'])) {
|
||||
return 'images/pandora_tinylogo_open.png';
|
||||
}
|
||||
|
||||
$stored_logo = is_metaconsole()
|
||||
? $config['meta_custom_logo']
|
||||
: $white_bg ? $config['custom_logo_white_bg'] : $config['custom_logo'];
|
||||
if (empty($stored_logo)) return 'images/pandora_tinylogo.png';
|
||||
return 'enterprise/images/custom_logo/' . $stored_logo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the central networkmap logo
|
||||
*
|
||||
* @return string with the path to logo. If it is not set, return the default.
|
||||
*
|
||||
*/
|
||||
function ui_get_logo_to_center_networkmap () {
|
||||
global $config;
|
||||
|
||||
if ((!enterprise_installed()) || empty($config['custom_network_center_logo'])) {
|
||||
return DEFAULT_NETWORKMAP_CENTER_LOGO;
|
||||
}
|
||||
|
||||
return 'enterprise/images/custom_general_logos/' . $config['custom_support_logo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the mobile console login logo
|
||||
*
|
||||
* @return string with the path to logo. If it is not set, return the default.
|
||||
*
|
||||
*/
|
||||
function ui_get_mobile_login_icon () {
|
||||
global $config;
|
||||
|
||||
if ((!enterprise_installed()) || empty($config['custom_mobile_console_logo'])) {
|
||||
return is_metaconsole()
|
||||
? "mobile/images/metaconsole_mobile.png"
|
||||
: "mobile/images/pandora_mobile_console.png";
|
||||
}
|
||||
|
||||
return 'enterprise/images/custom_general_logos/' . $config['custom_mobile_console_logo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the favicon
|
||||
*
|
||||
* @return string with the path to logo. If it is not set, return the default.
|
||||
*
|
||||
*/
|
||||
function ui_get_favicon () {
|
||||
global $config;
|
||||
|
||||
if (empty($config['custom_favicon'])) {
|
||||
return !is_metaconsole()
|
||||
? "images/pandora.ico"
|
||||
: "enterprise/meta/images/favicon_meta.ico";
|
||||
}
|
||||
|
||||
return 'images/custom_favicon/' . $config['custom_favicon'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -183,7 +183,8 @@ function update_manager_install_package_step2() {
|
|||
}
|
||||
|
||||
update_manager_enterprise_set_version($version);
|
||||
db_pandora_audit("Update Pandora", "Update version: $version of Pandora FMS by ".$config['id_user']);
|
||||
$product_name = get_product_name();
|
||||
db_pandora_audit("Update $product_name", "Update version: $version of $product_name by ".$config['id_user']);
|
||||
|
||||
$return["status"] = "success";
|
||||
$return["message"]= __("The package is installed.");
|
||||
|
|
|
@ -57,7 +57,7 @@ function clippy_start_page_homepage() {
|
|||
'intro' =>
|
||||
'<div class="clippy_body" style="text-align: left; padding-left: 20px; padding-right: 20px;">'.
|
||||
__('Hi, can I help you?') . '<br/><br/>' .
|
||||
__('Let me introduce my self: I am Pandorin, the annoying assistant of Pandora FMS. You can follow my steps to do basic tasks in Pandora FMS or you can close me and never see me again.') .
|
||||
__('Let me introduce my self: I am Pandorin, the annoying assistant of %s. You can follow my steps to do basic tasks in %s or you can close me and never see me again.', get_product_name(), get_product_name()) .
|
||||
'<br /> ' .
|
||||
'<br /> ' .
|
||||
'<div class="clippy_body" style="font-size: 7pt;">' .
|
||||
|
@ -82,7 +82,7 @@ function clippy_start_page_homepage() {
|
|||
'<ul style="text-align: left; margin-left: 10px; list-style-type: disc;">' .
|
||||
'<li>' .
|
||||
"<a href='javascript: clippy_go_link_show_help(\"index.php?sec=gagente&sec2=godmode/agentes/modificar_agente\", \"monitoring_server_step_1\");'>" .
|
||||
__('Ping to a Linux or Windows server with a Pandora FMS agent') .
|
||||
__('Ping a Linux or Windows server using a %s agent.', get_product_name()) .
|
||||
'</a>' .
|
||||
'</li>' .
|
||||
'<li>' .
|
||||
|
@ -206,7 +206,7 @@ function clippy_start_page_homepage() {
|
|||
$return_tours['tours']['email_alert_module_step_1']['steps'] = array();
|
||||
$return_tours['tours']['email_alert_module_step_1']['steps'][] = array(
|
||||
'element'=> '#clippy',
|
||||
'intro' => __('The first thing you have to do is to setup the config email in the Pandora FMS Server.') .
|
||||
'intro' => __('The first thing you have to do is to setup the e-mail config on the %s Server.', get_product_name()) .
|
||||
'<br />' .
|
||||
ui_print_help_icon ('context_pandora_server_email', true, '', 'images/help.png') .
|
||||
'<br />' .
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
|
||||
<h1>Alert commands</h1>
|
||||
|
||||
<p>Pandora FMS's reaction to a value stating "out of range" can be diverse: it can be recorder on the syslog, an email or SMS alert can be sent, or the execution of any script found on the Pandora FMS device and that can be properly processed.</p>
|
||||
<p><?php echo get_product_name();?>'s reaction to a value stating "out of range" can be diverse: it can be recorder on the syslog, an email or SMS alert can be sent, or the execution of any script found on the <?php echo get_product_name();?> device and that can be properly processed.</p>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<b>Name:</b> Name assigned to the action.<br>
|
||||
<b>Group:</b> Group the action belongs to. <br>
|
||||
<b>Command:</b> In this field the command that will be used in case the alert is triggered can be defined. Users can choose from the different commands that are defined on Pandora. Depending on the command chosen a variable group of fields will be shown (specific to each command) <br>
|
||||
<b>Command:</b> In this field the command that will be used in case the alert is triggered can be defined. Users can choose from the different commands that are defined on <?php echo get_product_name();?>. Depending on the command chosen a variable group of fields will be shown (specific to each command) <br>
|
||||
<b>Threshold:</b> The action’s execution threshold. <br>
|
||||
<b>Command Preview:</b> In this field, which can’t be edited, the command that will be run on the system will appear automatically. <br>
|
||||
<b>Field X:</b> In these fields:<br><br>
|
||||
|
@ -48,7 +48,7 @@ Apart from the defined module macros, the following macros are also available:
|
|||
<li>_data_: Module data that caused the alert to fire.</li>
|
||||
<li>_email_tag_: Emails associated to the module’s tags.</li>
|
||||
<li>_event_cfX_: (Only event alerts) Key of the event custom field that fired the alert. For example, if there is a custom field whose key is IPAM, its value can be obtained using the _event_cfIPAM_ macro.</li>
|
||||
<li>_event_description_: (Only event alerts) The textual description of the Pandora FMS event.</li>
|
||||
<li>_event_description_: (Only event alerts) The textual description of the <?php echo get_product_name();?> event.</li>
|
||||
<li>_event_extra_id_ : (Only event alerts) Extra id.</li>
|
||||
<li>_event_id_: (Only event alerts) ID of the event that triggered the alert.</li>
|
||||
<li>_event_text_severity_: (Only event alerts) Event text severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
|
||||
|
@ -71,7 +71,7 @@ Apart from the defined module macros, the following macros are also available:
|
|||
<li>_groupcustomid_: Group custom ID.</li>
|
||||
<li>_groupother_: Other information about the group. Configured when the group is created.</li>
|
||||
<li>_homeurl_ : It is a link of the public URL this must be configured in the general options of the setup.</li>
|
||||
<li>_id_agent_: Agent’s ID, useful for building a direct URL that redirects to a Pandora FMS console webpage.</li>
|
||||
<li>_id_agent_: Agent’s ID, useful for building a direct URL that redirects to a <?php echo get_product_name();?> console webpage.</li>
|
||||
<li>_id_alert_: Alert’s numeric ID (unique), used to correlate the alert with third party software.</li>
|
||||
<li>_id_group_ : Agent group ID.</li>
|
||||
<li>_id_module_: Module ID.</li>
|
||||
|
|
|
@ -33,7 +33,7 @@ Besides the defined module macros, the following macros are available:
|
|||
<li>_data_: Module data that caused the alert to fire.</li>
|
||||
<li>_email_tag_: Emails associated to the module’s tags.</li>
|
||||
<li>_event_cfX_: (Only event alerts) Key of the event custom field that fired the alert. For example, if there is a custom field whose key is IPAM, its value can be obtained using the _event_cfIPAM_ macro.</li>
|
||||
<li>_event_description_: (Only event alerts) The textual description of the Pandora FMS event.</li>
|
||||
<li>_event_description_: (Only event alerts) The textual description of the <?php echo get_product_name();?> event.</li>
|
||||
<li>_event_extra_id_: (Only event alerts) Extra id.</li>
|
||||
<li>_event_id_: (Only event alerts) ID of the event that triggered the alert.</li>
|
||||
<li>_event_text_severity_: (Only event alerts) Event text severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
|
||||
|
@ -56,7 +56,7 @@ Besides the defined module macros, the following macros are available:
|
|||
<li>_groupcustomid_: Group custom ID.</li>
|
||||
<li>_groupother_: Other information about the group. Configured when the group is created.</li>
|
||||
<li>_homeurl_ : It is a link of the public URL this must be configured in the general options of the setup.</li>
|
||||
<li>_id_agent_: Agent’s ID, useful for building a direct URL that redirects to a Pandora FMS console webpage.</li>
|
||||
<li>_id_agent_: Agent’s ID, useful for building a direct URL that redirects to a <?php echo get_product_name();?> console webpage.</li>
|
||||
<li>_id_alert_: Alert’s numeric ID (unique), used to correlate the alert with third party software.</li>
|
||||
<li>_id_group_ : Agent group ID.</li>
|
||||
<li>_id_module_: Module ID.</li>
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
?>
|
||||
<h1>Alert recovery</h1>
|
||||
|
||||
It defines whether Pandora FMS launches another alert when the alert’s condition is recovered. It has the same “field1”, but adds "[RECOVER]" to “field2” and “field3”. It is disabled by default.
|
||||
It defines whether <?php echo get_product_name();?> launches another alert when the alert’s condition is recovered. It has the same “field1”, but adds "[RECOVER]" to “field2” and “field3”. It is disabled by default.
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
There are some preset alerts, on which it’s very likely you will have to make adjustments, in case your system does not provide the internal commands needed to execute those alerts. The development team has tested these alerts with Red Hat Enterprise Linux (RHEL), CentOS, Debian and Ubuntu Server.
|
||||
<ul>
|
||||
<li><b>eMail</b>: Sends an e-mail from Pandora FMS’ Server. It uses your local sendmail. If you have installed another kind of local mailer or do not have one, you should install and configure sendmail or any equivalent (and check the syntax) to be able to use this service. Pandora FMS relies on system tools to execute almost every alert, it will be necessary to check that those commands work properly on your system.</li>
|
||||
<li><b>Internal audit</b>: This is the only "internal" alert, it writes the incident in Pandora FMS’ internal auditing system. This is stored on Pandora FMS’ Database and can be reviewed from the web console with the Pandora FMS audit viewer.</li>
|
||||
<li><b>Pandora FMS’ Alertlog</b>: Saves information about alerts inside a text file (.log). Use this type of alert to generate log files using the format you need. To do so, you will need to modify the command so that it will use the format and file you want. Note that Pandora FMS does not handle file rotation, and that Pandora FMS’ Server process that executes the alert will need access to the log file in order to write on it.</li>
|
||||
<li><b>Pandora FMS Events</b>: This alert creates an special event on the Pandora FMS event manager.</li>
|
||||
<li><b>eMail</b>: Sends an e-mail from <?php echo get_product_name();?> Server. It uses your local sendmail. If you have installed another kind of local mailer or do not have one, you should install and configure sendmail or any equivalent (and check the syntax) to be able to use this service. <?php echo get_product_name();?> relies on system tools to execute almost every alert, it will be necessary to check that those commands work properly on your system.</li>
|
||||
<li><b>Internal audit</b>: This is the only "internal" alert, it writes the incident in <?php echo get_product_name();?>'s' internal auditing system. This is stored on <?php echo get_product_name();?>'s Database and can be reviewed from the web console with the <?php echo get_product_name();?> audit viewer.</li>
|
||||
<li><b><?php echo get_product_name();?> Alertlog</b>: Saves information about alerts inside a text file (.log). Use this type of alert to generate log files using the format you need. To do so, you will need to modify the command so that it will use the format and file you want. Note that <?php echo get_product_name();?> does not handle file rotation, and that <?php echo get_product_name();?>'s' Server process that executes the alert will need access to the log file in order to write on it.</li>
|
||||
<li><b><?php echo get_product_name();?> Events</b>: This alert creates an special event on the <?php echo get_product_name();?> event manager.</li>
|
||||
</ul>
|
||||
These alerts are predefined and cannot be deleted, however the user can define new ones that can use custom commands, and add them using Alert management.
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<li><b>Alert type:</b> This can be selected from the previously generated alert list.</li>
|
||||
<li><b>Max. Value:</b> Defines the maximum value for a module. Any value above that threshold will trigger the alert.</li>
|
||||
<li><b>Min. Value:</b> Defines the minimum value for a module. Any value below that will trigger the alert. The ”max." & "min." couple are key values when defining an alert, since they define the range for normal values. Outside that range Pandora FMS will trigger the alert.</li>
|
||||
<li><b>Min. Value:</b> Defines the minimum value for a module. Any value below that will trigger the alert. The ”max." & "min." couple are key values when defining an alert, since they define the range for normal values. Outside that range <?php echo get_product_name();?> will trigger the alert.</li>
|
||||
<li><b>Alert text:</b> In the case of string modules you can define a regular expression or a substring to match the contents of a data module in order to trigger the alert.</li>
|
||||
<li><b>Time from / Time to:</b> This defines a “valid” timespan to trigger alert.</li>
|
||||
<li><b>Description:</b> Describes the function of the alert, and it is useful to identify the alert among the others in the general view of alerts.</li>
|
||||
|
|
|
@ -3,22 +3,22 @@
|
|||
* @package Include/help/es
|
||||
*/
|
||||
?>
|
||||
<h1>Pandora FMS’ Quick Guide to Alert Configuration </h1>
|
||||
<h1><?php echo get_product_name();?>'s Quick Guide to Alert Configuration </h1>
|
||||
<br>
|
||||
<b>Introduction to the Current Alert System</b><br>
|
||||
<br>
|
||||
People usually complain about the complexity of defining alerts on
|
||||
Pandora FMS. Before, until version 2.0, alerts were easier to
|
||||
<?php echo get_product_name();?>. Before, until version 2.0, alerts were easier to
|
||||
configure. For each alert the condition and what it did when the action was not completed was defined for each case. It was a more "intuitive"
|
||||
thing (but it also had fields such as the "threshold" alert that caused
|
||||
many headaches to more than one person!). It was very simple, but, was
|
||||
it worth it ?<br>
|
||||
<br>
|
||||
One of our “star” users (we mention this because he had A LOT of agents installed, and also knew the inner workings of Pandora FMS quite well) mentioned that creating an alert for 2000 modules was tremendously complicated, especially when it was necessary to modify something for all of them. Due to this, and other issues, we decided to modify the alert system so that it could be modular, so that the alert’s definition and its triggering condition (template) could be separated from the action that has to be executed when the alert is triggered (alert action) and from the command that is run within the action (Alert command). The combination of an alert template with a module triggers the alert itself.<br><br>
|
||||
One of our “star” users (we mention this because he had A LOT of agents installed, and also knew the inner workings of <?php echo get_product_name();?> quite well) mentioned that creating an alert for 2000 modules was tremendously complicated, especially when it was necessary to modify something for all of them. Due to this, and other issues, we decided to modify the alert system so that it could be modular, so that the alert’s definition and its triggering condition (template) could be separated from the action that has to be executed when the alert is triggered (alert action) and from the command that is run within the action (Alert command). The combination of an alert template with a module triggers the alert itself.<br><br>
|
||||
|
||||
This way, if I have 1000 devices with a module named “Host Alive” and all of them have a related alert template named “Host Down” that when triggered executes an action named “Warn the Operator”, and I wish to change the minimum number of alerts that must be fired before the Operator is warned, I only have to change the definition on the template instead of going one by one over the 1000 alerts to modify that specific condition.<br><br>
|
||||
|
||||
Many users only manage a few dozen devices, but there are many users with hundreds—even thousands—of systems monitored with Pandora FMS, and we have to try and make it so that with Pandora FMS all types of environments can be managed.<br>
|
||||
Many users only manage a few dozen devices, but there are many users with hundreds—even thousands—of systems monitored with <?php echo get_product_name();?>, and we have to try and make it so that with <?php echo get_product_name();?> all types of environments can be managed.<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
@ -118,9 +118,9 @@ html_print_image("images/help/alert07.png", false,
|
|||
array('width' => '550px'));
|
||||
?>
|
||||
<br>
|
||||
We’ve now made it so that the system can discriminate when something is right (OK status, marked in GREEN) and when something is wrong (CRITICAL status, marked in RED). Now what we have to do is make the system send us an email when the module reaches that status. For this we’ll use Pandora FMS’ alert system.<br>
|
||||
We’ve now made it so that the system can discriminate when something is right (OK status, marked in GREEN) and when something is wrong (CRITICAL status, marked in RED). Now what we have to do is make the system send us an email when the module reaches that status. For this we’ll use <?php echo get_product_name();?>'s alert system.<br>
|
||||
<br>
|
||||
For this we need to make sure there is a command available that can do what we need it to (in this case, send an email). This example is easy because there is a predefined command on Pandora FMS that is meant to automate email sending, meaning this is already done.<br>
|
||||
For this we need to make sure there is a command available that can do what we need it to (in this case, send an email). This example is easy because there is a predefined command on <?php echo get_product_name();?> that is meant to automate email sending, meaning this is already done.<br>
|
||||
<br>
|
||||
<b>Configuring the Alert</b><br>
|
||||
<br>
|
||||
|
@ -133,7 +133,7 @@ html_print_image("images/help/alert08.png", false,
|
|||
array('width' => '550px'));
|
||||
?>
|
||||
<br>
|
||||
This action uses the “send email” command, and is really simple, since only one field from the form needs to be filled out (Field1) leaving the other two empty. This is one of the most confusing parts of the alert system on Pandora FMS: what are field1, field2 and field3?<br>
|
||||
This action uses the “send email” command, and is really simple, since only one field from the form needs to be filled out (Field1) leaving the other two empty. This is one of the most confusing parts of the alert system on <?php echo get_product_name();?>: what are field1, field2 and field3?<br>
|
||||
<br>
|
||||
These fields are the ones used to “pass” the information on from the alert template to the command, and at the same time from that command to the next. This way both the template and the command can provide different information to the command. In this case, the command only establishes field1 and leaves field2 and field3 to be filled by the template, like what is shown next.<br>
|
||||
<br>
|
||||
|
@ -163,19 +163,19 @@ The most critical parameters here are the following:<br>
|
|||
<br>
|
||||
<i>Time threshold:</i> Set to one day by default. If a module is constantly down during, for example, one day and and we have set a value of 5 minutes here, it means that alerts would be sent every 5 minutes. If we leave it at one day (24hrs.), it’ll only send the alert once, when it goes down. If the module recovers, and drops again, it’ll send another alert, but if it remains down from the second drop, it won’t send more alerts until 24hrs have gone by.<br>
|
||||
<br>
|
||||
<i>Min. Number of alerts:</i> The minimum number of times that a condition will have to be met (in this case, that the module is in CRITICAL status) before Pandora FMS runs the actions linked to the alert template. It’s a way to avoid false positives “flooding” you with alerts, or so that an erratic behaviour doesn’t lead to multiply alerts going off. If we place a ‘1’ here it means that until this doesn’t happen at least once, it won’t be taken into account. If i set a value of ‘0’ the first time the module returns an error, the alert will go off.<br>
|
||||
<i>Min. Number of alerts:</i> The minimum number of times that a condition will have to be met (in this case, that the module is in CRITICAL status) before <?php echo get_product_name();?> runs the actions linked to the alert template. It’s a way to avoid false positives “flooding” you with alerts, or so that an erratic behaviour doesn’t lead to multiply alerts going off. If we place a ‘1’ here it means that until this doesn’t happen at least once, it won’t be taken into account. If i set a value of ‘0’ the first time the module returns an error, the alert will go off.<br>
|
||||
<br>
|
||||
<i>Max. Number of alerts:</i> A value of 1 means that it’ll only execute the action once. If we have ’10’ set here, it’ll run the action 10 times. This is a way to limit the number of times an alert can go off.<br>
|
||||
<br>
|
||||
Again, we can see the fields “field1, field2, field3”. Now we can see that field1 is blank, which is precisely the one we’ve defined when configuring the action. Field2 and Field3 are used for the “send mail” action to define the subject and the message’s body, whilst Field1 is used to define the recipient(s) of said message (addresses must be separated by commas). Therefore the template, combined with the use of some macros, is defining the subject and alert message in a way that, in our case, we would receive a message like the following (supposing the agent where the module is placed is named “Farscape”):<br>
|
||||
<br>
|
||||
<i>To: sancho.lerena@notexist.ocm<br>
|
||||
Subject: [PANDORA] Farscape cpu_sys is in CRITICAL status with a value
|
||||
Subject: [MONITORING] Farscape cpu_sys is in CRITICAL status with a value
|
||||
of 20<br>
|
||||
Message body:<br>
|
||||
<br>
|
||||
This is an automated alert generated by Pandora FMS<br>
|
||||
Please contact your Pandora FMS operator for more information. *DO NOT* reply to
|
||||
This is an automated alert generated by <?php echo get_product_name();?><br>
|
||||
Please contact your <?php echo get_product_name();?> operator for more information. *DO NOT* reply to
|
||||
this email.<br>
|
||||
</i><br>
|
||||
Given that the default action is the one we have defined previously, all
|
||||
|
@ -229,7 +229,7 @@ Alerts in standby are useful because they can be viewed without interfering with
|
|||
<br>
|
||||
<b>Using Alert Commands other than the “send email” command</b><br>
|
||||
<br>
|
||||
The email, as a command is internal to Pandora FMS and can’t be configured, this means Field1, Field2 and Field3 are fields that are preset to be used as the recipient, subject and body for the email alert. But, what happens when we want to execute a different, more customised alert?<br>
|
||||
The email, as a command is internal to <?php echo get_product_name();?> and can’t be configured, this means Field1, Field2 and Field3 are fields that are preset to be used as the recipient, subject and body for the email alert. But, what happens when we want to execute a different, more customised alert?<br>
|
||||
<br>
|
||||
We’ll define a new, totally customised command. Imagine that we want to generate a log file with each alert we find. The format for that log file has to be something like:<br>
|
||||
<br>
|
||||
|
@ -262,9 +262,9 @@ We can see that the alert was fired at 18:17:10 because of the " farscape"
|
|||
agent, in the "cpu_sys" module, with a data value of "23.00" and with the
|
||||
description that we chose when we defined the action.<br>
|
||||
<br>
|
||||
Since the command’s execution, the field order and other affairs can make it so we don’t really understand how it’s executed at the end of the command, the easiest thing to do is to activate the Pandora server debug traces (verbose 10) in the configuration file for the Pandora server ‘/etc/pandora/pandora_server.conf’, and then reset the server
|
||||
Since the command’s execution, the field order and other affairs can make it so we don’t really understand how it’s executed at the end of the command, the easiest thing to do is to activate the <?php echo get_product_name();?> server debug traces (verbose 10) in the configuration file for the <?php echo get_product_name();?> server ‘/etc/pandora/pandora_server.conf’, and then reset the server
|
||||
(/etc/init.d/pandora_server restart). After, we take a look at the file
|
||||
/var/log/pandora/pandora_server.log and look for the exact line with the
|
||||
alert command execution that we've defined, to see how the Pandora FMS
|
||||
alert command execution that we've defined, to see how the <?php echo get_product_name();?>
|
||||
server is launching and executing the command.<br>
|
||||
<br>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</div>
|
||||
<br>
|
||||
<p>
|
||||
This option should be assigned to avoid an “alert storm” that can come in because a group of agents are unreachable. This type of behaviour occurs when an intermediary device, like for example a router, is down and all devices behind it, therefore, cannot be reached. Probably these devices aren’t down and chances indicate that they’re working with another router in HA mode. But, if nothing is done, it’s likely for Pandora FMS to think that they’re down since they can’t be tested using a Remote ICMP Proc test (a Ping check).
|
||||
This option should be assigned to avoid an “alert storm” that can come in because a group of agents are unreachable. This type of behaviour occurs when an intermediary device, like for example a router, is down and all devices behind it, therefore, cannot be reached. Probably these devices aren’t down and chances indicate that they’re working with another router in HA mode. But, if nothing is done, it’s likely for <?php echo get_product_name();?> to think that they’re down since they can’t be tested using a Remote ICMP Proc test (a Ping check).
|
||||
<br><br>
|
||||
When you enable <i>cascade protection</i> for an agent, this means that if any of its parents has a CRITICAL alert fired, then the agent’s alerts <strong>WILL NOT BE</strong> fired. If the agent's parent has a module in CRITICAL or several alerts with less criticality than CRITICAL, alerts from the agent will be fired as normal if needed. Cascade protection checks parent alerts with CRITICAL priority, including the correlated alerts assigned to the parent.
|
||||
<br><br>
|
||||
|
@ -23,7 +23,7 @@ If you want to use an advanced cascade protection system, just use correlation a
|
|||
<br>
|
||||
</div>
|
||||
<p>
|
||||
This option should be assigned to avoid an “alert storm” that can come in because a group of agents are unreachable. This type of behaviour occurs when an intermediary device, like for example a router, is down and all devices behind it, therefore, cannot be reached. Probably these devices aren’t down and chances indicate that they’re working with another router in HA mode. But, if nothing is done, it’s likely for Pandora FMS to think that they’re down since they can’t be tested using a Remote ICMP Proc test (a Ping check).
|
||||
This option should be assigned to avoid an “alert storm” that can come in because a group of agents are unreachable. This type of behaviour occurs when an intermediary device, like for example a router, is down and all devices behind it, therefore, cannot be reached. Probably these devices aren’t down and chances indicate that they’re working with another router in HA mode. But, if nothing is done, it’s likely for <?php echo get_product_name();?> to think that they’re down since they can’t be tested using a Remote ICMP Proc test (a Ping check).
|
||||
<br><br>
|
||||
When you enable <i>cascade protection</i> for an module, this means that if this parent agent module has a CRITICAL alert fired, then agent alerts <strong>WILL NOT BE</strong> fired.
|
||||
<br><br>
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
* @package Include/help/en
|
||||
*/
|
||||
?>
|
||||
<h1>Categories in Pandora FMS</h1>
|
||||
<h1>Categories in <?php echo get_product_name();?></h1>
|
||||
On the system some categories can be created and configured to later be assigned to any module desired. <br>
|
||||
The only user that has the permits to create and configure these categories is the administrator and they can be used to apply a “fee” to modules depending on the category the are sorted into.
|
||||
|
|
|
@ -10,14 +10,14 @@ This page is the place to configure a GIS Map.
|
|||
</p>
|
||||
<h2>Map Name</h2>
|
||||
<p>
|
||||
Each map has a desciptive name used to recognice the map within Pandora FMS.
|
||||
Each map has a desciptive name used to recognice the map within <?php echo get_product_name();?>.
|
||||
</p>
|
||||
<h2>Select Connections</h2>
|
||||
<p>
|
||||
The first step is to select the main <strong>connection</strong> used in this GIS Map. At least one connection must be selected to configure the GIS Map, but it's possible to add more by pressing the <?php html_print_image("images/add.png", false, array("alt" => "Add")); ?> (Add) icon.
|
||||
</p>
|
||||
<p>
|
||||
When the firs connection is set, Pandora FMS asks if you want to use the default values of the connection for the map, to avoid to write again all the information. Also if the default connection for the map is changed (using the radio button), Pandora FMS will ask again if you want to use the values of the new default connection.
|
||||
When the firs connection is set, <?php echo get_product_name();?> asks if you want to use the default values of the connection for the map, to avoid to write again all the information. Also if the default connection for the map is changed (using the radio button), <?php echo get_product_name();?> will ask again if you want to use the values of the new default connection.
|
||||
</p>
|
||||
<h2>Map Paramteres</h2>
|
||||
<p>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* @package Include/help/en
|
||||
*/
|
||||
?>
|
||||
<h1>Unknown modules in Pandora</h1>
|
||||
<h1>Unknown modules in <?php echo get_product_name();?></h1>
|
||||
<p>
|
||||
You may have unknown modules for many reasons. Unknown module is a special status for a module/monitor which means “I dont have recent data for this monitor and I should have data”. A monitor goes to unknown status when doesnt receive nothing in at least its interval (for example, 300 seconds) multiplied by two, in this case, if you doesn't receive nothing in ten minutes, monitor goes to unknown.
|
||||
</p>
|
||||
|
@ -11,10 +11,10 @@ You may have unknown modules for many reasons. Unknown module is a special statu
|
|||
These are a few cases where you can get unknown modules:
|
||||
</p>
|
||||
<ul style="list-style-type: disc; margin-left: 30px;">
|
||||
<li>Your pandora server is down. Restart it, dont forget to check /var/log/pandora/pandora_server.log to see why was down.</li>
|
||||
<li>Your tentacle server is down, and cannot get data from your Pandora FMS agents installed in your remote servers.</li>
|
||||
<li>Your <?php echo get_product_name();?> server is down. Restart it, dont forget to check /var/log/pandora/pandora_server.log to see why was down.</li>
|
||||
<li>Your tentacle server is down, and cannot get data from your <?php echo get_product_name();?> agents installed in your remote servers.</li>
|
||||
<li>You have a network problem between your agents and your server.</li>
|
||||
<li>Your pandora fms agent is stopped and is not sending information to your server.</li>
|
||||
<li>Your <?php echo get_product_name();?> agent is stopped and is not sending information to your server.</li>
|
||||
<li>Your network is down, or the remote device you are trying to ask is down or changed it's IP address (for example for numerical SNMP remote queries).</li>
|
||||
<li>Your agent is reporting a badly synchronized date. Means reports a timedate in the past and that messup everything.</li>
|
||||
<li>The script / module before works now doesn't, that can be because something is happing in the agent, check it out.</li>
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
* @package Include/help/en
|
||||
*/
|
||||
?>
|
||||
<h1>Config the Pandora Server for email alerts</h1>
|
||||
<p>You must to edit the <i>"Pandora Server conf file"</i>, normaly it is in:
|
||||
<h1>Config the <?php echo get_product_name();?> for email alerts</h1>
|
||||
<p>You must to edit the <i>"<?php echo get_product_name();?> conf file"</i>, normaly it is in:
|
||||
<pre>
|
||||
/etc/pandora_server/pandora_server.conf
|
||||
</pre>
|
||||
And you must set these values:
|
||||
<pre>
|
||||
# mta_address: External Mailer (MTA) IP Address to be used by Pandora FMS internal email capabilities
|
||||
# mta_address: External Mailer (MTA) IP Address to be used by <?php echo get_product_name();?> internal email capabilities
|
||||
|
||||
mta_address localhost
|
||||
|
||||
|
@ -33,6 +33,6 @@ mta_auth LOGIN
|
|||
# mta_from Email address that sends the mail, by default is pandora@localhost
|
||||
# probably you need to change it to avoid problems with your antispam
|
||||
|
||||
mta_from Pandora FMS <pandora@mydomain.com>
|
||||
mta_from <?php echo get_product_name();?> <monitoring@mydomain.com>
|
||||
</pre>
|
||||
</p>
|
|
@ -12,5 +12,5 @@ To create an Agent, you must fill this form. Please fill all the fields you need
|
|||
"Interval" refers to the agent's execution interval. The interval is how often the agent sends data to the server.
|
||||
</p>
|
||||
<p>
|
||||
"Server" refers to the Pandora Server that will read data send by the agent.
|
||||
"Server" refers to the <?php echo get_product_name();?> Server that will read data send by the agent.
|
||||
</p>
|
||||
|
|
|
@ -9,7 +9,7 @@ Using the configuration parameter sets <b>Cron from</b> and <b>Cron to</b> makes
|
|||
it possible for a module to run only for certain periods of time.
|
||||
The way in which it is configured is similar to the syntax of
|
||||
<a style="font-size:14px;" href="https://en.wikipedia.org/wiki/Cron">cron</a>.
|
||||
Just as they appear in the Pandora console, each one of the parameters
|
||||
Just as they appear in the <?php echo get_product_name();?> console, each one of the parameters
|
||||
has three options.
|
||||
|
||||
<h4>Cron from: any</h4>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
?>
|
||||
<h1>Custom logo (Branding)</h1>
|
||||
|
||||
This option is used to display your own logo in the Pandora FMS header. You can use any kind of graphic in PNG format. There is a fixed width/height for any image displayed here of 206x47 pixels.
|
||||
This option is used to display your own logo in the <?php echo get_product_name();?> header. You can use any kind of graphic in PNG format. There is a fixed width/height for any image displayed here of 206x47 pixels.
|
||||
<br><br>
|
||||
Upload your custom branding logo, using the file manager to /images/custom_logo directory.
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<h2>Dynamic threshold Interval</h2>
|
||||
|
||||
<p>
|
||||
Introduce a time period in the Dynamic Threshold Interval field and the module will return the data obtained during the interval. This allows Pandora to establish minimum thresholds of critical and warning status according to the server configuration.
|
||||
Introduce a time period in the Dynamic Threshold Interval field and the module will return the data obtained during the interval. This allows <?php echo get_product_name();?> to establish minimum thresholds of critical and warning status according to the server configuration.
|
||||
<br><br>
|
||||
The default setting will <b>only</b> give minimums, so if maximum = 0 it will read from the configured minimum to infinite.
|
||||
<br><br>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<h1>Event Alerts</h1>
|
||||
|
||||
From Pandora FMS 4.0 version, it is possible to define alerts on events, that allows to work from a completely new approach much more flexible. This is an Enterprise feature.<br>
|
||||
It is possible to define alerts on events, that allows to work from a completely new approach much more flexible. This is an Enterprise feature.<br>
|
||||
|
||||
To create the new event alerts, click on the Create button in the Event alerts menu from the Administration menu. <br><br>
|
||||
|
||||
|
@ -61,6 +61,6 @@ For example, we could configure a rule that matches with the events generated by
|
|||
<?php html_print_image ("images/help/event04.png", false, array('width' => '550px')); ?>
|
||||
|
||||
<br>
|
||||
<p>Given the high number of events that the Pandora FMS database could store, the server works on an event window that is defined in the pandora_server.conf configuration file through the parameter event_window. The events that have been generated out of this time window won't be processed by the server, so it doesn't make sense to specify in a rule a time window higher to the one configured in the server </p>
|
||||
<p>Given the high number of events that the <?php echo get_product_name();?> database could store, the server works on an event window that is defined in the pandora_server.conf configuration file through the parameter event_window. The events that have been generated out of this time window won't be processed by the server, so it doesn't make sense to specify in a rule a time window higher to the one configured in the server </p>
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
?>
|
||||
|
||||
<p> When the history events are enabled, the purging script (pandora_db.pl) will copy the not validated or in process events (only new ones) to the history table before delete it.
|
||||
<p> When the history events are enabled, the purging script (DB Tool) will copy the not validated or in process events (only new ones) to the history table before delete it.
|
||||
<br><br>These events can be consulted in the history events view. This view can be accessed in a new tab in the events section.
|
||||
</p>
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
?>
|
||||
<h1>Export server</h1>
|
||||
|
||||
<p>Pandora FMS Enterprise Version implements, through the export server, a data scaling device that allows you to do a virtually distributed implementation able to monitor an unlimited number of information, as long as you design it properly and break it up into different information profiles.</p>
|
||||
<p><?php echo get_product_name();?> Enterprise Version implements, through the export server, a data scaling device that allows you to do a virtually distributed implementation able to monitor an unlimited number of information, as long as you design it properly and break it up into different information profiles.</p>
|
||||
|
||||
<ul>
|
||||
<li type="circle">Name: Pandora FMS server name.</li>
|
||||
<li type="circle">Name: <?php echo get_product_name();?> server name.</li>
|
||||
<li type="circle">Export server: Combo to choose the server petition of export server that will be used to export the data.</li>
|
||||
<li type="circle">Prefix: Prefix that is used to add to the agent name that send the data. For example, when the data of an agent named "Farscape" is resent, and its prefix in the export server is "EU01",the resent agent data will be seen in the destination server with the agent name EUO1-Farscape.</li>
|
||||
<li type="circle">Interval: Define the time interval, and how often (in seconds) you want to send the data that is unresolved.</li>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<br>
|
||||
<br>
|
||||
|
||||
The Threshold parameter FF (FF = FlipFlop) is used to "filter" the continuous changes of state in the generation of events / states, so that you can tell Pandora FMS until an element is not at least X times in the same state after changing from an original state, not considered to have changed.
|
||||
The Threshold parameter FF (FF = FlipFlop) is used to "filter" the continuous changes of state in the generation of events / states, so that you can tell <?php echo get_product_name();?> until an element is not at least X times in the same state after changing from an original state, not considered to have changed.
|
||||
<br><br>
|
||||
Take a classic example: A ping to a host where there is packet loss. In an environment like this, might give results as:
|
||||
<br>
|
||||
|
@ -24,7 +24,7 @@ Take a classic example: A ping to a host where there is packet loss. In an envir
|
|||
1
|
||||
</pre>
|
||||
<br>
|
||||
However, the host is alive in all cases. What we really want is to tell Pandora that until the host does not say you are at least three times down, not marked as such, so that in the previous case and would never be dropped, and only in this case it would be:
|
||||
However, the host is alive in all cases. What we really want is to tell <?php echo get_product_name();?> that until the host does not say you are at least three times down, not marked as such, so that in the previous case and would never be dropped, and only in this case it would be:
|
||||
<pre>
|
||||
1
|
||||
1
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<h1>GIS Map builder</h1>
|
||||
|
||||
<p>
|
||||
This page shows a list of the defined maps, and let you edit, delete or view any of them. Also from this page is where the <strong>default Map</strong> of Pandora FMS is set.
|
||||
This page shows a list of the defined maps, and let you edit, delete or view any of them. Also from this page is where the <strong>default Map</strong> of <?php echo get_product_name();?> is set.
|
||||
</p>
|
||||
To create a map a connection to a map server is needed, the connections are created by the Adminstrator in the <strong>Setup</strong> menu.
|
||||
<p>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue