Skip to content

yaroslaff/okerrclient

Repository files navigation

okerrclient

okerrclient is old client for okerr network/host monitoring system (okerr-dev git repo).

Most (especially new) users should not need to use this okerrclient package and should use okerrupdate client instead (it's much newer, redesigned and simpler to use) but okerrclient has features to use okerr API which is missed in small okerrupdate utilities.

Example usage

assume your project has textid 'mytextid'

simple indicator update create (minimalistic)

okerrclient -n delme -s OK 

more complex example

okerrclient -i mytextid -n delme -s OK -S bzbzbz -u http://dev.okerr.com/okerr -m "numerical|minlim=0|maxlim=100" -v

run API queries

configure textid=mytextid and api-key = your_project_okerr_api_key in /etc/okerrclient.conf.

okerrclient --api-indicators
okerrclient --api-indicator --name MyIndicator
okerrclient --api-filter sslcert '!policy:Default'
okerrclient --name MyIndicator --api-set url=http://google.com/ retest=1 

Or use in script (set policy 'Daily' for all 'whois' indicator with policy 'Default'):

for i in `okerrclient --api-filter whois policy:Default`; 
do 
    echo fix $i; 
    okerrclient -i okerr --name $i --api-set policy=Daily; 
done

Other okerr resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published