Cloud and Infrastructure Monitoring Software and Tools
Please log in to access your account.
Please register to activate Opsview Monitor
An e-mail will be sent to your registered e-mail address.
Is there a way to search using the name of the custom timeperiod .. to find what services or hosts its attached to for notifications.? I need to be able to find all services using a specific timeperiod.
The easiest way to do this is probably via the Rest API
$ opsview_rest --username=admin --password=initial --pretty --data-format=json GET config/timeperiod | jq '.list | select(.name=="workhours")'
This will list all host and service check periods, as well as notifications periods for the 'workhours' timeperiod.
To get a list of timeperiod names via the Rest API, use:
$ opsview_rest --username=admin --password=initial --pretty --data-format=json GET config/timeperiod | jq '..name'
You may need to install the 'jq' utility first, a command line JSON parser.