From eda9cd2208fe5bb451539f92ef73859c9857196f Mon Sep 17 00:00:00 2001 From: cproudlock Date: Thu, 11 Dec 2025 17:14:56 -0500 Subject: [PATCH] Update docs: fix counts, add reference tables, document Zabbix API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix table count (29→35) and view count (23→26) in QUICK_REFERENCE.md - Fix pc_dnc_config → dncconfig in DualPath PCs SQL example - Add 8 additional reference/lookup tables to documentation - Document Zabbix API URL and token in CLAUDE.md - Add Gitea section placeholder 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 13 +++++++++++++ docs/QUICK_REFERENCE.md | 17 ++++++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index e99d19c..2521484 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -150,6 +150,19 @@ PCs are in the machines table, identified by: |------|---------| | `printerlookup.asp?ip=x.x.x.x` | Zabbix printer lookup by IP/FQDN | +### Zabbix API + +- **URL:** `http://10.48.130.113:8080/api_jsonrpc.php` +- **Token:** `9e60b0544ec77131d94825eaa2f3f1645335539361fd33644aeb8326697aa48d` +- **Config File:** `includes/zabbix.asp` +- **Used For:** Printer supply levels, host monitoring + +### Gitea (Version Control) + +- **URL:** `http://localhost:3000` +- **API Token:** *(add token here if needed)* +- **Repo:** `cproudlock/shopdb` + ## Quick Reference ### Start Dev Environment diff --git a/docs/QUICK_REFERENCE.md b/docs/QUICK_REFERENCE.md index 22733a6..8681daa 100644 --- a/docs/QUICK_REFERENCE.md +++ b/docs/QUICK_REFERENCE.md @@ -17,8 +17,8 @@ | Item | Count | Notes | |------|-------|-------| -| **Tables** | 29 | Base tables (actual data) | -| **Views** | 23 | Computed/joined data | +| **Tables** | 35 | Base tables (actual data) | +| **Views** | 26 | Computed/joined data | | **PCs** | 242 | Active PCs in inventory | | **Machines** | 256 | CNC machines and locations | | **Printers** | 40 | Network printers | @@ -109,11 +109,22 @@ warranties (warrantyid, machineid, enddate, servicelevel, status, daysremaining) ### Reference Data ```sql +-- Core reference tables models (modelnumberid, modelnumber, vendorid) vendors (vendorid, vendor) operatingsystems (osid, osname) supportteams (supportteamid, supportteam) relationshiptypes (relationshiptypeid, relationshiptype) + +-- Additional lookup tables +machinestatus (machinestatusid, machinestatus) -- TBD, In Use, Returned, etc. +notificationtypes (notificationtypeid, typename) -- Awareness, Change, Incident +comstypes (comstypeid, typename) -- IP, Serial, Network_Interface +subnettypes (subnettypeid, subnettypename) -- Subnet type classifications +topics (topicid, topic) -- KB topic categories +appowners (appownerid, appowner) -- Application ownership +appversions (appversionid, applicationid, version) -- Application version tracking +businessunits (businessunitid, businessunit) -- Business unit classifications ``` --- @@ -488,7 +499,7 @@ LIMIT 20; ```sql SELECT m.hostname, dnc.dualpath_enabled, dnc.path1_name, dnc.path2_name FROM machines m -JOIN pc_dnc_config dnc ON m.machineid = dnc.machineid +JOIN dncconfig dnc ON m.machineid = dnc.machineid WHERE dnc.dualpath_enabled = 1 AND m.pctypeid IS NOT NULL; ```