NEW: WarrantySync Add-on - Automatic Warranty Lookup for Znuny 7.2.x

Moderator: crythias

Post Reply
stephan14x
Znuny newbie
Posts: 31
Joined: 08 Jan 2014, 08:54
Znuny Version: 2.4 > 3.3 > 6 > 7.2
Real Name: Stephan Lang
Contact:

NEW: WarrantySync Add-on - Automatic Warranty Lookup for Znuny 7.2.x

Post by stephan14x »

Hello everyone,

I've developed a new add-on: The WarrantySync Add-on for automatic warranty lookups directly from the CMDB.

What does the add-on do?

The WarrantySync Add-on automatically retrieves warranty information for IT hardware assets from Dell and Lenovo and stores them directly in your CMDB ConfigItem class attributes. Runs as a daily cron job - zero manual effort.

Supported manufacturers:
  • Dell - TechDirect API v5 (Client ID + Secret, free via techdirect.dell.com)
  • Lenovo - PC Support API v4 (public API, no API key needed!)
What gets stored?
  • Warranty end date + start date
  • Warranty type (e.g. "ProSupport Next Business Day", "5Y Premier Support Plus")
  • Warranty status (Active/Expired - calculated locally)
  • Vendor product name (e.g. "Dell PRECISION 5550")
  • Ship date + ship-to country
Features:
  • Configurable field mapping - Target fields freely selectable, adapts to your CMDB structure
  • Smart recheck - Separate intervals for active/expired warranties
  • Only real changes - New CMDB version only when data actually changes (no version bloat)
  • Expiry notification - Automatically create ticket when warranty expires soon (queue, priority, filter configurable)
  • Duplicate protection - One ticket per asset per end date, new ticket on warranty extension
  • Retry logic - Exponential backoff on API errors (429, 5xx)
  • Dell batch queries - Up to 100 serial numbers per request
  • Out-of-the-box - Standard ITSM "Computer" class already has WarrantyExpirationDate
Usage example:

150 Dell laptops + 50 Lenovo ThinkPads in the CMDB:
1. Enter Dell API credentials
2. Enable Lenovo provider (no key needed)
3. Run sync:

Code: Select all

bin/znuny.Console.pl Maint::WarrantySync::Run --force
Result: All 200 assets have complete warranty data.

Requirements:
  • Znuny 7.2.x
  • ITSM ConfigurationManagement
  • Internet access to manufacturer APIs
Installation:

Code: Select all

bin/znuny.Console.pl Admin::Package::Install /path/to/WarrantySync-7.2.0.opm
Then:
1. Enable feature: Admin > SysConfig > WarrantySync::Enabled
2. Configure API credentials
3. Verify vendor mapping
4. Run first sync

Links: New providers (additional manufacturers) can easily be added - contributions welcome!

License: GPL v3 - Open Source, free, modifications allowed

Feedback and suggestions are welcome! The add-on was created with the help of Claude Code - feel free to ask if you're interested in the development methodology.

Best regards
Stephan Lang
wolkig.it
Started with OTRS 2.4 and used OTRS 6.0 until 2023
Currently building a new Znuny 7.2 system to replace a "leading" SaaS Solution
Post Reply