Hello Guest

Recent Posts

Pages: [1] 2 3 ... 10
1
Hola!

Al final, conseguí instalar la consola de Pandora FMS en Ubuntu 16.04, y luego instalé el servidor y el agente. El caso es que accediendo a http://localhost/pandora_console/install.php llego hasta la creación de la base de datos. Introduzco los datos de acceso del usuario root, y todo lo demás:

http://imgur.com/132Zz0O

Le doy a "Next" y tras una no muy larga espera...

http://imgur.com/rIyEuZU

No parece un error de mi servidor MySQL, sino del propio código de creación. ¿Podríais ayudarme?

Muchas gracias.

2
Hello castcord,

Reading the log you've shared, to me it looks like your pandora agent is unable to execute tentacle_client to send the files, just as the message says.

When installing the pandora agent, tentacle client should also get installed too, so you may need to find where it is installed and move it to the /bin or the path where you system commands are stored.

To test this, you should be able to execute "tentacle_client" manually from command line in your MAC computer. If you are able to execute it successfuly, the agent should too, otherwise that may be related to permission issues.

Kind regards,
Antonio.
3
Hi,

This post has not been replied for 2 years, but maybe someone continues in the same situation, just like me :(...

I've followed the instructions for Linux/Unix Agent Installations, and I've also included com.pandorafms.pandorafms.plist to /Library/LaunchDaemons/ as Tobias suggested, but i'm still not able to visualize the agent on pandorafms server.

I've no troubles for the rest workstation agents installed on different OS (Windows/Linux), they are correctly displayed on pandorafms server.

If i read my pandora_agent.log it appears the following errors:

2017/03/27 12:23:17 - [log] - Running as user root
2017/03/27 12:23:17 - [setup] - server_ip is XX.XX.XX.XX
2017/03/27 12sar: drivepath sync code error -4
/var/spool/pandora/data_in
2017/03/27 12:23:17 - [setup] - temporal is /route/to/temp/directory
2017/03/27 12:23:17 - [setup] - logfile is /route/to/logfile/directory
2017/03/27 12:23:17 - [setup] - interval is 300
2017/03/27 12:23:17 - [setup] - debug is 0
2017/03/27 12:23:17 - [setup] - agent_name is MacMini
2017/03/27 12:23:17 - [setup] - group is Servers
2017/03/27 12:23:17 - [setup] - server_port is 41121
2017/03/27 12:23:17 - [log] - Thread is disabled.
2017/03/27 12:23:17 - [error] - Error sending file 'route/to/temp/directory/MacMini.XXXXXXX.data': sh: tentacle_client: command not found
2017/03/27 12:23:17 - [error] - Error sending file 'route/to/temp/directory/MacMini.YYYYYYYY.data': sh: tentacle_client: command not found

PandoraFMS Agent is currently running, after launch ./pandora_agent_daemon start

Could anyone help me on this?

Thanks you so much
4
Help for new users in Pandora FMS / Re: LDAP and Active Directory
« Last post by ethan on March 24, 2017, 10:33:47 AM »
Just noticed a bug in the function editted and fixed it.
Code: [Select]
function ldap_process_user_login ($login, $password) {
global $config, $filter, $ldap_result, $ldap_login;

if (! function_exists ("ldap_connect")) {
$config["auth_error"] = __('Your installation of PHP does not support LDAP');
return false;
}

// Connect to the LDAP server
$ds = @ldap_connect ($config["ldap_server"], $config["ldap_port"]);
if (!$ds) {
$config["auth_error"] = 'Error connecting to LDAP server';
return false;
}

// Set the LDAP version
ldap_set_option ($ds, LDAP_OPT_PROTOCOL_VERSION, $config["ldap_version"]);
if ($config["ldap_start_tls"]) {
if (!@ldap_start_tls ($ds)) {
$config["auth_error"] = 'Could not start TLS for LDAP connection';
@ldap_close ($ds);

return false;
}
}

$ldap_login_attr  = isset($config["ldap_login_attr"]) ? io_safe_output($config["ldap_login_attr"]) : '';
$ldap_base_dn  = isset($config["ldap_base_dn"]) ? io_safe_output($config["ldap_base_dn"]) : '';
$ldap_login = isset($config["login"]) ? io_safe_output($config["login"]) : '';

//Filter out disabled, expired, non-user accounts and set login attributes
$filter="(&(objectClass=user)(objectCategory=Person)($ldap_login_attr=$login)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))";

$bind = @ldap_bind($ds, "RETRO.COM\\" . $login, $password);

//Bind to verify user & password
if ($bind) {
//Search to ensure you're only checking against the LDAP base path specified in $ldap_login_attr
$ldap_result = ldap_search($ds,$ldap_base_dn,$filter);

if (!$ldap_result) {
$config["auth_error"] = 'User not found in LDAP Search';
@ldap_close ($ds);
return false;
}
} else {
$config["auth_error"] = 'User not found in LDAP or incorrect password';
@ldap_close ($ds);
return false;
}

@ldap_close ($ds);
return true;
}
5
Help for new users in Pandora FMS / Re: LDAP and Active Directory
« Last post by ethan on March 24, 2017, 08:29:06 AM »
Yeah I had to do something similar.
Ended up rewriting a good part of the "ldap_process_user_login" function so it would work with my LDAP service.
Code: [Select]
function ldap_process_user_login ($login, $password) {
global $config, $filter;

if (! function_exists ("ldap_connect")) {
$config["auth_error"] = __('Your installation of PHP does not support LDAP');
return false;
}

// Connect to the LDAP server
$ds = @ldap_connect ($config["ldap_server"], $config["ldap_port"]);
if (!$ds) {
$config["auth_error"] = 'Error connecting to LDAP server';
return false;
}

// Set the LDAP version
ldap_set_option ($ds, LDAP_OPT_PROTOCOL_VERSION, $config["ldap_version"]);

if ($config["ldap_start_tls"]) {
if (!@ldap_start_tls ($ds)) {
$config["auth_error"] = 'Could not start TLS for LDAP connection';
@ldap_close ($ds);
return false;
}
}

$ldap_login_attr  = isset($config["ldap_login_attr"]) ? io_safe_output($config["ldap_login_attr"]) : '';
$ldap_base_dn  = isset($config["ldap_base_dn"]) ? io_safe_output($config["ldap_base_dn"]) : '';

$login = isset($config["login"]) ? io_safe_output($login) : '';

//Filter out disabled, expired, non-user accounts and set login attributes
$filter="(&(objectClass=user)(objectCategory=Person)($ldap_login_attr=$login)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))";

//Specify domain prefix ,replace DOMAIN.COM
$bind = @ldap_bind($ds, "DOMAIN.COM\\" . $login, $password);
echo "\n\r" . $ldap_base_dn . "\n\r";

//Bind to verfiy user & password
if ($bind) {
//Search to ensure you only checking against the LDAP path specified in $ldap_login_attr
$result = ldap_search($ds,$ldap_base_dn,$filter);

if (!$result) {
$config["auth_error"] = 'User not found in LDAP Search';
@ldap_close ($ds);
return false;
}
} else {
$config["auth_error"] = 'User not found in LDAP or incorrect password';
@ldap_close ($ds);
return false;
}

@ldap_close ($ds);
return true;
}

6
Español / Spanish forum / Re: Monitorización HTML
« Last post by codetania on March 24, 2017, 03:16:14 AM »
Vale, ya solucioné el problema. Simplemente cambie el campo de "Recibir TCP" y puse "200 OK", ya que por defecto ese campo tiene puesto: "HTTP/1.1 200 OK", así que borré lo que sobraba y listo.
7
Español / Spanish forum / Re: Monitorización HTML
« Last post by antonio.s on March 24, 2017, 03:02:48 AM »
Hola codetania,

De nuevo necesitaría más detalles para decirte cual sería la forma de proceder.

Una forma sería simplemente monitorizando el puerto 80 del servidor web que quieras monitorizar, así se comprobaría si el servicio HTTP se encuentra funcionando. Para ello deberías crear un módulo de tipo "network server", configurar el tipo a "http proc" y especificar el puerto 80.

También podrías ejecutar un ping contra el sitio web que quieres monitorizar para comprobar si responde.

Puedes encontrar toda la información sobre monitorización remota aquí: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_es:Monitorizacion_remota

Un saludo,
Antonio.
8
Español / Spanish forum / Re: Monitorización HTML
« Last post by codetania on March 24, 2017, 02:45:31 AM »
Perdon, me referia a HTTP, que lo he escrito mal. Simplemente he creado un modulo dentro de un agente y le quiero pasar una direccion HTTP para monitorizarla pero siempre me aparece que el servicio esta caido, cuando no lo esta.
Un saludo
9
Help for new users in Pandora FMS / Re: DBD MYSQL
« Last post by antonio.s on March 24, 2017, 02:32:04 AM »
Hello nmktuning,

I would need more information to try to figure what's the cause of the issue. When does that error appear? Is it at trying to make a restart? What does it cause? Can you start the services? Have you perform any recent upgrade? What's your current version?

Kind regards,
Antonio.
10
Español / Spanish forum / Re: Monitorización HTML
« Last post by antonio.s on March 24, 2017, 02:30:28 AM »
Hola codetania,

Necesitaría más detalles para responderte con precisión, a qué te refieres exactamente con monitorizar html? Si se trata de algo así como depurar código html, no es la función a la que está enfocado Pandora FMS.

Un saludo,
Antonio.
Pages: [1] 2 3 ... 10