Added a function to test the connection to the event replication DB.
This commit is contained in:
parent
b02e994701
commit
36c0f3a7b7
|
@ -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…
Reference in New Issue