Verifying that events are posting correctly
You can set preferences to specify how the posting is handled on the receiving side.
- Post events to a file such as /tmp/events on the web server host.
Create a script.
<?php file_put_contents( '/tmp/events', print_r ( $_POST,true ), FILE_APPEND ); ?>
- Deploy the script. You might need to restart the web server.
Launch a logged event, such as an OpsCenter restart or garbage compaction from
Output to . /tmp looks something like
Array ( [api_source_ip ] => 126.96.36.199 [target_node ] => None [event_source ] => OpsCenter [user ] => None [ time ] => 1311025598851602 [action ] => 20 [message ] => Garbage Collecting node 188.8.131.52 [level ] => 1 [source_node ] => 184.108.40.206 [level_str ] => INFO )