Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - BrandStorm

#1
General Support / Undestanding of module structure
June 04, 2012, 06:08:31 PM
Hi.
Does manual for module creation exist?
I'm confused about right understanding how to create module for netxms.
typedef struct
{
   DWORD dwSize;           // Size of structure in bytes
   TCHAR szName[MAX_OBJECT_NAME];
   void (* pfMain)(void);  // Pointer to module's main()
   int (* pfCommandHandler)(DWORD dwCommand, CSCPMessage *pMsg, ClientSession *pSession);
   BOOL (* pfTrapHandler)(SNMP_PDU *pdu, Node *pNode);
   BOOL (* pfEventHandler)(Event *event);
   HMODULE hModule;
} NXMODULE;


"pfMain" is used to create a new thread with module code, but is it possible to use NetXMS scheduler for managing actions from this module. For instance, if module gather some additional info from nodes (IPMI, iLO etc) how to inform the core to use this module as backend for such operations? As I understand currently I need to create own scheduler in my own module instead of use netxms one.
#2
Hi all.
My idea is to have an ability to set up necessary services/protocols when creating host. Currently when we create host we are able to assign only client or/and SNMP, but there can be much more options, like ILO, IPMI etc. It would aslo  be good to have such options as plugins to provide an opportunity for self-creation of such plugins via native C/C++ and scripts like Python, bash, perl.