Sorry it's my bad. I read SNMP instear of SMTP. SMTP is supported and should work.
DCI configuration should look like: NetworkService.Status(smtps://domain.org, [email protected], [email protected])
From is optional named parameter, default value is taken from subagent configuration and with no changes will be "[email protected]".
In order to debug problem you should increase debug level to 6 on agent that collects this value. You can increase debug only for "netsvc" debug tag. In my case I had error like this, having 5 as a result of DCI:
2024.08.26 17:39:01.212 *D* [netsvc ] NetworkServiceStatus_SMTP(smtps://domain.org): call to curl_easy_perform failed (55: RCPT failed: 554)
In Service configuration as an object you should set destination e-mail as Request data. And you can debug errors in the same way as with previous one by increasing debug level on the agent. You will get errors like:
2024.08.26 18:06:52.008 *D* [netsvc ] CheckSMTP(smtp//127.0.0.1:465): call to curl_easy_perform failed (7: Failed to connect to 127.0.0.1 port 465 after 0 ms: Couldn't connect to server)
DCI configuration should look like: NetworkService.Status(smtps://domain.org, [email protected], [email protected])
From is optional named parameter, default value is taken from subagent configuration and with no changes will be "[email protected]".
In order to debug problem you should increase debug level to 6 on agent that collects this value. You can increase debug only for "netsvc" debug tag. In my case I had error like this, having 5 as a result of DCI:
2024.08.26 17:39:01.212 *D* [netsvc ] NetworkServiceStatus_SMTP(smtps://domain.org): call to curl_easy_perform failed (55: RCPT failed: 554)
In Service configuration as an object you should set destination e-mail as Request data. And you can debug errors in the same way as with previous one by increasing debug level on the agent. You will get errors like:
2024.08.26 18:06:52.008 *D* [netsvc ] CheckSMTP(smtp//127.0.0.1:465): call to curl_easy_perform failed (7: Failed to connect to 127.0.0.1 port 465 after 0 ms: Couldn't connect to server)