plexSentry (20160511 Update)

@random.server said:
@smckay79 pushed through an update addressing your issue (now monitors shared channels) and updated the orphan job watcher for sync and optimizer jobs.

@random.server

PERFECT! just tried it and it works great!

Can you explain to me how the transcoding settings work in the backend? the Min Video and Min Audio? I would like to allow people to transcode from a 1.5mb stream and up.

If i want my users to be able to transcode, however only be allowed 1 stream, what settings should I setup for?

Also, can you add a mass update button for hosts with multiple users? Maybe at the top of the column?

also, sidenote, does anyone know how to remove a user’s synced content? I have some users that when i started the script it sent out the notices. Would like to remove the content for them!

I’ve attached my full log. Thanks!

Could this be used alongside PlexPy? I’m happy with how that’s working but would like to utilise some of the features of this also.

@Deano316 yeah not a problem. Unlike PlexPY which uses the logs, PlexSentry uses the web api. So technically it doesn’t even need to be on the same computer, just network accessible.

Quick question. Will this app help me kill users that are sharing? I don’t mind multiple streams from the same IP, but when I get multiple streams from the same user but coming from different IP’s, then I want to disconnect them.

Is this possible?

@foebik it identifies by user name not ip, so yes it’s possible (and designed that way).

I keep getting this error…thinking its something simple

Program has started, loading configuration
Database Updates

Unhandled Exception: System.ArgumentException: Invalid value for key ‘attachdbfilename’.
at System.Data.SqlClient.SqlConnectionString.VerifyLocalHostAndFixup(String& host, Boolean enforceLocalHost, Boolean fixup)
at System.Data.SqlClient.SqlConnectionString…ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, Db
ConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, D
bConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at PlexSentry.ServerVariables.DB_Update()
at PlexSentry.Monitor.Main(String[] args)

@klept0 what’s the DB string you’re using in plexSentry.exe.config?

@random.server said:
@klept0 what’s the DB string you’re using in plexSentry.exe.config?

data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true

@klept0 said:

@random.server said:
@klept0 what’s the DB string you’re using in plexSentry.exe.config?

data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true

How would it know what it know what your data directory is? Is it in the path? you might just want to skip the shortcut and spell it out,

@random.server

I have been looking at this for hours and my brain just isnt grasping - (edited out as it was a table I had here)

I can do a join.me session if you have a free minute - if not I’ll tinker with it in the morning.

edit 2: still havent figured it out but its a new day of tinkering

Page shows the basic layout but the rest is blank - database.plex.aspx is showing in red when checking console so that is my next guess

I’ve managed to get the right DB file seen but now its giving me this error:

Program has started, loading configuration
Database Updates
Retrieving authorization token from plex.tv
Retrieving server info from local server
Updating database with local server info
Updating shared users list from plex.tv to database
Updating shared users list from plex.tv to database
2016-01-06 18:03:17- Starting timer to check status at a interval of 5 seconds
Accessing user list from database
Checking for currently connected clients
Connected clients-: 0
Checking for currently playing sessions
Current sessions-: 1
Transcode Sessions -:s7qo7ciy5yqoajor
Checking for previous sessions
Previous Sessions -: 0
Error when checking user sessions
2016-01-06 18:03:23- Checking current syncs
Error when checking sync sessions
Checking for orphaned transcode sessions
Current sessions (sync and play) -: 1
s7qo7ciy5yqoajor
Querying current sync jobs -:
Sync jobs in queue -: 0
Querying active sessions in database -:
s7qo7ciy5yqoajor
2016-01-06 18:03:29- Starting timer to check status at a interval of 5 seconds

Edit: Seems I cant get the right connection string to get the info to show up in the webpage.

Hello,

It’s possible to make a little tuto for installation please ? (Windows server 2008 and SQL Server)

I would like to see this available for Linux without having to run a VM to get it working. And I know I can set up on a remote Windows machine, but the NAS I have Plex on has all of the stuff Plex related. I would like to have this installed on that same device, so I don’t have to have a laptop or desktop dedicated to this one app always on.

Seems rather foolish to have more than a single device to support the functionality for Plex that should be in the main app itself, IMO.

@random.server quick one for you. Say all I want is transcoded sessions, how can I kill everything except 3mbps transcoded sessions?

Also, is there a way to remove all shared sections for offenders except say 1 shared section. My plan is to have a message in there about having multiple streams running or sharing of account info.

Thanks.

@random.server

Got everything working. Looks and works good! :slight_smile:

1 question though. Is there a possibility to change the contents of the email sended out?
Would like to translate it to dutch for instance.

Tnx.

@tedeling , give me a couple of days and I’ll take care of that. @smckay79 there’s not enough info from the web api to see the transcode bit rate, so I can’t do anything about it. I’ve look at removing libraries on the fly and have some code ready, I’ll take another look this weekend.

@random.server said:
@tedeling , give me a couple of days and I’ll take care of that.

Great! Tnx for that.

Another question, the log file… does it automatically clean itself up ergo, does is reduce itself in size? or is this someting that has to be done manually. Since it’s size is 16MB in 1 day

@tedeling dammit, I’ll take care of that too