Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Lopez committed Dec 22, 2015
1 parent bba7696 commit ef28d30
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.rst
Expand Up @@ -266,8 +266,10 @@ then the request would look like:

::

curl "{adapter_endpoint}/check_load?id={myhostname}&type=host" -s -S --header 'Content-Type: text/plain' -X POST -d @- <<-EOF
OK - load average: 5.00, 7.01, 7.05|load1=5.000;10.000;10.000;0; load5=7.010;15.000;15.000;0; load15=7.050;30.000;30.000;0;
curl "{adapter_endpoint}/check_load?id={myhostname}&type=host" -s -S
--header 'Content-Type: text/plain' -X POST -d @- <<-EOF
OK - load average: 5.00, 7.01, 7.05|load1=5.000;10.000;10.000;0;
load5=7.010;15.000;15.000;0; load15=7.050;30.000;30.000;0;
EOF

This would result in an invocation to Context Broker updating the context
Expand Down
11 changes: 8 additions & 3 deletions doc/manuals/admin/README.rst
Expand Up @@ -198,16 +198,21 @@ data:
a new probe execution detected by the *collector*::

$ cat /var/log/nagios/nagios.log
[1439283831] lvl=INFO | trans=rdPmJ/uHE62a | comp=fiware-monitoring-ngsi-event-broker | op=NGSIAdapter | msg=Request sent to http://host:1337/check_xxx?id=xxx&type=host
[1439283831] lvl=INFO | trans=rdPmJ/uHE62a |
comp=fiware-monitoring-ngsi-event-broker | op=NGSIAdapter |
msg=Request sent to http://host:1337/check_xxx?id=xxx&type=host


- Check NGSI Adapter logs for incoming requests with raw data, and for the
corresponding updateContext() request to Context Broker::

$ cat /var/log/ngsi_adapter/ngsi_adapter.log
time=... | lvl=INFO | trans=rdPmJ/uHE62a | op=POST | msg=Request on resource /check_xxx with params id=xxx&type=xxx
time=... | lvl=INFO | trans=rdPmJ/uHE62a | op=POST |
msg=Request on resource /check_xxx with params id=xxx&type=xxx

time=... | lvl=INFO | trans=rdPmJ/uHE62a | op=POST | msg=Response status 200 OK
time=... | lvl=INFO | trans=rdPmJ/uHE62a | op=UpdateContext | msg=Request to ContextBroker at http://host:1026/...
time=... | lvl=INFO | trans=rdPmJ/uHE62a | op=UpdateContext |
msg=Request to ContextBroker at http://host:1026/...

- Finally, query Context Broker API to check whether entity attributes have
been updated according to the new monitoring data (see details here__)
Expand Down
3 changes: 2 additions & 1 deletion doc/manuals/user/README.rst
Expand Up @@ -62,7 +62,8 @@ then requests would look like::

HTTP POST http://adapterhost:1337/check_load?id=178.23.5.23&type=host
Content-Type: text/plain
OK - load average: 0.36, 0.25, 0.24|load1=0.360;1.000;1.000;0; load5=0.250;5.000;5.000;0; load15=0.240;15.000;15.000;0;
OK - load average: 0.36, 0.25, 0.24|load1=0.360;1.000;1.000;0;
load5=0.250;5.000;5.000;0; load15=0.240;15.000;15.000;0;

Please take into account that NGSI standard identify entities (in this case,
the resources being monitored) using a pair <*entityId*,\ *entityType*>. This
Expand Down

0 comments on commit ef28d30

Please sign in to comment.