Scope-IT / marksman

Windows agent for Snipe-IT asset management system
Apache License 2.0
132 stars 23 forks source link

[Question] Can anyone confirm Marksman works with version 5.x of SnipeIT? #37

Open dwildey opened 3 years ago

dwildey commented 3 years ago

Can anyone confirm Marksman works with version 5.x of SnipeIT?

emike09 commented 3 years ago

I don't think it does, I actually forgot about Marksman since we run it in the background on login. I just checked it and I get the following error: Unhandled Exception: Newtonsoft.Json.JsonReaderException: Could not convert string to boolean: etc

dwildey commented 3 years ago

Thanks for the info.

icolombage commented 3 years ago

Yup can confirm this no longer work on 5.x. We ran into the same issue. @emike09/ @dwildey Did you find a solution for this?

dwildey commented 3 years ago

@icolombage Have not upgraded yet due to this fact nor have I had time to test. However, we need an agent so will have to figure something out.

rickardhildingsson commented 3 years ago

Any update ?

ReticentRobot commented 3 years ago

Disclaimer: I am not a programmer

I've found that if you change line 45 in Category.cs in the SnipeSharp project from:

public bool eula { get; set; }

to

public string eula { get; set; }

that this will get the agent working on 5.x

FRP974 commented 3 years ago

Disclaimer: I am not a programmer

I've found that if you change line 45 in Category.cs in the SnipeSharp project from:

public bool eula { get; set; }

to

public string eula { get; set; }

that this will get the agent working on 5.x

Hello, I can't find the file "Category.cs". Can you confirm its location?

ReticentRobot commented 3 years ago

https://github.com/Scope-IT/SnipeSharp/blob/master/SnipeSharp/Endpoints/Models/Category.cs

You'll then need to build the SnipeSharp project, and then the marksman project (SnipeSharp is a dependency, it should bring it in to the marksman project automatically) - as per the Developer instructions here: https://github.com/Scope-IT/marksman

ReticentRobot commented 3 years ago

I haven't been able to get in touch with the developer to see about getting this working again, so have started my own version of the project. You can download it here if you are interested: https://github.com/ReticentRobot/SnipeAgent

dwildey commented 3 years ago

@ReticentRobot Nice Job! I hadn't had a chance to look but suspected it was SnipeSharp since that's the foundation. Glad you were able to take the time and recompile. I am sure others will appreciate your efforts as much as I do.

ReticentRobot commented 3 years ago

Thanks! I've been meaning to pick up a programming project to get back into learning again, so I guess this is as good as any :). Next up is to try to recreate the agent as a windows service and collect the API key, base URL, Location, and Company during install so that manual editing of the config file is no longer needed.

eddy445 commented 1 year ago

@ReticentRobot thanks for the solution, it works with snipe-it version 6

vantzs commented 1 year ago

@ReticentRobot Do you still have your compiled version of this available for download?

Schnatsu commented 1 year ago

@ReticentRobot Greetings! Is there any chance to get your compiled version still? It seems the Error is still an issue.

ReticentRobot commented 1 year ago

I think I have it somewhere - I will try to get this back up today

ReticentRobot commented 1 year ago

Does anyone happen to know the filename? Not coming up with anything obvious on my initial search.

Apologies for deleting, didn't realize it was still in use. If I can't find it, I can probably get it redone and rebuilt soon.

jarrydstan commented 1 year ago

Does anyone happen to know the filename? Not coming up with anything obvious on my initial search.

Apologies for deleting, didn't realize it was still in use. If I can't find it, I can probably get it redone and rebuilt soon.

Sir, if you can get this working again, I would be very grateful! Seems that the snipe-it plugin list even mentions your program but it goes to a 404 :(

ReticentRobot commented 1 year ago

I've opened a ticket to see if GitHub can restore this repository

ReticentRobot commented 9 months ago

Just noting here that GitHub was able to restore it. Apologies for not posting that news earlier, I posted elsewhere but forgot about this thread.

jarrydstan commented 9 months ago

Just noting here that GitHub was able to restore it. Apologies for not posting that news earlier, I posted elsewhere but forgot about this thread.

Will deploy today and test, thank you!!