Pandora FMS Community

"NO INIT" status of WMI component

Masateru KUWATA · 1 oct 2015, 5:09 · 22 mensajes · 98 visitas

  1. Inicio del debate

    Dear Sirs, I am pretty new to PandoraFMS, and recently installed PandoraFMS on Windows10Pro. Then I tried to monitor another Windows10Pro which exists in the same segment. It seems like that I have no problem for creating agent and add modules by using WMI component. However, the status of WMI never comes to INIT (and therefore stayed in BLUE as you can see in attahced jpg image). I checked the target Windows10 about the service of winmgmt (WMI) and confirmed that it was started. I am wondering what was wrong in my operation/configuration. Any comments and suggestions would be appreciated! Best regards

    [

    ](//pandorafms.com/community/media/forum/0/18831=873-WMI.jpg)

  2. Just one additional comment: Of course, I modified the Pandora_Server (text file) to activate wmiserver (wmiserver 1). Unfortunately, I have no idea how to confirm the wmiserver is activated or not.... Rgds

  3. Hi Kuwata, Could you post your server's log file (/var/log/pandora/pandora_server.log) so I can give it a look? Anyway, did you actually create the agent like admin? Does it has SYSTEM privileges? Hope that helps, check it out ;) Regards, Emilio.

  4. Emilio Thank you for your kind advice - I have attached the log file (exists under C:PandoraFMSPandora_Serverlogs). It seems like that some DB SQL statement failed (but I am not familiar to that statements). Please kindly take a look at attached log and give me any suggestion/advice. Looking forward to your reply. Best Regards

    pandora_server.log

  5. Hi again Kuwata, The only way to launch the wmic so it works properly is with admin privileges, have you tried it? It looks like something is going on with the database... Does the password match between the "pandora_server.conf" and the "/include/config.php" file? Try doing a "grant all privileges" on the admin of the database. Maybe you changed the password at the "/include/config.php" file first instead of doing it at the "pandora_server.conf" one, and now you need to gran privileges. (It's easier to change the database pass at the server conf file, because if you do it at the other one, you'll have to grant). I hope I'm not muddling you up :P Maybe I didn't express myself THAT well, so ask again without fear :) Regards, Emilio.

  6. Emilio Since I have installed PandoraFMS on Windows10Pro, I am assuming that "/include/config.php" will reside in somewhere under C:PandoraFMS. And I found the likely file in C:PandoraFMSApachehtdocspandora_consoleinclude. Then I checked the passwords defined in config.php and pandora_server.conf. I confirmed that both files have exactly same password for DB! - in face they are the default password. Any idea/suggestions to go into deeper analysis? Regards, KUWATA

  7. Dear Sir, Just to confirm the behavior of PandoraFMS, I downloaded ISO image of CentOS based Appliance and created the VirtualBox VM. This appliance was preconfigured and there is no need to change any password or configuration file - it SHOULD work asis basis. However, I have encountered the same problem that I saw with Windows-based PandoraFMS. I looked into the pandora_server.log and pandora_server.error (I attached these files). These log files indicated MySQL server encountered some problem although it is preconfigured appliance. Is there any way to diagnose this problem? Any advice/suggestions would be appreciated, Regards KUWATA

    pandora_server.log

    pandora_server.error

  8. Hello Kuwata, I'm sorry to say that I'm running out of ideas :/ Could you actually attach your server.conf file? I know that you have the WMI server changed to 1, but I'll be looking for something else at the ".conf" file, so may you attach it? Let's keep the spirit up, we'll get it working one way or the other ;) Greetings, Emilio.

  9. Hello together, as i have the same situation / problem with my Pandora installation, i will follow this thread now. There is another thread called "ERROR: Unable to do WMI explorer" started by myself. In this thread the solution has been to enter "[email protected]" instead of "DOMAINNAMEAdministrator" or "DOMAINNAME/Administrator". With this solution i got the WMI explorer working. After this i tried to use WMI modules, but no luck: the "NO INIT" problem came up. It seems nearly the same situation and configuration as Kuwata uses: -ISO image version of Pandora -wmiserver is activated (default in the ISO version) So i hope that someone has the correct info for our problem. Greetings, Markus

  10. Hello Markus, Thanks for joining into this thread. Could you try something out? When you create a WMI module, change the value of "Field Number" from 1 to 3. Force it, does it work? Greetings, Emilio.

  11. Hello Emilio, Hello Kuwata, the following things may help you: 1. WMI Wizard The WMI Wizard needs login data in the UPN (User Principal Name) form : Example "[email protected]" ! The legacy format "DOMAINNAMEUsername" (or even "DOMAINNAME/Username") does not work in my configuration. 2. WMI Modules Here it seems to be a problem when i have special characters in the password i use for the user entry in the WMI module ! I tried a user having a password with no special characters and voila, here it goes :-) The bad password contained  the following  three charcaters /$* and with these there were always problems wit WMI module initialization. I will try testing further on and will report to you, if everything stays OK now with WMI. Greetings, Markus

  12. Hello Markus, That's marvellous! A lot of thanks, it's working for me! I hope everything stay the same way :'D Kuwata, you have to try it. Thank you, Markus, seriously! Regards, Emilio.

  13. Emilio/Markus I tried every hints that you kindly gave me - unfortunately, it does not work for me. I am not using any special character in my pssword, so it shouldn't be an issue. For UPN, my target PC does not belong to DOMAIN, but in WORKGROUP.  So I used the "username@WORKGROUP" instead and it allowed me to login to remote system (for WMI wizard). However, this caused a side effect - after creating the module, PandoraFMS claimed that "some error in loading modules". I deleted agent and rebooted PandoraFMS and it came back to work. For Emilio, I attached pandora_server.conf. Best regards

    pandora_server.conf

  14. Hi Kuwata, i forgot to mention, that i use the classic/legacy login data (DOMAINNAMEUsername) in the WMI module. The UPN method ([email protected]) is only necessary for me in the WMI wizard. Maybe this helps ... Greetings, Markus

  15. Markus I tried to login to the remote system by using "myaccount@Administrators" (local account) and it seemed to be O.K. for WMI wizard. However, the access to MySQL failed with the following log; 2015-10-07 18:03:14 localhost.localdomain [V1] Launching 5.1SP3 150624 2015-10-07 18:03:14 localhost.localdomain [V1] Config options: Logfile at /var/l og/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Che cksum is 0, Master is 1, SNMP Console is 0, Server Threshold at 5 sec, verbosity at 3, Alert Threshold at 60, ServerName is 'localhost.localdomain' 2015-10-07 18:03:14 localhost.localdomain [V1] - Pandora FMS Enterprise modul
    e not available. 2015-10-07 18:03:14 localhost.localdomain [V1] - Netflow daemon disabled.
    2015-10-07 18:19:36 localhost.localdomain [V1] [E] 'localhost.localdomain': DBD: :mysql::st execute failed: Query execution was interrupted at /usr/lib/perl5/Pan doraFMS/DB.pm line 629. This log indicates that there is some error for accessing MySQL. (I am using the official CentOS based appliance.) Any idea about this situation? Regards

  16. Hi Kuwata, which login data do you use at your WMI module ? In my last post i said "DOMAINNAMEUsername". Sorry !!! This is not correct, it must be "DOMAINNAME/Username". In your case i think it must be "COMPUTERNAME/Username" where COMPUTERNAME is the name of the remote system you want to monitor. The "Username" must be in the local group of administrators on the monitored Windows-System and of course the remote system must have WMI acces enabled. In our domain i do this with GPO. I also had similar SQL messages in the logfile,but after i used the correct login data, the errors had gone away in the log. Greetings, Markus

  17. Marukus Thank you for your advice. I loaded VMware appliance to clarify the situation and configured WMI module. I used "COMPUTERNAME/useraccount" to run WMI explorer which seemed to work. This eliminated the connection error to MySQL as you indicated! However, I still did not get a status of WMI module. Then I changed the verbosity level from 1 to 10 to look at more detailed error log. I noticed in the log that WMI command was tried, but failed to login(?). The error log was as follows; --------------error log for WMI moduel--------------- 2015-10-12 03:59:48 localhost.localdomain [V9] Executing AM # 24 WMI command 'wmic -U "g630/mkuwata"%"******" //192.168.30.250 "SELECT LoadPercentage from Win32_Processor WHERE DeviceID = 'CPU0'"' 2015-10-12 03:59:49 localhost.localdomain [V10] Updating module CPU load (ID 24) on error. -------------------------------------------------------------- Then I tried to issue WMI command from the terminal to show the exact error message; -------------error log for WMI command from terminal----------------------- root@localhost pandora]# wmic -U "g630/mkuwata"%"******" //192.168.30.250 "SELECT LoadPercentage from Win32_Processor WHERE DeviceID = 'CPU0'" ERROR: dcom_create_object. ERROR: Login to remote object. NTSTATUS: NT_STATUS_NET_WRITE_FAULT - NT_STATUS_NET_WRITE_FAULT ------------------------------------------------------------------------------------------ By looking at these error messages, I assume that WMI command was refused by the target system (Windows10). But I have no idea what was really wrong because I am not familiar to WMI nor Windows10. Do you have any idea about WMI configuration in Windows OS? Best REgards P.S. Just FYI, following is a conmplete log that I got. -----------------------------quoted--------------------------- bash-4.1$ sudo su [root@localhost artica]# cd /var/log/pandora [root@localhost pandora]# ls pandora_agent.log  pandora_server.error  pandora_server.log [root@localhost pandora]# cat pandora_server.error 2015-10-12 03:58:36 - localhost.localdomain Starting Pandora FMS Server. Error logging activated. [root@localhost pandora]# cat pandora_server.log 2015-10-12 03:58:36 localhost.localdomain [V1] Launching 5.1SP3 150624 2015-10-12 03:58:36 localhost.localdomain [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 0, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 60, ServerName is 'localhost.localdomain' 2015-10-12 03:58:36 localhost.localdomain [V1] - Pandora FMS Enterprise module not available.
    2015-10-12 03:58:37 localhost.localdomain [V10] Creating audit entry 'Pandora FMS Server Daemon starting' name 'SYSTEM' action 'System'. 2015-10-12 03:58:37 localhost.localdomain [V1] - Netflow daemon disabled.
    2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain dataserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain networkserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain reconserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain wmiserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain pluginserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V1] [W] Log verbosity is set to 10. This will degrade the server performance. Please set to a lower value ASAP 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'Log verbosity is set to 10. This will degrade the server performance' for agent ID 0 module ID 0. 2015-10-12 03:58:42 localhost.localdomain [V10] Updating keep_alive module for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Status' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Database Maintenance' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Queued_Modules' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Agents_Unknown' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'System_Load_AVG' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Free_RAM' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'FreeDisk_SpoolDir' for agent 'localhost.localdomain'. [root@localhost pandora]# cat pandora_server.log 2015-10-12 03:58:36 localhost.localdomain [V1] Launching 5.1SP3 150624 2015-10-12 03:58:36 localhost.localdomain [V1] Config options: Logfile at /var/log/pandora/pandora_server.log, Basepath is /etc/pandora/pandora_server.conf, Checksum is 0, Master is 1, SNMP Console is 0, Server Threshold at 5 sec, verbosity at 10, Alert Threshold at 60, ServerName is 'localhost.localdomain' 2015-10-12 03:58:36 localhost.localdomain [V1] - Pandora FMS Enterprise module not available.
    2015-10-12 03:58:37 localhost.localdomain [V10] Creating audit entry 'Pandora FMS Server Daemon starting' name 'SYSTEM' action 'System'. 2015-10-12 03:58:37 localhost.localdomain [V1] - Netflow daemon disabled.
    2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain dataserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain networkserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain reconserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain wmiserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'localhost.localdomain pluginserver going UP' for agent ID 0 module ID 0. 2015-10-12 03:58:38 localhost.localdomain [V1] [W] Log verbosity is set to 10. This will degrade the server performance. Please set to a lower value ASAP 2015-10-12 03:58:38 localhost.localdomain [V10] Generating event 'Log verbosity is set to 10. This will degrade the server performance' for agent ID 0 module ID 0. 2015-10-12 03:58:42 localhost.localdomain [V10] Updating keep_alive module for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Status' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Database Maintenance' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Queued_Modules' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Agents_Unknown' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'System_Load_AVG' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'Free_RAM' for agent 'localhost.localdomain'. 2015-10-12 03:58:42 localhost.localdomain [V10] Processing module 'FreeDisk_SpoolDir' for agent 'localhost.localdomain'. 2015-10-12 03:59:48 localhost.localdomain [V9] Executing AM # 24 WMI command 'wmic -U "g630/mkuwata"%"******" //192.168.30.250 "SELECT LoadPercentage from Win32_Processor WHERE DeviceID = 'CPU0'"' 2015-10-12 03:59:49 localhost.localdomain [V10] Updating module CPU load (ID 24) on error. [root@localhost pandora]# # [root@localhost pandora]# # here, I try to run wmic from the terminal! [root@localhost pandora]# # [root@localhost pandora]# wmic -U "g630/mkuwata"%"******" //192.168.30.250 "SELECT LoadPercentage from Win32_Processor WHERE DeviceID = 'CPU0'" ERROR: dcom_create_object. ERROR: Login to remote object. NTSTATUS: NT_STATUS_NET_WRITE_FAULT - NT_STATUS_NET_WRITE_FAULT [root@localhost pandora]#

  18. Hi Kuwata, you are right, it seems that you have no WMI enabled on your windows 10 system. This must be done before: 1. Enable WMI on target system 2. Create firewall-rule on target system to let WMI pass through (or temp. disable local windows firewall for testing) Maybe this helps you: http://www.poweradmin.com/help/enablewmi.aspx The above link is for older windows systems. Windows 10 i have not here for testing but it should be similar. Greetings, Markus

  19. Markus, Thank you for your kind advice - in fact, I also reached the same conclusion. By looking at the log, I found that the following actions are necessary in target PC. (1) enable firewall to allow WMI communication. (2) enable DCOM for the remote access (by using wbemtest.exe, I got an error code 0x80070005 DCOM ACCESS_DENIED) However, this still did not help. I again looked at web for more info and found the following URL. https://msdn.microsoft.com/en-us/library/windows/desktop/aa826699%28v=vs.85%29.aspx This URL tells me that UAC must be disabled for WMI to work from the remote! But this is a risky work around because of security reason - If this is a required configuration, I will suggest my client not to use it. By the way, I am wondering whether your monitored system is WindowsServer2012R2 (which I assume that all WMI configuration are enabled by default?). Can I just confirm your environment - using WindowsServer2012R2, ActiveDirectory for target system? Best Regards

  20. Hi Kuwata, at work we have only Win7 desktops and still multiple Server2008R2 (ActiveDirectory). WMI is enabled by GPO distributed via AD. No Win8, Win8.1, Win10 or Server2012 systems. Everything works fine at the moment. I do some basic checks with all my devices and the servers are additionally checked by WMI for diskspace and cpu load. Now i'm struggling with SNMP - reading the temperature of my server room sensors is working now, next thing will be doing some checks on the procurve switches. Let me know when get your config working ... Greetings, Markus

Entra en tu cuenta para publicar.