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:
ServicioReggeneric_proc
1
Eventlog ServiceMSN_Messengergeneric_proc
1
Microsoft Messenger (MSN)ReceivedPacketsgeneric_dataReceived packetsTESTgeneric_dataListening testListen_Conngeneric_data
27
Listening connectionsFreeDiskCgeneric_data
5058
Free space on drive C:CPUUse0generic_data
7
CPU#0 usageFreeMemorygeneric_data
1608
Amount of free memory.Logeventsgeneric_data_stringLog 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.
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show (non-) personalized ads. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Siempre activo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Siempre activo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.