blob: 950badacb5b9fe421931f835b45fd220dd061c6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
Administration
==============
Processes
---------
**SNMPTRAP** runs as a single (python) process inside the container. You can find it using the following commands:
Inside the container
^^^^^^^^^^^^^^^^^^^^
.. code-block:: bash
`ps -ef | grep snmptrap.py | grep -v grep`
Outside the container
^^^^^^^^^^^^^^^^^^^^^
.. code-block:: bash
docker exec -it <container name> `ps -ef | grep snmptrap.py | grep -v grep`
Actions
-------
The **SNMPTRAP** container can be monitored for status by running the command:
.. code-block:: bash
`bin/snmptrapd.sh status`
Output from this command will be two-fold. First will be the textual response:
`Stopping snmptrap... Stopped.`
Also available is the return code of the command:
0 - if command executed successfully
1 - if the command failed, and/or the process is not running
|