×
Back to OP5 Monitor FAQ
API creates objects in etc/timeperiods.cfg
Related to Copied
OP5 Monitor HTTP API creates object entries in the wrong file_id (etc/timeperiods.cfg) instead of the one that is specified for it.
Problem Copied
OP5 Monitor HTTP API creates object entries in the wrong file_id (etc/timeperiods.cfg) instead of the one that is specified for it.
For example, when running the following Curl command:
curl -ik -u 'USER:PASSWORD' -H 'content-type: application/json' -d '{"host_name":"HOSTNAME","template":"default-service","service_description":"test-svc1","check_command":"check_tcp","file_id":"etc/services.cfg","check_command_args":"22"}' https://localhost/api/config/service
The resulting service will be created in etc/timeperiods.cfg instead of the specified file_id of etc/services.cfg.
Possible Cause(s) Copied
The user may not have the FILE permissions assigned to them in Group Rights.
Possible Solution(s) Copied
Check that the API user is part of a group that has the FILE permission enabled. To check, go to Manage > Configure > Group rights. The permission is shown below:
Related Articles Copied
- OP5 Monitor - How OP5 Monitor works in relation to grouprights
- Official Documentation - Group rights required per OP5 Monitor function
- Official Documentation - Configuration API
["Geneos"]
["FAQ"]