Categorygithub.com/NETWAYS/support-collector
modulepackage
0.10.1
Repository: https://github.com/netways/support-collector.git
Documentation: pkg.go.dev

# README

go go

NETWAYS support collector

The support collector allows to collect relevant information from servers. The resulting ZIP file can be given to second to get an insight into the system.

WARNING: DO NOT transfer the generated file over insecure connections, it contains potential sensitive information!

If you are a customer, you can contact us at [email protected] or netways.de/en/contact/.

Inspired by NETWAYS/icinga2-diagnostics.

Usage

WARNING: Some passwords or secrets are automatically removed, but this no guarantee, so be careful what you share!

The --hide flag can be used multiple times to hide sensitive data, it supports regular expressions.

# support-collector --hide "Secret:.*" --hide "Password:.*"

By default, we collect all we can find. You can control this by only enabling certain modules, or disabling some.

If you want to see what is collected, add --verbose

To collect advanced data for module Icinga 2, you can use the Icinga 2 API to collect data from all endpoints provided. The API requests are performed with a global API user you have to create yourself. Just create that user in a global zone like 'director-global'

ShortLongDescription
-o--outputOutput file for the zip content (default: current directory and named like '$HOSTNAME'-netways-support-$TIMESTAMP.zip)
--nodetailsDisable detailed collection including logs and more
--enableList of enabled modules (default: all)
--disableList of disabled modules (default: none)
--hideList of keywords to obfuscate. Can be used multiple times
--command-timeoutTimeout for command execution in modules (default: 1m0s)
--icinga2-api-userUsername of global Icinga 2 API user to collect data about Icinga 2 Infrastructure
--icinga2-api-passPassword for global Icinga 2 API user to collect data about Icinga 2 Infrastructure
--icinga2-api-endpointsList of Icinga 2 API Endpoints (including port) to collect data from. FQDN or IP address must be reachable. (Example: i2-master01.local:5665)
-v--verboseEnable verbose logging
-V--versionPrint version and exit

Modules

A brief overview about the modules, you can check the source code under modules for what exactly is collected.

Most modules check if the component is installed before trying to collect data. If the module is not detected, it will not be collected.

Module nameDescription
ansibleConfiguration and packages
baseBasic information about the system (operating system, kernel, memory, cpu, processes, repositories, firewalls, etc.)
corosyncIncludes corosync and pacemaker. Collects configuration, logs, packages and service status
elasticIncludes elasticsearch, logstash and kibana. Collects configuration, packages and service status
grafanaConfiguration, logs, plugins, packages and service status
graphiteIncludes graphite and carbon. Collects configuration, logs, python / pip version and list, packages and service status
graylogConfiguration, packages and service status
icinga2Configuration, packages, service status, logs, Icinga 2 objects, Icinga 2 variables, plugins, icinga-installer and data from API endpoints (if provided)
icingadbIncludes IcingaDB and IcingaDB redis. Collects configuration, logs, packages and service status
icingadirectorPackages or git information, logs, Director health status and service status
icingaweb2Configuration, logs, packages, modules, PHP, modules and service status
influxdbConfiguration, logs, packages and service status
keepalivedConfiguration, packages and service status
mongodbConfiguration, logs, packages and service status
mysqlConfiguration, logs, packages and service status
postgresqlConfiguration, logs, packages and service status
prometheusConfiguration, packages and service status
puppetConfiguration, logs, module list, packages and service status
webserversIncludes apache2, httpd and nginx. Collects configuration, logs, packages and service status
foremanConfiguration, logs, packages and service status

Supported systems

DistributionTested onSupported
CentOS / ELCentOS 7/8, RHEL 7/8
DebianDebian 10/11
UbuntuUbuntu 18.04/20.04/22.04
SLES / OpenSUSEopenSUSE Leap 15.4

License

Copyright (C) 2021 NETWAYS GmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

# Packages

No description provided by the author

# Functions

No description provided by the author

# Constants

FilePrefix for the outfile file.
No description provided by the author
No description provided by the author