Hi.
Does manual for module creation exist?
I'm confused about right understanding how to create module for netxms.
"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.
Does manual for module creation exist?
I'm confused about right understanding how to create module for netxms.
Code Select
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.