I’ve also created the json file to allow DataGerry to run the script, however i am getting some errors which do not provide much info e.g.
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][WARNING ] — unexpected char ‘“’ at 9 (exporter_base.py)
Nov 8 17:25:29 cmdbsrv datagerry: [2020-11-08 17:25:29][ERROR ] — Extra data: line 1 column 18 (char 17) (service.py)
Hello,
True, i have the same error for a long time ago and it is from exportd jobs
example:
Errors
[2021-02-23 10:58:27][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:30][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:30][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:31][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:31][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:32][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:32][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:33][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:33][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:34][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:58:52][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:07][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:07][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:13][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:18][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:22][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:27][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:27][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:36][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:36][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:55][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 10:59:55][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:06][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:06][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:06][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:12][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:15][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:22][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:26][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:36][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:42][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:43][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:43][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:00:47][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:01:06][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:01:19][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:01:19][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:01:23][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:01:23][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
[2021-02-23 11:01:34][ERROR ] — type object argument after ** must be a mapping, not NoneType (template_data.py)
Hello @kbetsis ,
As far as I know, Datagerry is used to provide data, e.g. for a script, not for its execution.
The script, if it has the appropriate data, can run a task in the datagerry if has login password/ token and job is set for PULL and user has rights job.run.
For tool OpenNMS is in tab Destinations:
I know the OpenNMS workflow included in DataGerry, however it does not offer the capability to create requisitions. Hence the script approach.
The “onmsctl” script offers the capability to incorporate the workflow that we want to cover e.g.
Create requisitions
Include requisitions with devices attached to that organization.
I would suggest to treat this as a normal script exportd.
Is there a reason why the script is not run from DataGerry?
Hello,
i’m not sure
maybe try change in /etc/passwd from /sbin/nologin to /bin/bash
try log on user datagerry in system, move to that path and do it this script from system.
Maybe this say You something?
No, it gets clear text input.
I think I might need to create a wrapper as to extract the JSON values once this fails due to the input and the authorization is fixed…
The parameters are needed as to guide the script to which remote server to connect to.