Hi! I'm new with pandora fms 7 community edition and I'm having a issue that I can't find the way to fix it. The problem is with WMI modules. They works fine at first. But if I reboot the machine (or even restart the pandora_server) then I lose contact with the already created modules and can't initialize new ones. Other modules types works fine. If I execute the WQL query (the same one that the log prints) directly from the server console (with wmci), it works fine. I've looked and compared the logs but I can't find any clue. I've installed the appliance cd image on a vmware vm. Could you help me please? Thank you in advance ;)
Problem with WMI modules after restart
alealt · 9 ago 2017, 21:36 · 7 mensajes · 87 visitas
- Inicio del debate
Hi alealt, Can you say me the complete version of Pandora server and the version of Pandora console? Best regards, vic.
Hi alealt, Can you say me the complete version of Pandora server and the version of Pandora console? Best regards, vic.
Hi Vic, From pandora_diag
Elemento valor de los datos Pandora FMS Build PC170728 Pandora FMS Version v7.0NG.709 Homedir /var/www/html/pandora_console HomeUrl http://192.168.2.234/pandora_console/ PHP Version 5.4.16 DB Table tagente 8 DB Table tagent_access 514 DB Table tagente_datos 4821 DB Table tagente_datos_string 0 DB Table tagente_estado 42 DB Table tagente_modulo 42 DB Table talert_actions 5 DB Table talert_commands 12 DB Table talert_template_modules 2 DB Table tevento 108 DB Table tlayout 0 DB Table tserver 5 DB Table treport 0 DB Table ttrap 0 DB Table tusuario 2 DB Table tsesion 70 DB Schema Version (first installed) 6.0dev DB Schema Version (actual) 6.0RC1 DB Schema Build PD150908 Enterprise installed PandoraDB Last run 2017/08/10 11:01:01 Update Key PANDORA-FREE Updating code path Path where the updated code is stored Current Update # 412From server Log:
Launching 7.0NG.709 170728Hi vic! I got it working. I'm not sure what is the problem but I found a workaround to solve the issue. After reboot (or even systemctl restart pandora_server) all WMI modules goes to unknow status. Also if new WMI modules were added, they go stucked in no initialize status. I have tried restart pandora_server through systemctl command without notice any change. Anyway the service was running before restart. Today I've tried directly /etc/init.d/pandora_server restart and it's working. Of course, if I reboot the system, i have to restart the service this way to get it working again, but it's ok for me. Maybe there is something different when the service is launched by systemd. It's weird. Regards.
Hi alealt, We always recommended use the command "/etc/init.d/service" to restart the services. Thanks for reporting! Best regards, vic.
I am getting the following error in my logs when doing a recon task, I have adjusted the username and password in the WMI object query, I can query the agent from the host cli, Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/PandoraFMS/Core.pm line 4685. Can any one advise on this error
Hi WallaceFootrot, Could you please explain a little bit more clear the issue, I'm trying to solve WMI unitialized modules, II guess it's a problem in some section of the code or the app because querying with wmic works fine: [root@xiolpxxx PandoraFMS]# wmic -U PNDxxxx%xxxxx //172.17.xx.xx "SELECT CSName,Manufacturer FROM Win32_OperatingSystem" CLASS: Win32_OperatingSystem CSName|Manufacturer DQEPxxxx|Microsoft Corporation In the file that you mention I could find this section related to WMI: ########################################################################## =head2 C<< pandora_update_server (I, I, I, I, I, I, I, I) >> Update server status: 0 dataserver 1 network server 2 snmp console, 3 recon 4 plugin 5 prediction 6 wmi. =cut ########################################################################## Thanks for your attention and answer. Regards, AG
Entra en tu cuenta para publicar.
