Icinga / icinga2-diagnostics

Shell script for analyzing Icinga 2 installations.
GNU General Public License v3.0
26 stars 9 forks source link

Support Ubuntu #12

Open widhalmt opened 6 years ago

widhalmt commented 6 years ago

We have a Debian support from #10 but I couldn't test it by now on Ubuntu

wolf-in-sheeps-clothing commented 6 years ago

If this helps you, here is an output from my Ubuntu 16.04.3 LTS Server Testsystem on ESXi 6.5. Using "fresh" diagnistic tools via git pull just seconds bevor output. :-)

xxx@xxx:~/diagnostics$ sudo ./icinga-diagnostics.sh

Icinga 2 Diagnostics

Version: 0.0

Run on xxx at Mi 17. Jan 20:48:31 CET 2018

Running as root

OS

OS Version: Ubuntu stretch/sid Hypervisor: Running virtually on a VMware hypervisor CPU cores: 2 RAM:

Top output

top - 20:48:31 up 1:46, 1 user, load average: 0,17, 0,28, 0,27 Tasks: 187 gesamt, 1 laufend, 186 schlafend, 0 gestoppt, 0 Zombie %CPU(s): 4,6 be, 0,7 sy, 1,9 ni, 92,4 un, 0,3 wa, 0,0 hi, 0,0 si, 0,0 st KiB Spch : 4046472 gesamt, 289204 frei, 2561004 belegt, 1196264 Puff/Cache KiB Swap: 4192252 gesamt, 3677956 frei, 514296 belegt. 1181976 verfü Spch

Firewall: inactive

Icinga 2

dpkg-query: Kein Paket gefunden, das auf omd passt Debuglog is disabled. Not all checks might succeed

Packages:

Can not query packages on Ubuntu

Done checking packages. See Anomaly section if something odd was found.

Features: Disabled features: compatlog debuglog gelf graphite livestatus mainlog opentsdb statusdata Enabled features: api checker command elasticsearch ido-mysql influxdb notification perfdata syslog

Check intervals: 1 check_interval = 60, Host 11 check_interval = 60, Service

Used commands (numbers are relative to each other, not showing configured objects): grep: /var/log/icinga2/debug.log: Datei oder Verzeichnis nicht gefunden

information/cli: Icinga application loader (version: r2.8.1-1) information/cli: Loading configuration file(s). information/ConfigItem: Committing config item(s). information/ApiListener: My API identity: monitoring information/ConfigItem: Instantiated 1 ApiListener. information/ConfigItem: Instantiated 1 SyslogLogger. information/ConfigItem: Instantiated 3 Zones. information/ConfigItem: Instantiated 1 Endpoint. information/ConfigItem: Instantiated 5 ApiUsers. information/ConfigItem: Instantiated 2 NotificationCommands. information/ConfigItem: Instantiated 209 CheckCommands. information/ConfigItem: Instantiated 1 Downtime. information/ConfigItem: Instantiated 2 HostGroups. information/ConfigItem: Instantiated 1 IcingaApplication. information/ConfigItem: Instantiated 1 Host. information/ConfigItem: Instantiated 1 UserGroup. information/ConfigItem: Instantiated 1 User. information/ConfigItem: Instantiated 4 TimePeriods. information/ConfigItem: Instantiated 11 Services. information/ConfigItem: Instantiated 3 ServiceGroups. information/ConfigItem: Instantiated 1 ScheduledDowntime. information/ConfigItem: Instantiated 1 CheckerComponent. information/ConfigItem: Instantiated 1 ExternalCommandListener. information/ConfigItem: Instantiated 1 ElasticsearchWriter. information/ConfigItem: Instantiated 1 InfluxdbWriter. information/ConfigItem: Instantiated 1 PerfdataWriter. information/ConfigItem: Instantiated 1 IdoMysqlConnection. information/ConfigItem: Instantiated 1 NotificationComponent. information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars' information/cli: Finished validating the configuration file(s).

Icinga Web 2

Packages: Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/ Halb installiert/Trigger erWartet/Trigger anhängig |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht) ||/ Name Version Architektur Beschreibung +++-=====================================================-===============================-===============================-=============================================================================================================== ii icingaweb2 2.5.0-1.xenial all simple and responsive web interface for Icinga Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/ Halb installiert/Trigger erWartet/Trigger anhängig |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht) ||/ Name Version Architektur Beschreibung +++-=====================================================-===============================-===============================-=============================================================================================================== un php (keine Beschreibung vorhanden) Can not query webserver package on Ubuntu

Icinga Web 2 Modules: MODULE VERSION STATE DESCRIPTION businessprocess 2.1.0 enabled A Business Process viewer and modeler cube 1.0.1 enabled Cube for Icinga Web 2 director master enabled Director - Config tool for Icinga 2 grafana 1.1.10 enabled Grafana - A perfdata visualisation module map 1.0.4 enabled Map - Visualize your hosts and service status monitoring 2.5.0 enabled Icinga monitoring module pnp 1.1.0 enabled Timeseries grapher integration for PNP4Nagios toplevelview 0.1.0 enabled Top Level View

businessprocess via git - "00e2f1886a9b07244e8dad237776b629fad59c0a" cube via git - "7ba3feb71601fd2433e0b787ea87dddf53878e49" director via git - "e5d996c4925cb53217b4dd2b4de12f0c0986f7cb" grafana via git - "5ba8995a15fb4b1e72232e3dffd4b45c6bb89ab8" map via git - "5e4a0d6fc9ac72c98e37fe2151f2253ec101c58f" monitoring via release archive/package pnp via git - "511fed5e20e3e11ac4b829b1d918459a7eead6e8" toplevelview via git - "7138cb034335f75857dec1ac98d456190d5de583"

Icinga Web 2 commandtransport configuration: [icinga2_api] transport = "api" host = "127.0.0.1" port = "5665" username = "icingaweb2" password = MASKED

Director is a git clone with the following last commit

./icinga-diagnostics.sh: 238: ./icinga-diagnostics.sh: pushd: not found ./icinga-diagnostics.sh: 239: ./icinga-diagnostics.sh: popd: not found

Anomalies found

widhalmt commented 6 years ago

Thank you! I will review the output and try to find what I can improve.