cyberark / conjur-inspect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conjur Inspect

Conjur Inspect is a command-line tool that validates a system for running Conjur Enterprise successfully and gathers system information for troubleshooting when Conjur Enterprise isn't running correctly.

Certification level

This repo is a Trusted level project. It is supported by CyberArk and has been verified to work with Conjur Enterprise. For more detailed information on our certification levels, see our community guidelines.

Getting Started

Installing

To install Conjur Inspect, download the latest version for your system architecture from Releases to your target host machine. This is the machine or VM where the Conjur Enterprise container will run.

Extract the tool from the gzip archive:

$ tar -xvf conjur-inspect-0.3.0_amd64.tgz

Or install it from one of the system packages:

yum install conjur-inspect_0.3.0_amd64.rpm
apt install conjur-inspect_0.3.0_386.deb

Running

Run Conjur Inspect with the following command as the same system user that will run the Conjur container:

$ conjur-inspect

This command generates an inspection report of different system indicators related to Conjur stability performance:

========================================
Conjur Enterprise Inspection Report
Version: 0.3.0-ef572db (Build 46)
========================================

CPU
---
INFO - CPU Cores: 4
INFO - CPU Architecture: amd64

Disk
----
INFO - Disk Space (tmpfs, /dev): 8.1 GB Total, 0 B Used ( 0%), 8.1 GB Free
...

Memory
------
INFO - Memory Total: 16 GB
INFO - Memory Free: 15 GB
INFO - Memory Used: 813 MB (5.0 %)

Host
----
INFO - Hostname: ip-172-31-17-12.ec2.internal
INFO - Uptime: 8 minutes 35 seconds
INFO - OS: linux, redhat, rhel, 8.6
INFO - Virtualization: None

Follower
--------
ERROR - Leader Hostname: N/A (Leader hostname is not set. Set the 'MASTER_HOSTNAME' environment variable to run this check)

Container Runtime
-----------------
ERROR - Docker: N/A (failed to inspect Docker runtime: exec: "docker": executable file not found in $PATH ())
INFO - Podman Version: 4.2.0
INFO - Podman Driver: overlay
INFO - Podman Graph Root: /home/ec2-user/.local/share/containers/storage
INFO - Podman Run Root: /run/user/1000/containers
INFO - Podman Volume Path: /home/ec2-user/.local/share/containers/storage/volumes

Ulimits
-------
INFO - core file size (blocks, -c): 0
...

Available options and flags may be view by running:

conjur-inspect --help

Raw data report

In addition to the output report, conjur-inspect records the raw inspection data in a gzipped archived saved as a filed to the working directory. By default, this archived is named with the timestamp when conjur-inspect was run. For example, 2023-05-26-15-51.tar.gz.

The name of the output archive may be customized with the --report-id argument. For example:

conjur-inspect --report-id standby

This results in an output archived named standby.tar.gz.

Inspecting disk performance

The Conjur Inspect disk performance checks require an additional dependency, fio, to be installed as a prerequisite. This may be installed from OS package management tools. For example:

yum install fio

or

apt install fio

When fio is installed, conjur-inspect reports additional information about disk latency and throughput:

./conjur-inspect
========================================
Conjur Enterprise Inspection Report
Version: 0.3.0-ef572db (Build 46)
========================================

...

Disk
----
...
INFO - FIO - Read IOPs (/home/ec2-user/conjur-inspect_0.3.0_linux_amd64): 1624.33 (Min: 874, Max: 3902, StdDev: 221.16)
INFO - FIO - Write IOPs (/home/ec2-user/conjur-inspect_0.3.0_linux_amd64): 1674.32 (Min: 884, Max: 4018, StdDev: 228.43)
INFO - FIO - Read Latency (99%, /home/ec2-user/conjur-inspect_0.3.0_linux_amd64): 0.00 ms
INFO - FIO - Write Latency (99%, /home/ec2-user/conjur-inspect_0.3.0_linux_amd64): 0.00 ms
INFO - FIO - Sync Latency (99%, /home/ec2-user/conjur-inspect_0.3.0_linux_amd64): 1.48 ms

...

Troubleshooting

To troubleshoot issues running conjur-inspect, add the --debug flag for detailed execution output.

Community Support

Our primary channel for support is through our CyberArk Commons community here.

Code Maintainers

CyberArk Conjur Team

Contributing

For information on how to contribute to this project, see CONTRIBUTING.md.

License

Copyright (c) 2023 CyberArk Software Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

For the full license text see LICENSE.

About

License:Apache License 2.0


Languages

Language:Go 92.2%Language:Shell 6.0%Language:Dockerfile 1.4%Language:Makefile 0.3%