Back to OP5 Monitor FAQ

API creates objects in etc/timeperiods.cfg

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:

OP5 Monitor - API creates objects in etc/timeperiods.cfg

["Geneos"] ["FAQ"]

Was this topic helpful?