Skip to main content
Participating Frequently
April 6, 2011
Question

How can I use fmscheck and HTML/SWF domain name based authentication together?

  • April 6, 2011
  • 1 reply
  • 1708 views

Hi all!

I want to use fmscheck to monitor my server.
When i try the command ( on the FMS server itself, running linux debian)

/opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log

I get this in output.log

#Version 1.0.0 r16
#2011-04-06 19:51:35
#Software: Adobe Flash Media Server Check 1.0.0 r16
#2011-04-06
#Fields: date    time        x-event           x-sname
2011-04-06     19:51:35     Connect          rtmp://XXXXXX:80/vod
2011-04-06     19:51:35     NetConnection.Connect.Rejected   Connection failed.
2011-04-06     19:51:35     Connection fail       -

And I get the following log entry in the application Console

Authentication failed for pageurl: , rejecting connection from XXXXXX

fmscheck works well if i disable HTML/SWF domain name based authentication.

Anyone knows how can I solve this problem??

Thx a lot!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    April 8, 2011

    Hi,

    You can give * or your client IP(domain name) in <fms-install>/applications/vod/allowedHTMLdomains.txt and <fms-install>/applications/vod/allowedSWFdomains.txt.

    This allows fmscheck to connect to application vod and play the stream.

    samZasAuthor
    Participating Frequently
    April 8, 2011

    Hi!

    Thx for your reply.

    But It doesn't work. As i wrote in the previous message : "fmscheck works well if i disable HTML/SWF domain name based authentication." i.e if i write * in those files. But it means that they are no longer used : I want to use this security feature, so this is not an option for me.

    If I write the IP of the server, or localhost, (or the IP of another server from which i run fmscheck) i get :

    Authentication failed for pageurl: , rejecting connection from XX.XXX.XX.XXX

    Always the same problem : writing in allowedHTMLdomains.txt and allowedSWFdomains.txt the ip of the server running fmscheck is not usefull.

    My problem is that every week the FMS server stops delivering streams, but i can't find anything in the logs, and the HTTP API administration getServerStatus method doesn't report any problem. The only solution is to restart the server then. I had a lot of complains from my customers, and sometimes it took me hours to notice the problem, because i can't take my all day to test my streaming server.

    Useless to say i'm very disappointed by FMS, especially by the logs which are completely useless. I found other people in some tech websites who have had the same problem. No solution, no answer, and usually they switch to Wowza or another open source server, which i may be forced to do if i have no answer here.

    But now i need to solve this big issue for me : I want to have a real and efficient test of a stream, and i want to automate it so that i can monitore FMS from nagios, and restart automatically the server if the stream doesn't "succeed", without deactivating any "security" feature.

    Anyone knows how to achieve this?

    Important remark : i have only Flash Media Streaming Server, so no server scripting, no other application,...

    Thx in advance

    Participating Frequently
    April 12, 2011

    Hi,

    I tried to connect to vod using the fmscheck. I put localhost and other ip addresses instead of the localhost and tried to connect from the machine where the fms is installed. I didn't find any problem.

    Could you please share your logs, so that I can have more info on what excactly could be happening.

    And also about your strem publish stopping. Do you see any crashes or any error messages in the logs?