mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Added a function to test the connection to the event replication DB.
This commit is contained in:
parent
67c2c92ab8
commit
07b5480732
@ -30,6 +30,7 @@ include_once($config['homedir'] . "/include/functions_network_components.php");
|
|||||||
include_once($config['homedir'] . "/include/functions_netflow.php");
|
include_once($config['homedir'] . "/include/functions_netflow.php");
|
||||||
include_once($config['homedir'] . "/include/functions_servers.php");
|
include_once($config['homedir'] . "/include/functions_servers.php");
|
||||||
enterprise_include_once ('include/functions_local_components.php');
|
enterprise_include_once ('include/functions_local_components.php');
|
||||||
|
enterprise_include_once ('include/functions_events.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse the "other" parameter.
|
* Parse the "other" parameter.
|
||||||
@ -206,6 +207,16 @@ function api_get_test() {
|
|||||||
echo "OK,$pandora_version,$build_version";
|
echo "OK,$pandora_version,$build_version";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Returs the string OK if a connection to the event replication DB can be established.
|
||||||
|
function api_get_test_event_replication_db() {
|
||||||
|
$status = enterprise_hook('events_test_replication_db', array());
|
||||||
|
if ($status === ENTERPRISE_NOT_HOOK) {
|
||||||
|
echo 'ERR';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
echo $status;
|
||||||
|
}
|
||||||
|
|
||||||
//-------------------------DEFINED OPERATIONS FUNCTIONS-----------------
|
//-------------------------DEFINED OPERATIONS FUNCTIONS-----------------
|
||||||
function api_get_groups($thrash1, $thrash2, $other, $returnType, $user_in_db) {
|
function api_get_groups($thrash1, $thrash2, $other, $returnType, $user_in_db) {
|
||||||
if ($other['type'] == 'string') {
|
if ($other['type'] == 'string') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user