Use of this software is subject to important terms and conditions as set forth in the License file
Zendesk gridX Health Check is a Zendesk Support App that allows running predefined tests and plausibility checks against gridBoxes in the field.
gridX provides a suite of health checks for gridBoxes via API. We use it internally within our support team to help them diagnose issues and mis-configuration of devices in the field more efficiently.
New checks are made available on a regular basis to cover additional scenarios as they become know. These checks will be available in Zendesk through this app automatically without having to update this app.
The app takes a gridBox serial number as input and runs all available checks against it. It reports the result along with a description of checks and some metadata about failures. If the serial number is available in a custom field, it uses it automatically.
That's it.
To install the App into your Zendesk instance, proceed as follows.
-
Make sure you have a policy group having the
HealthCheckRequest
permission set up. Copy the group ID from the URL. -
Create an organizational token for gridX API access as described in the gridX developer community and note it down.
curl -X POST "https://api.gridx.de/account/tokens" \ -H 'accept: application/vnd.gridx.v2+json'\ -H 'content-type: application/json' \ -d '{"description":"gridX Zendesk Token","expiresAt":"2025-03-18T17:37:59Z","email":"john@doe.com","groups":["<group id from step 1>"]}'
-
Get the latest release from this repository and download the
.zip
file -
Open your Zendesk admin console (
your-instance.zendesk.xom/admin/apps-integrations/apps/support-apps
) -
Enter
gridX Health Check
as name, select the.zip
file downloaded before andUpload
it -
On the configuration screen, enter the following, then click
Install
- The API token created previously
- Whether you want to see additional debug information in the browser's development console
- Optionally, the ID of the custom field holding the gridBox serial number, if you have it set up in your Zendesk instance.
- Role and group descriptions, if you want to restrict access
-
From the
Private Apps
tab,Install
the app to make it available.
To update, ...
- Grab the new release from this repository.
- Select
Update
from the existing App's context menu. - Upload the new release's
.zip
archive. - The configuration does not need to be update usually, it'S persistent across updates.
Feel free to fork this repository and change it as you see fit. If you add improvements you think are beneficial for others, too: We can't wait for your pull requests!
zcli
, the Zendesk development CLI toolNode.js
>= 18.12.1- Access to a Zendesk instance with permissions to install apps
For additional details on building Zendesk Apps, please refer to the scaffold repository and the official documentation.
To serve the app to your Zendesk instance with ?zcli_apps=true
, follow the steps below:
nvm use
- use the the proper node version for the development environmentnpm install
- install dependenciesnpm run dev
- in one terminal, start the dev servernpm run start
- in a second terminal, expose the app so it can be displayed in Zendesk
Now open a ticket in Zendesk and append ?zcli_apps=true
to the URL. The app will display as support app now.
Note: Running the
npm run dev
command enables Hot Module Replacement (HMR), which allows you to see the changes you make to your code immediately without having to manually refresh the page. This greatly enhances the development experience.
To build an package the app for upload, run the following in the project root.
zcli apps:bump -m src
npm run build
RELEASE_VERSION=$(jq -r ".version" src/manifest.json)
zcli apps:package dist
mv dist/tmp/*.zip dist/tmp/zendesk-gridx-health-check_$RELEASE_VERSION.zip
This will create a zip file ready to upload as a Zendesk Support App in dist/tmp
.
This app uses the Zendesk integration framework. Here are some pointers to their (and our) documentation.
- gridX Developer Community and API documentation
- Making calls against the gridX API and using API authentication tokens.
- Zendesk Garden, their design system/widget library
- A getting started guide for React based Zendesk support apps
- A guide on making API calls from Zendesk apps and how their secure proxy works