Hello everyone!
I need cheking SMTP server. Sending email message to the SMTP 1025 port.
And get answer. How can i do it?
Anyone an example script or anything else?
P.S.
My English is ugly... Sorry
I would just use a TCP port monitor component. What are the chances that the port will be responding but the service won't be functioning? It's more likely that it'd be down entirely, right?
Thank you, for your answer, Steven.
We used this monitor, but we need to send message and get answer for our monitoring. TCP port could be open and pass the test, but some services may be not running.
I know how to send message, the problem is with the answer... I thought somebody has a working script or who knows another solution.
You can use the "POP3 User Experience Monitor" or "IMAP User Experience Monitor" in SAM.
I set up a similar monitor once. I used a program called bmail.exe which allows you to generate an email from a command prompt. I sent it as a scheduled task once every 5 minutes on a server.
That email went to an SMTP mailbox that had a 'run a program' rule on it that executed a Klog.exe command and syslog'd a message back into my Solarwinds Syslog Receiver which ended up being written into
the database.
That part was just to excercise the email server and ensure it was receiving and processing email.
The second part was an APM (SAM) template that did a SQL query against the Syslog table in the DB looking for the text in the Syslog that was received. The SQL query went back for 7 minutes so slightly overlapped
the 5 minute email send time. Based on the results of the query, either successful or fail you set a value for 'Statistics:' (see Statistics in SAM help).
An alert can be then set up based on whatever Statistics returns for up or down.