netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Support for support contracts

Open netman2048 opened this issue 10 years ago • 41 comments

It would be useful for the DCIM portion of Netbox to be able to add support contract info to a device. The contract number, SLA (4 hours, NBD, etc) term start, term end, alarms (dashboard and email) when a contract is getting close to expiring, etc.

netman2048 avatar Jul 02 '16 12:07 netman2048

This would really be a great addition to the already existing feature set.

shakalandy avatar Jul 05 '16 11:07 shakalandy

This should be a one->many relationship, and not just a set of fields on the device. If you do recurring support contracts you can have multiple contracts associated with a given device. Bonus points for including the cost of said contract for said device (leading towards a TCO calculation for a device)

peelman avatar Jul 05 '16 20:07 peelman

Proposed Fields for SupportAgreement:

  • devices (many-to-many table)
  • description (eg. smartNET, JCore Plus, etc)
  • service_level_agreement (freeform)
  • issue_date
  • expiration_date
  • issued_by (the device manufacturer might not be the one warrantying a device)
  • registered_to (ever have a company you work for change names? know who the warranty-er thinks owns the device is useful)
  • agreement_identifier (usually a number, but could be alphanumeric)
  • notes (long-form, for those times when even custom fields can't cut it)
  • cost

Anybody want to add to that list or debate any of those?

Some considered fields that require other things NetBox doesn't have or do yet:

  • Purchase Order Number (or some other accounting-type reference)
  • Attachments (maybe you want to attach a PDF of paperwork, etc)
  • Company reference instead of simple issued_by text field (see my comment here)

peelman avatar Jul 06 '16 22:07 peelman

Recommendations....

Duration and expiration are probably redundant? Why not just have a "start_date" and "end_date" ? (replacing issue_date with start_date)

Response_time should be "sla".

Also instead of "registered_to" you can probably FK that to Vendors / providers?

rblayzor avatar Jul 06 '16 22:07 rblayzor

SLA could include combinations of the following depending on the vendor:

  • Service Level:
    • onsite
    • remote support and parts/RMA
    • remote software support without parts/RMA
  • Response Window 1
    • Next Business Day
    • Same Business Day
  • Response Window 2
    • 24x7 including holidays
    • 24x5 including holidays
    • 24x5 no holidays
  • Response time
    • 4 hours
    • 2 hours
    • x hours

For duration vs end date, I would recommend a current term end date with some sort of support event journaled to the record that would log previous support events changing service levels, renewals, etc.

Given how support contracts are often setup in groups, we definitely need a way to link a master contract to to multiple devices that inherit the SLAs and etc.

ryanmerolle avatar Jul 06 '16 23:07 ryanmerolle

@rblayzor I think I actually crossed some wires on duration.

i avoid acronyms in model names, but the SLA suggestion is noted. @ryanmerolle has nice suggestions there. SLA has a lot of considerations

We don't have Vendors/Providers yet. See my third bullet point under "considered field" (and the linked comment).

He also makes a good point about applying to groups of objects instead of the singular.

peelman avatar Jul 06 '16 23:07 peelman

@ryanmerolle After a little more looking and poking this morning, I don't think it feasible to keep creating buckets. Hell, no two warranty offerings from a company are consistent enough to make it feasible, let alone trying to shoehorn options provided by every vendor.

I currently leaning towards a free-form field with some auto-complete javascript that suggests previously entered answers.

peelman avatar Jul 07 '16 13:07 peelman

Perhaps it's getting over complicated and should be more simplified and just add a couple of fields to the actual device like; "warranty_end". Warranty could be anything; mfg warranty, service agreement, etc. It would just be nice to pull a report on all your devices for anything expiring warranty by X. I think that would be incredibly helpful.

rblayzor avatar Jul 07 '16 14:07 rblayzor

This should be a one->many relationship, and not just a set of fields on the device. If you do recurring support contracts you can have multiple contracts associated with a given device. Bonus points for including the cost of said contract for said device (leading towards a TCO calculation for a device)

peelman avatar Jul 07 '16 14:07 peelman

I'm not sure this is a great fit for NetBox. Other than pointing to an installed device, I don't see much overlap with NetBox data. I could be missing something, but it seems like all of the data defined above could easily be maintained in a separate system and linked to in a custom field within NetBox (or alternatively linked to in the reverse direction using a device name).

jeremystretch avatar Jul 07 '16 19:07 jeremystretch

I think it would be a great fit in a simple form. (not getting overly complex). It seems like Netbox has all the makings of an "Asset Manager" as well. There is a lot of overlapping data that appears in Netbox compared to what would be provided in just a simple asset management system; with the exception of just a few minor missing fields. Obviously I don't think you want to bog things down with adding too many fields and trying to solve all the worlds problems.

Another option may be to just explore adding custom fields in database tables that can be represented and changed, much the way RT can do that with tickets.

rblayzor avatar Jul 07 '16 19:07 rblayzor

I just want to second rblayzor in saying that I think the DCIM portion would be greatly enhanced by a many to one relationship with a support provider (much like you have with circuit providers). doing it in the notes field or some other field (without a parent / child relationship) would be a huge pain when you need to change the support details across many devices.

dswebbthg avatar Jul 20 '16 14:07 dswebbthg

@jeremystretch, yea my view is that this would help your ops teams with understanding what is under support when incidents happen. It also allows you to pull up support contact and SLA details linked to a device. It creates slippery slope into IT Expense Mgmt and more expansive DCIM/Assest Management.

ryanmerolle avatar Jul 20 '16 15:07 ryanmerolle

I personally don't think I would need anything horribly complicated. Like I said in the initial post, contract number, SLA type, begin and end dates, and the ability to set a notification X days from expiration of the contract. I wouldn't care if it was baked in or module based.

netman2048 avatar Jul 20 '16 18:07 netman2048

Maybe they could add hooks for a plugin system so you could write this as a separate module?

rfdrake avatar Jul 30 '16 05:07 rfdrake

File Attachments are a must for this in my opinion. Looking forward to developments for this issue.

alexjhart avatar Jan 09 '17 19:01 alexjhart

The one place where direct integration with DCIM makes particular sense is spares inventory (related: #198). You have a spare device and it has a manufacturer, device type, serial number, an asset tag etc; and it's something that you want to be able to move from a spares pile into live service and vice versa. That requires tight integration with DCIM.

However, I can sympathise with the view that support contracts should be a separate application. If so, I would still like it to be something which can integrate easily with Netbox, for example accessed using the same authentication.

Netbox is already very modular, with /ipam/, /dcim/ etc, so explicit support for external plugin modules would be great. They would at least need to hook into the top-level menu bar.

Plugin modules should be able to maintain their own database tables, without stomping on the migrations mechanism for the core.

candlerb avatar Feb 07 '17 10:02 candlerb

Could simple PO # and PO data fields be added, as an interim for someone creating a highly featured support contract system?

djzort avatar Feb 15 '17 00:02 djzort

This needs a firm outline of proposed models and views before it can get anywhere. Running code isn't necessary, but we need at least a mock up that people can comment on and (hopefully) reach consensus.

jeremystretch avatar Feb 15 '17 01:02 jeremystretch

custom metadata

The most general case to be able to add custom meta data (key value pairs) for each device type. I whipped up a quick screen mockup in the gimp based on the django admin interface (linked above) of the device type page. In it, you can add add the key "name" and the value "type". Which i suggest as text, currency, integer - other obvious ones are time, date, datetime, etc. It could all just be text, but a little overlay wouldnt hurt.

djzort avatar Feb 15 '17 03:02 djzort