Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up #17

Open
dyard opened this issue Oct 23, 2013 · 16 comments
Open

Set up #17

dyard opened this issue Oct 23, 2013 · 16 comments

Comments

@dyard
Copy link

dyard commented Oct 23, 2013

Is there any tutorials on this set up. I have spent a couple days on this now trying to get it configured. I did the build in Visual Studio 2012 and then used IIS manager to deploy. Or anything that can point me in the right direction as in steps to take? Installation says deploy as is so does that mean the configs we don't need to modify.

@cr1
Copy link
Contributor

cr1 commented Oct 23, 2013

You have to modify the configs in the /Opserver/Config/ folder, otherwise the application will throw an error when you build. After you modify the configs (and rename to .json), stop/restart IIS express and re-build. That's all you need to do.

@dyard
Copy link
Author

dyard commented Oct 23, 2013

do I need to modify all the configs? I just tried that after I did a rebuild. Also I'm new to this do I do a build on opserver or just ops server.core? I did Opserver after loading the sln. Thanks

@NickCraver
Copy link
Member

@dyard you should only use the config sections you actually want to use, e.g. if only monitoring SQL then just use that one, renaming it from .json.example to just .json. You edit that config to be your servers (Stack Exchange servers/services are the examples) and then you're good to go.

The Opserver project uses/references Opserver.Core, so building Opserver will do everything you need. You can also run the project from Cassini (the built-in Visual Studio test web server...or IIS express) when testing if you want.

@cr1
Copy link
Contributor

cr1 commented Oct 24, 2013

Nick - any thoughts on adding a default NullSecurityProvider and letting the app run with a default SecuritySettings.config, so it can display instructions for configuration / setup, but not allow login until the config is changed? I can tackle this if you want, and it might help with some of the issues being raised.

@dyard
Copy link
Author

dyard commented Oct 24, 2013

That would be great. I downloaded the IIS express but I have IIS manager already up. Ive spent about 4 hours on this total now and stumped. Thanks

@dyard
Copy link
Author

dyard commented Oct 24, 2013

when I'm in IIS I convert it to a application? I couldn't find an option to deploy in VS or IIS manager. I was trying to demo this to my manager. Thanks for your help

@cr1
Copy link
Contributor

cr1 commented Oct 24, 2013

I would just use either IIS Express or Visual Studio Development Server to run it. Right click on the Opserver project, go to Properties, Web, then use one of the two. No setup required.

@dyard
Copy link
Author

dyard commented Oct 24, 2013

Thanks I tried that and rebuild I get this Error 4 The name 'Helpers' does not exist in the current context c:\Program Files\Opserver-master\Opserver\Views\Elastic\Node.cshtml 180 Opserver

@cr1
Copy link
Contributor

cr1 commented Oct 25, 2013

Are you trying to deploy/publish the solution still? If you're in VS 2012 and you have IIS Express or the development server setup, all you should need to do is hit the play (debug) button or Start without debugging and it will launch

@dyard
Copy link
Author

dyard commented Oct 25, 2013

Yes, I have tried everything that i can think of as I am new to this type of set up. Ill try for a few more days. Its not looking good. It would be great if there was some examples or some type of steps. As for a snap for installation, for me it is not. Its because I haven't done this before. I attended Brent Ozar's class last week where I saw a demo of the tool looks great. I would like to have it configured, Im just not sure where or what I'm missing or have configured incorrectly. Thanks

@dyard
Copy link
Author

dyard commented Nov 6, 2013

Nick can we try this? Thanks
Your post
Nick - any thoughts on adding a default NullSecurityProvider and letting the app run with a default SecuritySettings.config, so it can display instructions for configuration / setup, but not allow login until the config is changed? I can tackle this if you want, and it might help with some of the issues being raised.

@NickCraver
Copy link
Member

@dyard By default if no security is preset, everyone gets read-only. Check out the /Views/Shared/NoConfiguration.cshtml - this is what should display on first build with no configs detected. If you want to expand on this I'm more than happy to take a pull request. I also need to add a simple msbuild call that doesn't involve visual studio at all, I just won't have time until next week - there's a lot going on at Stack Exchange right now.

@dyard
Copy link
Author

dyard commented Nov 7, 2013

Thanks let me know when you free up.

@dansorensen
Copy link

While not an official tutorial, I have blogged screenshots of my experience to build and configure the project for SQL monitoring at http://dannysorensen.azurewebsites.net/2013/11/using-stack-exchanges-opserver-step-2-sql-configuration/ It may cover some of these questions.

@waynebrantley
Copy link

@dansorensen I actually set this up and got it working much like you did. I have the SQL tab working and it is very nice. I cannot get anything to show up on the dashboard (I am only trying to use the SQL piece)

Did you have any success getting anything from SQL to appear on dashboard?

@dyard
Copy link
Author

dyard commented Feb 17, 2014

No sorry I could never figure out how to set it up

AlexSikilinda pushed a commit to AlexSikilinda/Opserver that referenced this issue Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants