Monitoring the Telnet on a particular port

Hi all,

I'm new to Dynatrace.

My requirement is my application runs in server in a particular port number. Thus, i need to create a dashboard which is in SIGNAL format and hence it shows whether we are able to telnet to that port number every 10 seconds/1 minute of time interval.

10 Replies

Hi. I think your best choice is to use the Generic Execution Plugin. Monitors in dynaTrace can be setup in your System Profile - there is a section called Monitors. After you have installed the Generic Execution Plugin you can setup a monitor of that type that is exected e.g.: every 10 seconds from a certain collector. The Generic Execution Plugin allows you to execte ANY type of command line tool, e.g: telnet. It also allows you to parse the output and based on that the plugin can return a monitored value, e.g: 0 for NOT WORKING or 1 for OK. You can then use these monitored values to put on a dashboard or use for your alerting

In your Command property you need to specify "ping {host}". What will now happen is the following: The Monitor will be EXECUTED ON the Collector that you have selected. Every time it is executed (either manually or scheduled) the Monitor will execute that command line for each Host in your list. The placeholder string "host" will be replaced with the actual hostname. What you missed is the hostname itself. You need to define that placeholder as I've shown you.

I hope I also already answered your other question: Executed On means the Collector that this Monitor is executed on. Technical a Monitor is a piece of Java Code. It will be executed on a dynaTrace Collector. You could install different Collectors in different Data Centers or different Networks. Then you can configure where this monitor shoule be Executed On -> meaning: which collector. The Collector machine needs to be able to execute that command. In your case. The selected Collector should be able to ping that host that you want to monitor

Well - the error message at least tells us know that the host name was correctly put on the PING command.

Now - this monitor executes on your collector on the machine ibmpower61. If you logon to that machine with the same user that runs the collector process and then execute the ping statement in your console: what is the result? Can that machine under that user execute the ping? Can it resolve that name?

I am now pretty sure the monitor is setup correctly but it seems that the ping command on that box just really cant find that hostname. So - I typically then go ahead and try it manually to see what the problem is