ServiceCheck.SMTP sample parameter line

Started by Toepfe, June 16, 2015, 01:15:57 PM

Previous topic - Next topic

Toepfe

Hi everybody,

I try to check the SMTP ports via ServiceCheck.SMTP as explained here https://www.netxms.org/forum/configuration/web-site-monitoring/15/

It seems that I get it to work with first option (network service on node). But only with Service type "User-defined", with Service type "SMTP" I'm not successful.

However I prefer to do it with second option (DCI ServiceCheck.SMTP or maybe ServiceCheck.Custom). After some variations it seems to work with the following parameter line of ServiceCheck.Custom:

   ServiceCheck.Custom(ip-address,25000,"^SMTP 200.*",servername.domain.local)

To check if the SMTP service is available not only local, I try to use the NetXMS Server as proxy node. But then the check changed to unsupported. If I use above parameter line with ServiceCheck.SMTP I get back "2 - cannot connect to server". So I'm not sure if my parameter line is correct.

Could someone please write a sample line of the parameter field with ServiceCheck.SMTP (or ServiceCheck.Custom)?

Bye and thanks
Heimo


Toepfe

Hi everybody,

I'm sorry, I made the ServiceCheck.Custom on the wrong node (NetXMS server instead of SMTP server), thereby the proxy node was wrong resp. the same machine. Now I moved the ServiceCheck.Custom to the SMTP server and put in the NetXMS server as proxy node, looks good. But I'm already unsure if my parameter line is correct and why it's not working with ServiceCheck.SMTP?

Therefore a sample parameter line would be very helpful for me ;-)

Bye
Heimo