Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pandorafms plugin modules
what are the programming languages can we use to develop pandorafms plugin modules? i read pandorafms documentation and search module library to find more details and  about plugins and examples, and i found out that perl and shell script used  mainly to writing plugins. could we use python or php (command line) write plugin modules?
If it possible give me some example and guide lines to do it.
Hello Helplakmal

You can use any programming languages that you can execute in pandora_server.

First of all, you must identified if need a server plugin or an agent plugin.
When you use a plugin server, the information will be string or numeric data. The plugin can do anything to extract this data.

When you need an agent plugin you need to extract the information and put into a XML format.
This is an example of XML format:

<description>% of usage in this volume</description>

        # Print module output
        print "<module>\n";
        print "<name><![CDATA[" . $filesystem . "]]></name>\n";
        print "<type><![CDATA[generic_data]]></type>\n";
        print "<data><![CDATA[" . $use . "]]></data>\n";
        print "<description>% of usage in this volume</description>\n";
        print "</module>\n";


now it is clear to me. thank you for the descriptive answer.
I have another question. I tried to insert data to the pandorafms system using xml files like the way that pandorafms software agent doing it. but xml files didn't recognized by pandorafms system. first i create a agent_name.xml file. then i inserted following xml lines to that file.

<agent_data os_name='Network' os_version='5.0dev' agent_name='agent_name' interval='60' timestamp='2013-07-26 10:30:42'>
<module> <name>parameter</name><type>generic_proc</type><data>1</data></module>

then i inserted "agent_name.xml" file in to /var/spool/pandora/data_in directory manually. but it didn't add to the relevant agent. i restarted pandorafms server and checked it didn't worked. so is there anything wrong in my procedure???

This is XML format.

Try adding missing parameters and test with it

<?xml version='1.0' encoding='UTF-8'?>
<agent_data description='' group='' os_name='linux' os_version='"CentOS release 6.4 (Final)"' interval='300' version='5.0' timestamp='2013/07/29 23:43:28' agent_name='name' timezone_offset='0' address='X.X.X.X'>




Users browsing this thread: 1 Guest(s)

(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | |

Theme © MyBB Themes