Is there a way to test RTMP connection like the command "ping domain -t" in CMD so that I can check how many times the RTMP server is down for a certain period of time.
Asked
Active
Viewed 5,833 times
1
-
Are you trying to ping from a Flash application? You can do repeated URLRequests to get a status file, if that erred, you count this as a failure. Make sure you'll not query the Web server too often. – Vesper May 23 '14 at 07:28
-
@Vesper no, I'm not pinging from flash, but the flash, sometimes, is giving the connection status 'nc.connected == false'. That's why I'd like to know if it's really the RTMP server is failing. Thanks for your reply – putoshop May 30 '14 at 07:14
1 Answers
2
You can use rtmpdump and connect to a video that doesn't exist.
Such as
rtmpdump -r rtmp://[server]/[application]/gibberish
where gibberish
isn't an actual video on your server.
I get back
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound
This does what you want, in that it connects to your server over RTMP and returns a "Connected" message. If your server was down, it'd give you a different error.
If you're using AMS, there's also the Adobe Media Server Administration Console, which runs on a different port than RTMP, so unless your entire box crashes, you should be able to check and see if it's running.