Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Advanced troubleshooting Problem adding new module in Windows agent

  • Problem adding new module in Windows agent

    Posted by walterft on July 12, 2009 at 21:32

    Hi,

    I’m new in Pandora and I’m reading the available documentation about this application. However, I have a problem when I want to add a module to check something with a agent in a Windows environment.

    I added in the module section of file pandora_agent.conf this new module definition:

    module_begin
    module_name TEST
    module_type generic_data
    module_exec c:test.bat
    module_description Listening test
    module_end

    Test.bat is a dummy file (only to test). When execute this file prints:

    C:>test.bat
    
    TEST1
    10
    generic_data
    
    C:>

    The pandora_debug.log has:

    2009-07-13 02:25:51 Run begin
    2009-07-13 02:25:51 Pandora_Windows_Service::checkConfig: Remote configuration disabled
    2009-07-13 02:25:51 Run ServicioReg
    2009-07-13 02:25:51 Run MSN_Messenger
    2009-07-13 02:25:51 Run ReceivedPackets
    2009-07-13 02:25:51 Executing: cmd.exe /c "netstat -s | grep "Packets Received" | tr -d " " | cut -f 2 -d "=" | tr -d "n""
    2009-07-13 02:25:52 Run TEST
    2009-07-13 02:25:52 Executing: cmd.exe /c "c:test.bat"
    2009-07-13 02:25:52 Run Listen_Conn
    2009-07-13 02:25:52 Executing: cmd.exe /c "netstat -an | grep LISTEN | wc -l | tr -d " ""
    2009-07-13 02:25:52 Run FreeDiskC
    2009-07-13 02:25:52 Run CPUUse0
    2009-07-13 02:25:53 Run FreeMemory
    2009-07-13 02:25:53 Run Logevents
    2009-07-13 02:25:53 ServicioReg getXML begin
    2009-07-13 02:25:53 ServicioReg getXML end
    2009-07-13 02:25:53 MSN_Messenger getXML begin
    2009-07-13 02:25:53 MSN_Messenger getXML end
    2009-07-13 02:25:53 ReceivedPackets getXML begin
    2009-07-13 02:25:53 ReceivedPackets getXML end
    2009-07-13 02:25:53 TEST getXML begin
    2009-07-13 02:25:53 TEST getXML end
    2009-07-13 02:25:53 Listen_Conn getXML begin
    2009-07-13 02:25:53 Listen_Conn getXML end
    2009-07-13 02:25:53 FreeDiskC getXML begin
    2009-07-13 02:25:53 FreeDiskC getXML end
    2009-07-13 02:25:53 CPUUse0 getXML begin
    2009-07-13 02:25:53 CPUUse0 getXML end
    2009-07-13 02:25:53 FreeMemory getXML begin
    2009-07-13 02:25:53 FreeMemory getXML end
    2009-07-13 02:25:53 Logevents getXML begin
    2009-07-13 02:25:53 Logevents getXML end
    2009-07-13 02:25:53 Copying XML on C:WindowsTempAGENT1.5145.data
    2009-07-13 02:25:53 Next execution on 30 seconds
    

    And the file AGENT1.5145.data:

    
    
        
            ServicioReg
            generic_proc
            1
            Eventlog Service
        
        
            MSN_Messenger
            generic_proc
            1
            Microsoft Messenger (MSN)
        
        
            ReceivedPackets
            generic_data
            
            Received packets
        
        
            TEST
            generic_data
            Listening test
        
        
            Listen_Conn
            generic_data
            27
            Listening connections
        
        
            FreeDiskC
            generic_data
            5058
            Free space on drive C:
        
        
            CPUUse0
            generic_data
            7
            CPU#0 usage
        
        
            FreeMemory
            generic_data
            1608
            Amount of free memory.
        
        
            Logevents
            generic_data_string
            
            Log Events
        
    
    

    The problem is the section in the module TEST is not present in the xml generated and the module doesn’t show in the server.

    This threads are related: Dudas pandora inicio and Ejecutando vbs en el agente de Windows

    Regards,

    manu replied 15 years, 3 months ago 3 Members · 2 Replies
  • 2 Replies