A few weeks ago, while talking with a coworker, he mentioned that the Netskope Enrollment Tokens were about to expire… and I thought… wow, isn’t there an endpoint in the Netskope API that returns information about the tokens (expiration date)?
Turns out there is. So I got to work to see what data the API was returning and to start building the template… and after about 1 hour the template was already created and working. (Later on, I had to make a few small tweaks.)
I’m leaving here the GitHub link with all the related information.
GitHub Link: https://github.com/guillerg86/zabbix...lment%20Tokens
Template Netskope Enrollment Tokens by HTTPS.yaml (v7.0 - 7.4 tested)
Trigger Prototypes
Honeycomb example with days to expiration
Turns out there is. So I got to work to see what data the API was returning and to start building the template… and after about 1 hour the template was already created and working. (Later on, I had to make a few small tweaks.)
I’m leaving here the GitHub link with all the related information.
GitHub Link: https://github.com/guillerg86/zabbix...lment%20Tokens
Template Netskope Enrollment Tokens by HTTPS.yaml (v7.0 - 7.4 tested)
- Uses the Netskope REST API to retrieve enrollment tokens.
- Discovers all available enrollment tokens.
- Creates monitoring items and triggers per token.
- Is designed to minimize API usage while keeping token information up to date.
- Removes the fields auth_token & encrypt_token for security reasons (no need for monitoring)
| /api/v2/enrollment/tokenset | Management (write) |
| EnrollToken is expired | Days to expiration < 0 | Disaster |
| EnrollToken will expire in less than 24h | Days to expiration < 1 | Disaster |
| EnrollToken will expire soon | Days to expiration < {$NETSKOPE.ENROLLTOKEN.DAYS_HIGH} | High |
| EnrollToken will expire soon | Days to expiration < {$NETSKOPE.ENROLLTOKEN.DAYS_AVERAGE} | Average |
| EnrollToken will expire soon | Days to expiration < {$NETSKOPE.ENROLLTOKEN.DAYS_WARN} | Warning |
| EnrollToken will expire soon | Days to expiration < {$NETSKOPE.ENROLLTOKEN.DAYS_INFO} | Info |
| EnrollToken Enforce status changed | Enforce status value changed | Warning |
| EnrollToken Token deleted or No data on last 20m | Token was deleted from Netskope tenant or No data for 20 minutes | Disaster |
Honeycomb example with days to expiration