Bienvenido a la comunidad de Pandora FMS › Forums › Community support › Tareas de discovery no funcionan
-
Tareas de discovery no funcionan
Posted by Gabriel on octubre 10, 2024 at 12:33Con la version community en la 777, con Ubuntu 22.04 LTS, no funcionan las tareas de descubrimiento de agentes.
La instalacion la he hecho mediante el comando:
curl -SsL https://raw.githubusercontent.com/pandorafms/pandorafms/develop/extras/deploy-scripts/pandora_deploy_community_ubuntu_2204_gh.sh | bash
A la hora de crearlas me deja rellenar el primer formulario pero cuando le doy a “SIGUIENTE” se queda la venta en blanco y no me crea la tarea para hacer el descubriomiento de agentes. Adjunto imagenes.
¿como puedo solucionar el problema?
-
This discussion was modified 6 months, 2 weeks ago by
Gabriel.
José Carlos replied 4 months, 2 weeks ago 4 Members · 19 Replies -
This discussion was modified 6 months, 2 weeks ago by
-
19 Replies
-
::
Buenos días Gabriel,
Parece que estás obteniendo un error 500 a la hora de acceder a esa sección de la vista.
¿Puedes adjuntarnos el fichero de log de la consola para ver qué error obtiene?
El log puede estar en:
/var/log/php-fmp/www-error.log
/var/www/html/pandora_console/log/console.logUn saludo,
Víc.-
::
Hola Vic, gracias por el soporte.
En las carpetas que comentas no veo los logs de la consola.
/var/log/php-fmp/www-error.log
/var/www/html/pandora_console/log/console.log
Sin embargo en /var/log/apache2he visto el error.log (adjunto en txt)
x1[Mon Oct 14 08:30:12.642021 2024] [ssl:warn] [pid 1020:tid 140066582128512] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
2[Mon Oct 14 08:30:12.730684 2024] [ssl:error] [pid 1020:tid 140066582128512] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=srvpandora / issuer: CN=srvpandora / serial: 2232875DB9D1877085F7A0AC7CEB8AA81D572E8D / notbefore: Oct 10 08:58:05 2024 GMT / notafter: Oct 8 08:58:05 2034 GMT]
3[Mon Oct 14 08:30:12.730760 2024] [ssl:error] [pid 1020:tid 140066582128512] AH02604: Unable to configure certificate 127.0.1.1:443:0 for stapling
4[Mon Oct 14 08:30:12.839991 2024] [mpm_event:notice] [pid 1020:tid 140066582128512] AH00489: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured -- resuming normal operations
5[Mon Oct 14 08:30:12.840059 2024] [core:notice] [pid 1020:tid 140066582128512] AH00094: Command line: '/usr/sbin/apache2'
6[Mon Oct 14 08:30:13.577841 2024] [mpm_event:notice] [pid 1020:tid 140066582128512] AH00493: SIGUSR1 received. Doing graceful restart
7AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
8[Mon Oct 14 08:30:13.869359 2024] [ssl:warn] [pid 1020:tid 140066582128512] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
9[Mon Oct 14 08:30:13.887641 2024] [ssl:error] [pid 1020:tid 140066582128512] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=srvpandora / issuer: CN=srvpandora / serial: 2232875DB9D1877085F7A0AC7CEB8AA81D572E8D / notbefore: Oct 10 08:58:05 2024 GMT / notafter: Oct 8 08:58:05 2034 GMT]
10[Mon Oct 14 08:30:13.887702 2024] [ssl:error] [pid 1020:tid 140066582128512] AH02604: Unable to configure certificate 127.0.1.1:443:0 for stapling
11[Mon Oct 14 08:30:13.888065 2024] [mpm_event:notice] [pid 1020:tid 140066582128512] AH00489: Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured -- resuming normal operations
12[Mon Oct 14 08:30:13.888089 2024] [core:notice] [pid 1020:tid 140066582128512] AH00094: Command line: '/usr/sbin/apache2'
13
-
-
-
::
Buenos días Gabriel,
Le adjunto captura de pantalla con los cambios que son necesarios para no obtener el error 500 en el Discovery.
Un saludo,
Vic.
-
::
Gracias por el feedback.
He probado a introducir las lineas que comenta vic, he reseteado el servicio de apache y me sigue si n funcionar.
Sergio, ¿lo que dice vic es lo que me ibas a proponer?, si no es asi, yo me atrevo a tocar lo que haga falta
Adjunto una imagen de lo que he modificado.
-
-
::
Hola Sergio.
He hecho lo que me indicas y ahora lo que me pasa es que, en el menu DIscovery, me aparece todo en blanco.
He introducido el siguiente codigo, quitando el me indicava Victor en rojo:
if(enterprise_installed() === true) {
$deploymentCenter = new DeploymentCenter();
echo $depolymentCenter->loadJS():
}
y me aparece todo el menu Discovery en blanco, si dejo el codigo como estaba en la lista de tareas me aparecen las opciones.(adjunto imagenes)
-
This reply was modified 6 months ago by
Gabriel.
-
This reply was modified 6 months ago by
-
-
-
-
-
::
Lo que me pasa ahora es que no me deja terminar de configurar las tareas de discovery en la segunda ventana se queda en blanco y no me deja configurar el descubrimiento por SNMP.
-
-
-
::
Hola.
Os adjunto el pantallazo del inspector del navegador en el que se ve otro error 500.
En el caso del archivo de log, no existe la ruta que me indicais.
-
-
::
Buenos días Gabriel,
Necesitaríamos conocer el error 500 que se está mostrando en el log de la consola, veo que no tienes el log de php-fpm, podemos ver si la traza del error se encuentra en:
/var/www/html/pandora_console/log/console.log
De ser así, ¿podrías adjuntarnos el log o bien toda la traza del error cuando accedes a esa sección?
Puede usar el comando “tail -f /var/www/html/pandora_console/log/console.log” para ver el log en tiempo real mientras que accede a la sección con el error.
Un saludo,
Víc.-
This reply was modified 5 months, 2 weeks ago by
vic.
-
::
Hola, en esa ruta solo ngo el cron.log(adjunto imagen).
Necesito habilitar algo en algun archivo de configuracion o en la consola para que me genere los archivos de log que me comentas?
-
This reply was modified 5 months, 2 weeks ago by
-
-
::
Aqui teneis el archivo de logs
xxxxxxxxxx
631[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 355
2[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 159
3[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined array key 1 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
4[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined array key 3 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
5[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined array key 4 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
6[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
7[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: file_get_contents(/etc/httpd/conf/httpd.conf): Failed to open stream: No such file or directory in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 3035
8[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined variable $modal_help in /var/www/html/pandora_console/general/header.php on line 514
9[14-Nov-2024 11:01:19 Europe/Madrid] PHP Warning: Undefined array key "node_metaconsole" in /var/www/html/pandora_console/include/functions.php on line 1886
10[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 355
11[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 159
12[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined array key 1 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
13[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined array key 3 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
14[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined array key 4 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
15[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
16[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: file_get_contents(/etc/httpd/conf/httpd.conf): Failed to open stream: No such file or directory in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 3035
17[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined array key "node_metaconsole" in /var/www/html/pandora_console/include/functions.php on line 1886
18[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/godmode/wizards/DiscoveryTaskList.class.php on line 1130
19[14-Nov-2024 11:03:03 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/godmode/wizards/DiscoveryTaskList.class.php on line 1130
20[14-Nov-2024 11:03:08 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 355
21[14-Nov-2024 11:03:08 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 159
22[14-Nov-2024 11:03:08 Europe/Madrid] PHP Warning: Undefined array key 1 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
23[14-Nov-2024 11:03:08 Europe/Madrid] PHP Warning: Undefined array key 3 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
24[14-Nov-2024 11:03:08 Europe/Madrid] PHP Warning: Undefined array key 4 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
25[14-Nov-2024 11:03:08 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
26[14-Nov-2024 11:03:08 Europe/Madrid] PHP Warning: file_get_contents(/etc/httpd/conf/httpd.conf): Failed to open stream: No such file or directory in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 3035
27[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined array key "node_metaconsole" in /var/www/html/pandora_console/include/functions.php on line 1886
28[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 355
29[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 159
30[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined array key 1 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
31[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined array key 3 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
32[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined array key 4 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
33[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
34[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: file_get_contents(/etc/httpd/conf/httpd.conf): Failed to open stream: No such file or directory in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 3035
35[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined array key "node_metaconsole" in /var/www/html/pandora_console/include/functions.php on line 1886
36[14-Nov-2024 11:03:09 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/godmode/wizards/DiscoveryTaskList.class.php on line 1130
37[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 355
38[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 159
39[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: Undefined array key 1 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
40[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: Undefined array key 3 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
41[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: Undefined array key 4 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
42[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
43[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: file_get_contents(/etc/httpd/conf/httpd.conf): Failed to open stream: No such file or directory in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 3035
44[14-Nov-2024 11:03:13 Europe/Madrid] PHP Warning: Undefined array key "node_metaconsole" in /var/www/html/pandora_console/include/functions.php on line 1886
45[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 355
46[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 159
47[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: Undefined array key 1 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
48[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: Undefined array key 3 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
49[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: Undefined array key 4 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
50[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: Undefined array key 9 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
51[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: file_get_contents(/etc/httpd/conf/httpd.conf): Failed to open stream: No such file or directory in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 3035
52[14-Nov-2024 11:03:17 Europe/Madrid] PHP Warning: Undefined array key "node_metaconsole" in /var/www/html/pandora_console/include/functions.php on line 1886
53[14-Nov-2024 11:03:17 Europe/Madrid] PHP Fatal error: Uncaught Error: Cannot use a scalar value as an array in /var/www/html/pandora_console/godmode/wizards/HostDevices.class.php:1179
54Stack trace:
55#0 /var/www/html/pandora_console/godmode/wizards/HostDevices.class.php(256): HostDevices->runNetScan()
56#1 /var/www/html/pandora_console/godmode/servers/discovery.php(155): HostDevices->run()
57#2 /var/www/html/pandora_console/index.php(1354): include_once('...')
58#3 {main}
59thrown in /var/www/html/pandora_console/godmode/wizards/HostDevices.class.php on line 1179
60[14-Nov-2024 11:04:21 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 355
61[14-Nov-2024 11:04:21 Europe/Madrid] PHP Warning: Undefined property: ConsoleSupervisor::$verbose in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 159
62[14-Nov-2024 11:04:21 Europe/Madrid] PHP Warning: Undefined array key 1 in /var/www/html/pandora_console/include/class/ConsoleSupervisor.php on line 1481
63[14-Nov-2024 11:04:21 Europe/Madrid] PHP Warning: Undefined array key 3 in /var/www/h...
This file was truncated for preview. Please download to view the full file.
-
-
-
::
Buenas tardes Gabriel,
Puede aplicar el siguiente cambio a nivel de código para ver si el problema se soluciona:
Editar el fichero: “pandora_console/godmode/wizards/HostDevices.class.php”
Línea a editar: 1178
if (empty($license) === false && license_enterprise_free() === true) {
por:
if (empty($license) === false && is_array($license) === true && license_enterprise_free() === true) {
Un saludo,
Víc. -
::
Buenas tardes Vic,
He aplicado la solución que indicabas en la entrada del día 9 de Diciembre de 2024,a las 16:48, y he completado añadir un “Network scan”. Tanto es así que si lo vuelvo a intentar y le doy el mismo nombre de tarea me muestra un mensaje de error que dice: “This network scan task has been already defined. Please edit it or create a new one”.
Pues bien, el problema es que la vista de “Task list” se muestra vacía.
Gracias anticipadas por la ayuda.