Pages: [1]   Go Down
Author Topic: How to report data from local module  (Read 877 times)
0 Members and 2 Guests are viewing this topic.
Acidshock
Newbie
*

Karma: 0
Offline Offline

Posts: 1


View Profile
« on: August 30, 2010, 12:49:53 AM »

I have read the documentation and I am wondering how to get data to report to the web console through custom local modules.

# Networking
module_begin
module_name nettraf_eth0_in
module_type generic_data_inc
module_exec /sbin/ifconfig eth0 |grep "bytes:" |awk {'print $2'} |tr -d "bytes:"
module_description bps IN (post process)
module_end

Would I create a data module in the web page?
Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: August 31, 2010, 12:35:26 PM »

I have read the documentation and I am wondering how to get data to report to the web console through custom local modules.

# Networking
module_begin
module_name nettraf_eth0_in
module_type generic_data_inc
module_exec /sbin/ifconfig eth0 |grep "bytes:" |awk {'print $2'} |tr -d "bytes:"
module_description bps IN (post process)
module_end

Would I create a data module in the web page?


That module must be in the pandora_agent.conf of the server, and will send the XML to dataserver, module will be created automatically, no need to create the module in the console.
Logged

-- See you in the other screen.

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #2 on: August 31, 2010, 12:36:30 PM »

Another comment: Due it's a generic_data_inc need at least two modules to "generate" information because it uses a delta (prev data - current data / seconds between them). Just wait a few minutes to see it.
Logged

-- See you in the other screen.

ivan.hrkac
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #3 on: September 08, 2010, 12:36:06 PM »

I have the same problem.
I tried to add it in pandora_agent.conf on server, but I still don't see it on web interface.
I tried to reboot server and client..

Thanks
Ivan
Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #4 on: September 08, 2010, 02:47:02 PM »

Execute (as root) the module_exec contents on console:

/sbin/ifconfig eth0 |grep "bytes:" |awk {'print $2'} |tr -d "bytes:"

If returns a valid value, it's ok, if not, replace by a valid command before use in a module. Pandora expects a number, anything else will produce a invalid data (not visible).
Logged

-- See you in the other screen.

ivan.hrkac
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #5 on: September 09, 2010, 07:26:31 AM »

Hi

When I executed /sbin/ifconfig eth0 |grep "bytes:" |awk {'print $2'} |tr -d "bytes:"
I got a number.
But I have the same problem with other custom module. For example:

module_begin
module_name Notepad
module_description Monitor notepad process
module_proc notepad.exe
module_type generic_proc
module_async yes
module_name

I configured this module on client side pandora_agent.conf and also on server pandora_agent.conf. But I dont see it on web console.
How can I get any custom module (configured on client) in web console?


Thanks in advance

Ivan
Logged

daniels
Smart member
*****

Karma: 19
Offline Offline

Posts: 205



View Profile
« Reply #6 on: November 26, 2010, 05:12:04 PM »

It seems that you have a problem running the pandora client in the pandora server machine, right?

Are you using tentacle for communication between client <-> server?

Regards.
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST