SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV EPG Service
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV EPG Service Discussion related to the SageTV EPG Service used within SageTV. Questions about service area coverage, channel lineups, EPG listings, XMLTV, or anything else related to the service or programming guide data for SageTV should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-08-2015, 05:48 PM
bigbill's Avatar
bigbill bigbill is offline
Sage Expert
 
Join Date: Dec 2006
Location: San Diego, California
Posts: 510
Is there a log where we can monitor EPG updates and errors?

I'm looking for a way to find missing EPG data instead of finding it when a show doesn't record like I do now. Just seeing the note about code changes made today to the EPG service I started thinking about this issue again. How do I monitor it. If there is a log I can send it to Splunk and configure a dashboard to keep track of it. Or write a script looking for keywords and send a text etc.

Ideas? It would be nice if it just showed like other system messages on the top of the screen. Thanks, Bill
__________________
Home DVR: SageTV v9.2.6(64)
i7-6700 3.4ghz, 8GB RAM, Win10 Pro, 1@ SSD +1@6TB WD Blue, 1 Quad HDHR, ( OTA Winegard HD8200U, CM4221HD), 1@ STP-HD200, 1@ Nvidia Shield , 1 @ Nvidia Shield new round version, 70" & 55" Sony's
RV DVR: 2@SageTV v9.2.6, NUC8i5BEK 16GB, SS980Pro NVMe, 5TB Passport, 1@olderNUC, 2 Dual HDHR, , Winegard BatWing, 40", 32", 28" Sony's, Max Transit
Reply With Quote
  #2  
Old 07-08-2015, 07:00 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
EPG events are logged in the sagetv debug log sagetv_0.txt, along with a ton of other things.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #3  
Old 07-09-2015, 07:31 AM
Mark57's Avatar
Mark57 Mark57 is offline
Sage Advanced User
 
Join Date: Sep 2007
Location: OKC
Posts: 113
Lots of possibilities. See my post
http://forums.sagetv.com/forums/show...0&postcount=41

as a starting place to build from. I'm using UNIX utils inside Windows 7. Once you have the live tail results working you can pipe them into a grep search for the specific things you're looking for. You can pipe and append all of that into another file which you can monitor the same way creating a dashboard of sorts. With these tools, only your imagination is the limit.
__________________
Mark
____________________
Server: Scratch built server, 16GB RAM, Nvida GeForce 8600 GTS, 6 HD Homeruns, 32 TB Storage, Windoz 10 64 bit, Sage 64 bit 9.2.1, Sage HD-100 & 200 Extenders
Reply With Quote
  #4  
Old 07-11-2015, 11:32 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
If you have the Web Interface, you can do EPG Search for no data

That will show.

If you have SJQ, I have the following which runs to check:

Code:
def CHECK_FAVS = false
def CHECK_CHANS = true
def POST_SYS_MSG = true // If false, just dump the output to stdout
def POST_INFO_MSG = true // If true, post Info msg so you know the script ran. POST_SYS_MSG must be true for this to have any effect
def DaysToCheck = 7    
def now = System.currentTimeMillis()
def output = new StringBuilder()

if(CHECK_FAVS)
    FavoriteAPI.GetFavorites().each {
        if(Database.FilterByRange(FavoriteAPI.GetFavoriteAirings(it), 'GetAiringStartTime', now, Long.MAX_VALUE, true).size() == 0) {
            if(!output.length())
                output.append('The following favourites have no upcoming airings:\n\n')
            output.append("${FavoriteAPI.GetFavoriteDescription(it)}\n")
        }
    }

if(CHECK_CHANS) {
    def preambleWritten = false
    def chans = new HashSet<String>()
    Database.SearchSelectedExactFields('No Data', true, true, false, false, false, false, false, false, false, false, 'T').each {
        def start = AiringAPI.GetAiringStartTime(it)
        if(start > now && start <= now + (86400000L * DaysToCheck) ) {
            def name = AiringAPI.GetAiringChannelName(it)
            def ChannelNumber = AiringAPI.GetAiringChannelNumber(it)
                        if(chans.add(name)) {
                if(!preambleWritten) {
                    output.append("\nThe following channels are missing data within the next $DaysToCheck Days:\n")
                    preambleWritten = true
                }
                output.append("$ChannelNumber - $name\n")
                
            }
        }
    }
}

if(output.length() && !POST_SYS_MSG) {
    println output
} else {
    if(output.length()) {
       SystemMessageAPI.PostSystemMessage(1204, 3, output.toString(), null)
    } else {
       if ( POST_INFO_MSG ) {
          output.append("\nNo channels are missing data within the next $DaysToCheck Days:\n")
          SystemMessageAPI.PostSystemMessage(1204, 1, output.toString(), null)
       }
    }
}
Reply With Quote
  #5  
Old 07-11-2015, 12:43 PM
bigbill's Avatar
bigbill bigbill is offline
Sage Expert
 
Join Date: Dec 2006
Location: San Diego, California
Posts: 510
Quote:
Originally Posted by Fuzzy View Post
EPG events are logged in the sagetv debug log sagetv_0.txt, along with a ton of other things.
Excellent, just imported that file to be read by my Splunk indexer... Now to figure out what to alert on.. Should be interesting as the EPG seems to be working correctly. Anyone know what string to look for when it fails?

__________________
Home DVR: SageTV v9.2.6(64)
i7-6700 3.4ghz, 8GB RAM, Win10 Pro, 1@ SSD +1@6TB WD Blue, 1 Quad HDHR, ( OTA Winegard HD8200U, CM4221HD), 1@ STP-HD200, 1@ Nvidia Shield , 1 @ Nvidia Shield new round version, 70" & 55" Sony's
RV DVR: 2@SageTV v9.2.6, NUC8i5BEK 16GB, SS980Pro NVMe, 5TB Passport, 1@olderNUC, 2 Dual HDHR, , Winegard BatWing, 40", 32", 28" Sony's, Max Transit
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
P2 Updates sflamm Phoenix 33 10-07-2013 02:33 PM
How Do I Correct Genre Errors and Fanart Location Errors ThePaladinTech Batch Metadata Tools 3 05-25-2010 12:26 PM
12. Added support for using the Placeshifter on any monitor in a multiple monitor sys chrysek SageTV Placeshifter 5 06-12-2006 09:38 AM
So what updates do I need? ry12a General Discussion 7 01-22-2004 08:51 AM


All times are GMT -6. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.