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