Hi!
Attached is modified portcheck.nsm, which uses same timeout value as for connect to wait for data available from server, so you can use ServiceCheck.SMTP parameter like following:
ServiceCheck.SMTP(host, mail@domain, 5000)
to use 5 seconds timeout on connect and waiting for data. Don't forget that NetXMS server by default waits obnly 2 seconds for results from agent, so if your check takes longer time, you need to increase value of server's configuration parameter AgentCommandTimeout.
Best regards,
Victor
Attached is modified portcheck.nsm, which uses same timeout value as for connect to wait for data available from server, so you can use ServiceCheck.SMTP parameter like following:
ServiceCheck.SMTP(host, mail@domain, 5000)
to use 5 seconds timeout on connect and waiting for data. Don't forget that NetXMS server by default waits obnly 2 seconds for results from agent, so if your check takes longer time, you need to increase value of server's configuration parameter AgentCommandTimeout.
Best regards,
Victor
