mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added new function in functions_api to set cache agent value.
This commit is contained in:
parent
1682816366
commit
add2e74e2b
@ -31,6 +31,7 @@ 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');
|
enterprise_include_once ('include/functions_events.php');
|
||||||
|
enterprise_include_once ('include/functions_agents.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse the "other" parameter.
|
* Parse the "other" parameter.
|
||||||
@ -212,6 +213,21 @@ function api_get_test() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Return OK if agent cache is activated
|
||||||
|
function api_get_test_agent_cache(){
|
||||||
|
if (defined ('METACONSOLE')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$status = enterprise_hook('test_agent_cache', array());
|
||||||
|
if ($status === ENTERPRISE_NOT_HOOK) {
|
||||||
|
echo 'ERR';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
echo $status;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// Returs the string OK if a connection to the event replication DB can be established.
|
// Returs the string OK if a connection to the event replication DB can be established.
|
||||||
function api_get_test_event_replication_db() {
|
function api_get_test_event_replication_db() {
|
||||||
if (defined ('METACONSOLE')) {
|
if (defined ('METACONSOLE')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user