Skip to main content
Participant
October 9, 2006
Question

Monitoring Flash Media Server

  • October 9, 2006
  • 2 replies
  • 6760 views
Hi all,

I need to monitor a Flash Media Server, to retrieve actual number of connected users and dropped connections.

I am using an Open source tool called Nagios.

Has anyone done that before or can provide tips on how to achieve this?

Best regards,

François
    This topic has been closed for replies.

    2 replies

    Participant
    February 5, 2007
    The console is fairly useless for anyone who needs to have continual monitoring and problem notification, unless you've got the budget to hire people to sit and watch it 24/7.

    The API looks useful for monitoring scripts that could plug in to Nagios or other such tools. Unfortunately the docs are vague as to what the various stats mean. There are similar vague names for multiple things, like what does msg_in mean when its in getIOStats vs getServerStats? What is a "message" anyway, IP packets? GET requests? What do the various connection stats mean? The docs could certainly use some clarification.

    We currently use a script that connects to the admin port and does:

    http://127.0.0.1:1111/admin/getServerStats?auser=%USER%&apswd=%PASSWD%

    It then looks for the msg_in, msg_out, and total_connects. We think that the msg_in and msg_out metrics are client requests and server responses. No idea if that's actually the case since "message" could be damn near anything. Pretty sure total_connects gives us how many connections have been made to the server, we convert that into a rate.

    We also do getNetStreams and count however many <_number> blocks there are since that seems to be the number of actual client connections viewing streams currently. We only have net streams so dont need live/recorded stats.

    It'd be nice if the manual were clearer on how to determing how the server is functioning.
    September 11, 2008
    Thank you for your response. We are using Flash Media Server 2 and I tried your suggestion using http://127.0.0.1:1111/admin/getServerStats?auser=%USER%&apswd=%PASSWD%. However, I get the following response:
    <?xml version="1.0" encoding="utf-8" ?>
    - <result>
    <level>error</level>
    <code>Admin.API.MethodNotAllowed</code>
    <description>getserverstatus - Method not allowed!</description>
    <timestamp>9/11/2008 11:23:45 AM</timestamp>
    </result>
    Any suggestions?
    September 11, 2008
    One other thing, I can get http://127.0.0.1:1111/admin/ping?auser=%USER%&apswd=%PASSWD% to work, but the server can refuse connections and still ping properly. It isn't a good enough test. I need to make sure that the server is servicing connections.
    Inspiring
    October 9, 2006
    well the admin console included when you download flash media server does that...its located under windows start menu>>macromedia>>media server.
    fmeehanAuthor
    Participant
    October 9, 2006
    Thanks for the reply.

    Tried the admin console, but that does not give me any unattended monitoring facility.

    Regards,

    Francois