Welcome to Pandora FMS Community › Forums › Community support › How to report data from local module
-
How to report data from local module
Posted by Acidshock on August 30, 2010 at 03:49I 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_endWould I create a data module in the web page?
daniels replied 14 years, 3 months ago 4 Members · 6 Replies -
6 Replies
-
::
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_endWould 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.
-
-
-
::
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).
-
::
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_nameI 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
-