Page 1 of 1

Monitoring Tool

PostPosted: Wed Sep 10, 2014 7:05 pm
by irdet2
Can I ask you if there is a sort of monitoring tool which shows info about who is watching (IP and/or device) , when and what is watching in order to keep a track of my server usage?


Thanks for your feedback

Re: Monitoring Tool

PostPosted: Wed Sep 10, 2014 11:21 pm
by adielk
Parental control tool?

Re: Monitoring Tool

PostPosted: Thu Sep 11, 2014 9:32 am
by irdet2
No!
No parental control!

Just to keep track of the logs...

For example : Samsung TV was connected at 10:33 and started watching the X movie...still watching
Android device connected at 10:44 and started watching the B movie...finished watching at 10:55


I am talking about a real-time monitoring tool of the Server.

Re: Monitoring Tool

PostPosted: Sat Sep 13, 2014 12:42 pm
by EricGDP
Yes, the ability to see a log of who connected when and from what IP would be very useful.

Eric

Re: Monitoring Tool

PostPosted: Sat Sep 13, 2014 3:42 pm
by jhb50
All that is shown in the debug log.

Re: Monitoring Tool

PostPosted: Sun Sep 14, 2014 1:04 am
by atc98092
jhb50 wrote:All that is shown in the debug log.


But the debug log grows large quickly, and has much more info than they are looking for. I've seen a couple of other DLNA servers that provided a current user activity list, but since the rest of the server didn't work for beans, I didn't try it for long. Can't even remember which others I've tried.

Re: Monitoring Tool

PostPosted: Sun Sep 14, 2014 4:22 am
by jhb50
You can set up the log for what ever you want. I set it to debug (see below) and the exclude all those that I do not want.
If you only want a few message types, I think you can set the log to info and use debug on just the types you want to debug.
You can copy and change the SERVIIO.jar file to .zip then use Express Zip to find the path to the class that displays those messages and add it as below.

You can appreciate there are so many variations of logs that people want that they cannot be preprogrammed, but users could post their log4j customizations.
There is also a tool in the forum to process the log file for the info you want.

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  Log4j Configuration                      -->
<!--                                                            -->
<!--  The levels of logging are TRACE, DEBUG, INFO, WARN, ERROR and FATAL  -->
<!--                                                            -->
<!--  FATAL:    shows messages at a FATAL level only              -->
<!--  ERROR:    Shows messages classified as ERROR and FATAL           -->
<!--  WARNING:    Shows messages classified as WARNING thru FATAL       -->
<!--  INFO:    Shows messages classified as INFO thru FATAL           -->
<!--  DEBUG:    Shows messages classified as DEBUG thru FATAL         -->
<!--  TRACE :    Shows messages classified as TRACE thru FATAL              -->                                                          
<!--                                                            -->
<!-- ===================================================================== -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

    <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
       <param name="Threshold" value="DEBUG"/>
       <param name="Append" value="true" />
      <param name="File" value="${serviio.home}/log/serviio.log" />
      <param name="MaxFileSize" value="10000KB" />
      <param name="MaxBackupIndex" value="3" />   
      <param name="Encoding" value="UTF-8" />   
      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
      </layout>
   </appender>
   
   <category name="org.serviio">
      <priority value="DEBUG"/>
   </category>
     
   <!-- Turn off AddTerm Messages -->
   <category name="org.serviio.library.search.SearchIndexer">
      <priority value="INFO"/>
   </category>

   <!-- Turn off Local Library Messages -->
   <category name="org.serviio.library.local">
      <priority value="INFO"/>
   </category>

   <!-- Debug Online Feeds -->
   <category name="org.serviio.library.online">
      <priority value="DEBUG"/>
   </category>

   <!-- Turn off AccessGroupDAOImpl Messages -->
   <category name="org.serviio.library.dao">
      <priority value="INFO"/>
   </category>

   <!-- Turn off M-Search Messages -->
   <category name="org.serviio.upnp.discovery"> 
      <priority value="ERROR"/>
   </category>

   <!-- Turn off invalid essence Messages -->

   <category name="org.serviio.library.online.metadata.FeedUpdaterThread"> 
      <priority value="INFO"/>
   </category>

   <!-- Turn off Other Messages -->

   <category name="org.serviio.upnp.service.contentdirectory.rest.resources.server.CDSRetrieveMediaServerResource"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.CoverImageRetrievalStrategy"> 
      <priority value="ERROR"/>
   </category>
     
   <category name="org.serviio.delivery.GETMethodProcessor"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.MediaResourceRetrievalStrategy"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.ResourceDeliveryProcessor"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.resource.VideoDeliveryEngine"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.library.search.SearchManager"> 
      <priority value="ERROR"/>
   </category>

   <!-- End of Other Messages -->

   <category name="com.sun.syndication">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.jaudiotagger">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.restlet">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.apache.jcs">
      <priority value="WARN"/>
   </category>
   
   <root>
      <priority value="INFO"/>
      <appender-ref ref="FILE"/>
   </root>   
   
</log4j:configuration>

Re: Monitoring Tool

PostPosted: Sun Sep 14, 2014 10:14 am
by irdet2
OK! Maybe I wasn't clear enough.

I know that all info are available in the log!

But I don't want to go through the log every time!

I was looking for a GUI (perhaps an addition at the Console?) that provides these kind of information.

If something is not available maybe we could built one using freely available tools...

Re: Monitoring Tool

PostPosted: Sun Sep 14, 2014 2:05 pm
by jhb50
Great idea. Go ahead and post in 3rd party tools.