Skip to content

Commit 62d5eab

Browse files
committed
Merge remote-tracking branch 'kala/viewer' into devel
2 parents d405081 + b60d756 commit 62d5eab

File tree

9 files changed

+903
-1
lines changed

9 files changed

+903
-1
lines changed

src/plugins/output/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# List of output plugin to build and install
22
add_subdirectory(dummy)
3-
add_subdirectory(json)
3+
add_subdirectory(json)
4+
add_subdirectory(viewer)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Create a linkable module
2+
3+
add_library(viewer-output MODULE
4+
viewer.c
5+
config.c
6+
config.h
7+
Reader.h
8+
Reader.c
9+
)
10+
11+
install(
12+
TARGETS viewer-output
13+
LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/ipfixcol2/"
14+
)
15+
16+
if (ENABLE_DOC_MANPAGE)
17+
# Build a manual page
18+
set(SRC_FILE "${CMAKE_CURRENT_SOURCE_DIR}/doc/ipfixcol2-viewer-output.7.rst")
19+
set(DST_FILE "${CMAKE_CURRENT_BINARY_DIR}/ipfixcol2-viewer-output.7")
20+
21+
add_custom_command(TARGET viewer-output PRE_BUILD
22+
COMMAND ${RST2MAN_EXECUTABLE} --syntax-highlight=none ${SRC_FILE} ${DST_FILE}
23+
DEPENDS ${SRC_FILE}
24+
VERBATIM
25+
)
26+
27+
install(
28+
FILES "${DST_FILE}"
29+
DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man7"
30+
)
31+
endif()
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Viewer (output plugin)
2+
=====================
3+
4+
The plugin provides a way how to observe functionality of collector.
5+
Viewer module prints information about incoming IPFIX packets and data inside of them.
6+
7+
Example configuration
8+
---------------------
9+
10+
.. code-block:: xml
11+
12+
<output>
13+
<name>Viewer output</name>
14+
<plugin>viewer</plugin>
15+
<params>
16+
</params>
17+
</output>
18+
19+
Parameters
20+
----------
21+

0 commit comments

Comments
 (0)