MonitorPi – Nagios, Centreon, Check_MK, Nagvis auf dem Raspberry Pi 2

raspberry-pi-2-770x577Es ist mal wieder so weit, es gibt ein Update in Sachen Monitoring. Viele kennen mit Sicherheit den kleinen Raspberry Pi, eigentlich als dritte Welt-PC gedacht – aber unter den Bastlern ebenfalls ein Hit geworden. Ich habe ja schon mehrere Beiträge zum Pi hier geschrieben, aber seit dem Raspberry Pi 2 gibt es noch ganz andere Anwendungsfelder die durch die größere Leistung möglich werden.
So auch das Projekt „MonitorPi“, dass den RaspberryPi in eine Überwachungszentrale verwandelt, die inklusive Zubehör preislich auch unter 100€ liegt.
MonitorPi ist eine fertige Appliance von mir – die mit den beliebtesten Monitoring-Tools vorinstalliert ist.
Was ist alles enthalten und vorinstalliert ? (Ready 2 use)
– Nagios 3.5.1 Nagios
– Centreon 2.6.0centreon_logo
– Centreon-Broker 2.8.2
– Check_MK (Livestatus) 1.2.6.p2check_mk.200
– Nagvis 1.8.2
– Nagios Plugins 2.0.3nagvis
Was wird benötigt ?
Raspberry Pi 2
– mind. 8 GB Speicherkarte (Je schneller desto besser. Class 10 = top)
Win32DiskImager
[stextbox id=“info“]MonitorPi basiert auf der aktuellen Debian Wheezy Distribution die es auch via raspberrypi.org zum Download gibt. (2015-02-16-raspbian-wheezy.img)
Nur habe ich sie noch vollständig aktualisiert. Stand: 04.05.2015[/stextbox]
Wie wird MonitorPi installiert ?
Ganz einfach: Ihr ladet euch die aktuelle Image-Datei herunter und bespielt diese auf eine micro-SD-Karte.
Dies geht mit dem Win32DiskImager wie im Bild beschrieben:
win32diskimager
 [stextbox id=“alert“]Achtung: Alle Daten auf der SD Karte werden gelöscht![/stextbox]
Anschließend den Rasperry Pi 2 mit der SD-Karte booten, er versucht automatisch eine IP via DHCP zu beziehen, und zeigt diese nach dem Boot an.
Wie sehen die unterschiedlichen Monitoring-Tools aus ?


Wie erreiche ich die Tools ?
Alle Tools sind Web-Applikationen, die per Browser aufgerufen werden. Die Url’s sind wie folgt:

NagiosUrl: http://%IP%/nagios
Benutzername: nagiosadmin
Passwort: constey
NagvisUrl: http://%IP%/nagvis
Benutzername: admin
Passwort: admin
CentreonUrl: http://%IP%/centreon
Benutzername: admin
Passwort: constey
Check_MKUrl: http://%IP%/check_mk
Benutzername: nagiosadmin
Passwort: constey
phpMyAdmin (Mysql)Url: http://%IP%/phpmyadmin
Benutzername: root
Passwort: constey

Die Zugangsdaten zum Anmelden an der Konsole oder via SSH sind:
Benutzername: pi
Passwort: raspberry
Ansonsten ist das Passwort immer „constey“, also zum Beispiel für die einzelnen Benutzer oder Mysql-Datenbank-Benutzer.
Download:
Hier gibt es das Image in gezippter Form zum Download 2015-05-04-wheezy-monitorPI-constey-2 (ca. 1.8 GB)
[EXPAND Prüfsummen-Information]—————————
Prüfsummen-Information
—————————
Name: 2015-05-04-wheezy-monitorPI-constey-2.zip
Größe: 1872300662 Bytes (1785 MB)
CRC32: 9ACC060B
CRC64: CC7A670EBC2EF5E0
SHA256: 71D79E6F9FBD9BD68618029F008C77AE488FCE251932B2754D76B2CB2FB5D483
SHA1: FF7AD402D6116BEC4B8D8528223D265D6BB1700A
[/Expand]
FAQ:
Warum ist nicht Nagios 4 installiert?
Zum einen gibt es noch die ein oder anderen Kompatibilitätsprobleme mit Centreon, wer auch noch andere Module benutzen möchte, stößt eventuell ebenfalls auf Kompatibilitätsprobleme. Wer dennoch aktualisieren will kann das natürlich gerne tun.
Wo liegen die Quelldateien ?
Alle Quelldateien liegen unter /home/pi/sources.
MonitorPi-Sources
Wo liegen die wichtigsten Programme ?
Ich habe die Anwendungen in der Regel immer mit Standardwerten kompiliert. Aber hier einige Pfade:
Nagios: /usr/local/nagios
Nagios Plugins: /usr/local/nagios/libexec
Centreon: /usr/local/centreon/

check_nrpe unter Ubuntu installieren

Check_NRPE ist für Nagios ein sehr wichtiges Plugin um Remote verschiedene Stati zu prüfen.  Unter Ubuntu 12.04 gibt es ein kleines Problem bei der Kompilation und den SSL-Bibliotheken.
Hier kurz erklärt:
check_nrpe herunterladen und entpacken:

wget wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz/download
tar xfv download
cd nrpe-2.15

Wenn man jetzt einfach nur ein ./configure macht und folgenden Fehler bekommt muss mann den Pfad manuell angeben:

checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl libraries

libssl Libraries suchen:

find / -name "libssl.so"
/usr/lib/x86_64-linux-gnu/libssl.a
/usr/lib/x86_64-linux-gnu/pkgconfig/libssl.pc
/usr/lib/x86_64-linux-gnu/libssl.so

Nun gibt man den Pfad beim Konfigurieren mit an:

./configure --with-ssl-lib=/usr/lib/x86_64-linux-gnu/

Anschließend noch Kompilieren und Installieren:

make all
make install

Fertig 😉

Raspberry Pi als Nagios Poller installieren und in Centreon aufnehmen

300px-RaspberryPiEin kleiner Raspberry Pi bietet sich ja quasi als Nagios Poller an, wenn man ein kleines, günstiges und stromsparendes Gerät zum Überwachen von Servern, PC’s,  Druckern, oder vielem mehr sucht.
Ich beschreibe hier wie man einen zweiten Nagios-Server in eine bestehende Nagios / Centreon Umgebung aufnehmen kann. Wie man Nagios bzw. auch mit der wesentlich einfacheren Konfigurationsoberfläche Centreon installieren kann habe ich bereits beschrieben. Da hat sich bis auf ein paar Versionsnummern auch nichts verändert. Daher verweise ich an den passenden Stellen auf meinen alten Beitrag.
Wer einfach nur Nagios auf einem Raspyberry installieren will, kann hier auch einfach bis Punkt 2 folgen. Einfach am Ende Centreon nicht mitinstallieren.
Als Grundsystem für den Raspberry wird wegen der Einfachheit ein Debian RAW-Image verwendet. Dieses könnt ihr euch hier herunterladen: http://www.raspberrypi.org/downloads
Achtung: Die NDOUtils funktionieren nicht im Zusammenspiel mit dem „hard float“ Raspberry Image. Wenn ihr die NDOutils einsetzt müsst ihr die „Soft-float“ Debian Version verwenden.
(Ich verwende noch die NDOutils!)

Bis auf die Abhängigkeiten ist fast alles identisch zur normalen Installation von Nagios – wie ich es schon hier beschrieb.
1. Abhängigkeiten Installieren

apt-get install apache2 libapache2-mod-php5 build-essential libgd2-xpm-dev mysql-client gcc make g++ lsb-release libssl-dev

2. Nagios + Plugins herunterladen und installieren
Könnt ihr aus dem Beitrag hier entnehmen: https://constey.de/2012/06/how-to-install-nagios-centreon-nagvis-check_mk-ubuntu-12-04-server/
(
Wenn man nur Nagios installieren will, ohne Centreon – ist man hier fertig.)
3. Zusätzlichen centreon Benutzer anlegen
Da der Centreon Central Server mit dem User centreon arbeitet, und diesen auch für den Austausch von Config-Dateien etc. verwendet, muss dieser auch hier angelegt werden.

/usr/sbin/useradd -m -s /bin/bash centreon
passwd centreon

4. Noch den Centreon User in die Nagios Gruppen aufnehmen

/usr/sbin/usermod -G nagcmd centreon
/usr/sbin/usermod -G nagios centreon

5. SSH Authentifizierung per Keyfile einrichten & in Centreon aufnehmen
Haltet euch hier an die Doku von Centreon. Diese ist sehr gut, und bebildert.
http://en.doc.centreon.com/DistributedArchitecture
In der Sudo Konfiguration muss der centreon Benutzer ebenfalls analog dem nagios Benutzer berechtigt werden:

centreon   ALL=NOPASSWD: /etc/init.d/nagios restart
centreon   ALL=NOPASSWD: /etc/init.d/nagios stop
centreon   ALL=NOPASSWD: /etc/init.d/nagios start
centreon   ALL=NOPASSWD: /etc/init.d/nagios reload
centreon   ALL=NOPASSWD: /usr/sbin/nagiostats
centreon   ALL=NOPASSWD: /usr/sbin/nagios *

Außerdem muss der Schritt: „Setting up key authentication using SSH“ noch mit dem centreon Benutzer ausgeführt werden. Also:

su centreon
ssh-keygen
(alles mit Enter bestätigen (kein Kennwort!)
ssh-copy-id -i ~/.ssh/id_rsa.pub centreon@{IP_ADDRESS}

Hat man nun den Poller im Centreon angelegt, wie in der Doku hier beschrieben, kann man Testweise einen Host anlegen, der von dem neuen Poller abgefragt werden soll.
Anschließend unter Configuration -> Monitoring Engines, die Konfiguration exportieren und den neuen Poller neustarten lassen.
Wichtige Infos zum Debuggen findet man in den Logfiles von Centreon. Ein Beispiel für ein funktionierenden Poller:

vi /usr/local/centreon/log/centcore.log
2013-06-18 14:22:01 - Info: copied rotated file for instance 5
2013-06-18 14:34:54 - Start: Send config files on poller 5
2013-06-18 14:35:05 - End: Send config files on poller 5
2013-06-18 14:35:18 - Init Script : 'sudo /etc/init.d/nagios restart' On poller 101.1.39 (5)
2013-06-18 14:35:18 - Engine : Running configuration check...done.
2013-06-18 14:35:18 - Engine : Stopping nagios: .done.
2013-06-18 14:35:18 - Engine : Starting nagios: done.
2013-06-19 00:00:42 - Info: copied rotated file for instance 5
Timeout, server 10.0.199.39 not responding.^M
2013-06-20 00:01:00 - Info: copied rotated file for instance 5
Timeout, server 10.0.199.39 not responding.^M
2013-06-20 23:59:49 - Info: copied rotated file for instance 5

Sollten die neu angelegten Hosts zwar in der Centreon Konfiguration sein, aber nicht unter Monitoring auftauchen muss geprüft werden, ob der ndoutils Dienst korrekt läuft.
Dazu das Nagios-Log auf dem Poller checken:

vi /usr/local/nagios/var/nagios.log
[1371558916] Nagios 3.5.0 starting... (PID=7777)
[1371558916] Local time is Tue Jun 18 14:35:16 CEST 2013
[1371558916] LOG VERSION: 2.0
[1371558916] ndomod: NDOMOD 1.5.2 (06-08-2012) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1371558916] ndomod: Successfully connected to data sink. 0 queued items to flush.
[1371558916] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.

 

VMware ESXi 5 mit Nagios/Centreon überwachen

VMware bietet mit seinem vSphere Client bzw. des vSphere Webclient eine schönes Tool zur Verwaltung der ESX Farm. Dort kann man sich auch die Performancewerte zu CPU, Ram, HDD, Netzwerk anschauen, Graphen erzeugen und vieles mehr…. Wer jetzt aber ein bestehendes System zum Monitoren hat, freut sich mit Sicherheit darüber, dort auch alle Systeme aufnehmen zu können.
Da seit dem ESX3 die SNMP Funktionalität bzw. alle nützlichen Attribute daraus gänzlich entfernt wurden, bleibt zum Abfragen nur die PowerCLI bzw. die Perl SDK. Wie das funktioniert beschreibe ich hier:
Als erstes die aktuellste VMware vSphere Perl SDK installieren. Momentan 5.1.0 – gibt’s bei VMware.
Entpacken:

tar xvf VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz

Umgebungsvariablen setzen: (WICHTIG – ohne geht’s nicht!)

export http_proxy=
export ftp_proxy=

Installer ausführen:

sudo ./vmware-install.pl

Perl Module installieren:

perl -MCPAN -e shell

Anschließend für die unten aufgelisteten Module jeweils machen:

install XML::Simple
XML::Simple
Nagios::Plugin
Class::MethodMaker
URI
LWP
HTML::Parser

Das Nagios Plugin / Script herunterladen: check_vmware_api
Jetzt noch die SSL Überprüfung vom LWP Modul zu deaktivieren. Ich empfehle folgendes noch in den Kopfbereich des check_vmware_api Scriptes hinzuzufügen:

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

Alternativ kann man die Einstellung auch Global vornehmen:

sudo vim /usr/share/perl5/LWP/Protocol/https.pm

In der Datei nach der Zeile:

$ssl_opts{SSL_verify_mode} ||= 1;

suchen und diese durch folgende ersetzen:

$ssl_opts{SSL_verify_mode} ||= 0;

Ansonsten bekommt ihr eventuell folgende Fehlermeldung:

CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://MYESX:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.10.0/VMware/VICommon.pm line 545.

Zum Testen kann man sich nun mal den Gesamtverbrauch an CPU Ressourcen in MHZ ausgeben lassen:

root@SERVER:/# /usr/local/nagios/libexec/check_esx3.pl -D vcenter.domain.info -u user@domain.info -p password -l cpu -s usagemhz
CHECK_ESX3.PL OK - cpu usagemhz=31792.00 MHz | cpu_usagemhz=31792.00Mhz;;

Insgesamt gibt es sehr viele Optionen, die komplette Liste gibts hier:
[EXPAND check_vmware_api Befehle]
check_esx3.pl 0.7.0
This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY.
It may be used, redistributed and/or modified under the terms of the GNU
General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).
VMWare Infrastructure plugin
Usage: check_esx3.pl -D <data_center> | -H <host_name> [ -C <cluster_name> ] [ -N <vm_name> ]
-u -p | -f
-l [ -s ] [ -T ] [ -i ]
[ -x <black_list> ] [ -o <additional_options> ]
[ -t ] [ -w <warn_range> ] [ -c <crit_range> ]
[ -V ] [ -h ]
-?, –usage
Print usage information
-h, –help
Print detailed help screen
-V, –version
Print version information
–extra-opts=[section][@file]
Read options from an ini file. See http://nagiosplugins.org/extra-opts
for usage and examples.
-H, –host=
ESX or ESXi hostname.
-C, –cluster=
ESX or ESXi clustername.
-D, –datacenter=
Datacenter hostname.
-N, –name=
Virtual machine name.
-u, –username=
Username to connect with.
-p, –password= Password to use with the username.
-f, –authfile= Authentication file with login and password. File syntax :
username=
password= -w, –warning=THRESHOLD
Warning threshold. See
http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
for the threshold format.
-c, –critical=THRESHOLD
Critical threshold. See
http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
for the threshold format.
-l, –command=COMMAND
Specify command type (CPU, MEM, NET, IO, VMFS, RUNTIME, …)
-s, –subcommand=SUBCOMMAND
Specify subcommand
-S, –sessionfile=SESSIONFILE
Specify a filename to store sessions for faster authentication
-x, –exclude=<black_list>
Specify black list
-o, –options=<additional_options>
Specify additional command options (quickstats, …)
-T, –timestamp=
Timeshift in seconds that could fix issues with „Unknown error“. Use values like 5, 10, 20, etc
-i, –interval=
Sampling Period in seconds. Basic historic intervals: 300, 1800, 7200 or 86400. See config for any changes.
Supports literval values to autonegotiate interval value: r – realtime interval, h – historical interval specified by position.
Default value is 20 (realtime). Since cluster does not have realtime stats interval other than 20(default realtime) is mandatory.
-M, –maxsamples=
Maximum number of samples to retrieve. Max sample number is ignored for historic intervals.
Default value is 1 (latest available sample).
–trace=
Set verbosity level of vSphere API request/respond trace
-t, –timeout=INTEGER
Seconds before plugin times out (default: 30)
-v, –verbose
Show details for command-line debugging (can repeat up to 3 times)
Supported commands(^ – blank or not specified parameter, o – options, T – timeshift value, b – blacklist) :
VM specific :
* cpu – shows cpu info
+ usage – CPU usage in percentage
+ usagemhz – CPU usage in MHz
+ wait – CPU wait time in ms
+ ready – CPU ready time in ms
^ all cpu info(no thresholds)
* mem – shows mem info
+ usage – mem usage in percentage
+ usagemb – mem usage in MB
+ swap – swap mem usage in MB
+ swapin – swapin mem usage in MB
+ swapout – swapout mem usage in MB
+ overhead – additional mem used by VM Server in MB
+ overall – overall mem used by VM Server in MB
+ active – active mem usage in MB
+ memctl – mem used by VM memory control driver(vmmemctl) that controls ballooning
^ all mem info(except overall and no thresholds)
* net – shows net info
+ usage – overall network usage in KBps(Kilobytes per Second)
+ receive – receive in KBps(Kilobytes per Second)
+ send – send in KBps(Kilobytes per Second)
^ all net info(except usage and no thresholds)
* io – shows disk I/O info
+ usage – overall disk usage in MB/s
+ read – read latency in ms (totalReadLatency.average)
+ write – write latency in ms (totalWriteLatency.average)
^ all disk io info(no thresholds)
* runtime – shows runtime info
+ con – connection state
+ cpu – allocated CPU in MHz
+ mem – allocated mem in MB
+ state – virtual machine state (UP, DOWN, SUSPENDED)
+ status – overall object status (gray/green/red/yellow)
+ consoleconnections – console connections to VM
+ guest – guest OS status, needs VMware Tools
+ tools – VMWare Tools status
+ issues – all issues for the host
^ all runtime info(except con and no thresholds)
Host specific :
* cpu – shows cpu info
+ usage – CPU usage in percentage
o quickstats – switch for query either PerfCounter values or Runtime info
+ usagemhz – CPU usage in MHz
o quickstats – switch for query either PerfCounter values or Runtime info
^ all cpu info
o quickstats – switch for query either PerfCounter values or Runtime info
* mem – shows mem info
+ usage – mem usage in percentage
o quickstats – switch for query either PerfCounter values or Runtime info
+ usagemb – mem usage in MB
o quickstats – switch for query either PerfCounter values or Runtime info
+ swap – swap mem usage in MB
o listvm – turn on/off output list of swapping VM’s
+ overhead – additional mem used by VM Server in MB
+ overall – overall mem used by VM Server in MB
+ memctl – mem used by VM memory control driver(vmmemctl) that controls ballooning
o listvm – turn on/off output list of ballooning VM’s
^ all mem info(except overall and no thresholds)
* net – shows net info
+ usage – overall network usage in KBps(Kilobytes per Second)
+ receive – receive in KBps(Kilobytes per Second)
+ send – send in KBps(Kilobytes per Second)
+ nic – makes sure all active NICs are plugged in
^ all net info(except usage and no thresholds)
* io – shows disk io info
+ aborted – aborted commands count
+ resets – bus resets count
+ read – read latency in ms (totalReadLatency.average)
+ write – write latency in ms (totalWriteLatency.average)
+ kernel – kernel latency in ms
+ device – device latency in ms
+ queue – queue latency in ms
^ all disk io info
* vmfs – shows Datastore info
+ (name) – free space info for datastore with name (name)
o used – output used space instead of free
o breif – list only alerting volumes
o regexp – whether to treat name as regexp
o blacklistregexp – whether to treat blacklist as regexp
b – blacklist VMFS’s
T (value) – timeshift to detemine if we need to refresh
^ all datastore info
o used – output used space instead of free
o breif – list only alerting volumes
o blacklistregexp – whether to treat blacklist as regexp
b – blacklist VMFS’s
T (value) – timeshift to detemine if we need to refresh
* runtime – shows runtime info
+ con – connection state
+ health – checks cpu/storage/memory/sensor status
o listitems – list all available sensors(use for listing purpose only)
o blackregexpflag – whether to treat blacklist as regexp
b – blacklist status objects
+ storagehealth – storage status check
o blackregexpflag – whether to treat blacklist as regexp
b – blacklist status objects
+ temperature – temperature sensors
o blackregexpflag – whether to treat blacklist as regexp
b – blacklist status objects
+ sensor – threshold specified sensor
+ maintenance – shows whether host is in maintenance mode
+ list(vm) – list of VMWare machines and their statuses
+ status – overall object status (gray/green/red/yellow)
+ issues – all issues for the host
b – blacklist issues
^ all runtime info(health, storagehealth, temperature and sensor are represented as one value and no thresholds)
* service – shows Host service info
+ (names) – check the state of one or several services specified by (names), syntax for (names):,,…,
^ show all services
* storage – shows Host storage info
+ adapter – list bus adapters
b – blacklist adapters
+ lun – list SCSI logical units
b – blacklist LUN’s
+ path – list logical unit paths
b – blacklist paths
^ show all storage info
* uptime – shows Host uptime
o quickstats – switch for query either PerfCounter values or Runtime info
* device – shows Host specific device info
+ cd/dvd – list vm’s with attached cd/dvd drives
o listall – list all available devices(use for listing purpose only)
DC specific :
* cpu – shows cpu info
+ usage – CPU usage in percentage
o quickstats – switch for query either PerfCounter values or Runtime info
+ usagemhz – CPU usage in MHz
o quickstats – switch for query either PerfCounter values or Runtime info
^ all cpu info
o quickstats – switch for query either PerfCounter values or Runtime info
* mem – shows mem info
+ usage – mem usage in percentage
o quickstats – switch for query either PerfCounter values or Runtime info
+ usagemb – mem usage in MB
o quickstats – switch for query either PerfCounter values or Runtime info
+ swap – swap mem usage in MB
+ overhead – additional mem used by VM Server in MB
+ overall – overall mem used by VM Server in MB
+ memctl – mem used by VM memory control driver(vmmemctl) that controls ballooning
^ all mem info(except overall and no thresholds)
* net – shows net info
+ usage – overall network usage in KBps(Kilobytes per Second)
+ receive – receive in KBps(Kilobytes per Second)
+ send – send in KBps(Kilobytes per Second)
^ all net info(except usage and no thresholds)
* io – shows disk io info
+ aborted – aborted commands count
+ resets – bus resets count
+ read – read latency in ms (totalReadLatency.average)
+ write – write latency in ms (totalWriteLatency.average)
+ kernel – kernel latency in ms
+ device – device latency in ms
+ queue – queue latency in ms
^ all disk io info
* vmfs – shows Datastore info
+ (name) – free space info for datastore with name (name)
o used – output used space instead of free
o breif – list only alerting volumes
o regexp – whether to treat name as regexp
o blacklistregexp – whether to treat blacklist as regexp
b – blacklist VMFS’s
T (value) – timeshift to detemine if we need to refresh
^ all datastore info
o used – output used space instead of free
o breif – list only alerting volumes
o blacklistregexp – whether to treat blacklist as regexp
b – blacklist VMFS’s
T (value) – timeshift to detemine if we need to refresh
* runtime – shows runtime info
+ list(vm) – list of VMWare machines and their statuses
+ listhost – list of VMWare esx host servers and their statuses
+ listcluster – list of VMWare clusters and their statuses
+ tools – VMWare Tools status
b – blacklist VM’s
+ status – overall object status (gray/green/red/yellow)
+ issues – all issues for the host
b – blacklist issues
^ all runtime info(except cluster and tools and no thresholds)
* recommendations – shows recommendations for cluster
+ (name) – recommendations for cluster with name (name)
^ all clusters recommendations
Cluster specific :
* cpu – shows cpu info
+ usage – CPU usage in percentage
+ usagemhz – CPU usage in MHz
^ all cpu info
* mem – shows mem info
+ usage – mem usage in percentage
+ usagemb – mem usage in MB
+ swap – swap mem usage in MB
o listvm – turn on/off output list of swapping VM’s
+ memctl – mem used by VM memory control driver(vmmemctl) that controls ballooning
o listvm – turn on/off output list of ballooning VM’s
^ all mem info(plus overhead and no thresholds)
* cluster – shows cluster services info
+ effectivecpu – total available cpu resources of all hosts within cluster
+ effectivemem – total amount of machine memory of all hosts in the cluster
+ failover – VMWare HA number of failures that can be tolerated
+ cpufainess – fairness of distributed cpu resource allocation
+ memfainess – fairness of distributed mem resource allocation
^ only effectivecpu and effectivemem values for cluster services
* runtime – shows runtime info
+ list(vm) – list of VMWare machines in cluster and their statuses
+ listhost – list of VMWare esx host servers in cluster and their statuses
+ status – overall cluster status (gray/green/red/yellow)
+ issues – all issues for the cluster
b – blacklist issues
^ all cluster runtime info
* vmfs – shows Datastore info
+ (name) – free space info for datastore with name (name)
o used – output used space instead of free
o breif – list only alerting volumes
o regexp – whether to treat name as regexp
o blacklistregexp – whether to treat blacklist as regexp
b – blacklist VMFS’s
T (value) – timeshift to detemine if we need to refresh
^ all datastore info
o used – output used space instead of free
o breif – list only alerting volumes
o blacklistregexp – whether to treat blacklist as regexp
b – blacklist VMFS’s
T (value) – timeshift to detemine if we need to refresh
Copyright (c) 2008 op5
[/Expand]
Das check_vmware_api Script fügt ihr nun im Nagios bzw. Centreon unter Commands/Checks hinzu, unter Angabe der gewollten Parameter, wodurch ihr dann auch die Service Checks erstellen könnt.
centreon-command-esxi
In den Graphen sieht es dann so aus:
esxi-nagios-cpu

Nagios::Plugin für Perl nachinstallieren

Wenn man Nagios ohne die Nagios Plugins für Perl compiliert/installiert hat, kann man diese im Nachhinein wie folgt nachinstallieren:

perl -MCPAN -e shell

[EXPAND CPAN LOG]
CPAN is the world-wide archive of perl resources. It consists of about
300 sites that all replicate the same contents around the globe. Many
countries have at least one CPAN site already. The resources found on
CPAN are easily accessible with the CPAN.pm module. If you want to use
CPAN.pm, lots of things have to be configured. Fortunately, most of
them can be determined automatically. If you prefer the automatic
configuration, answer ‚yes‘ below.
If you prefer to enter a dialog instead, you can answer ’no‘ to this
question and I’ll let you configure in small steps one thing after the
other. (Note: you can revisit this dialog anytime later by typing ‚o
conf init‘ at the cpan prompt.)
Would you like me to configure as much as possible automatically? [yes]
Autoconfigured everything but ‚urllist‘.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
Would you like me to automatically choose the best CPAN mirror
sites for you? (This means connecting to the Internet and could
take a couple minutes) [yes]
Trying to fetch a mirror list from the Internet
Fetching with LWP:
http://www.perl.org/CPAN/MIRRORED.BY
Searching for the best CPAN mirrors (please be patient) ……………………………………………………………………………………. done!
New urllist
ftp://mirror.netcologne.de/cpan/
ftp://ftp.hosteurope.de/pub/CPAN/
ftp://ftp.u-tx.net/CPAN/
ftp://ftp.mirror.8086.net/sites/CPAN/
ftp://mirror.checkdomain.de/CPAN/
Autoconfiguration complete.
commit: wrote ‚/etc/perl/CPAN/Config.pm‘
Terminal does not support AddHistory.
cpan shell — CPAN exploration and modules installation (v1.9456)
Enter ‚h‘ for help.
[/EXPAND]

cpan[1]> install Nagios::Plugin

[EXPAND CPAN Nagios Installation Log]
Running install for module ‚Nagios::Plugin‘
Running make for T/TO/TONVOON/Nagios-Plugin-0.36.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/T/TO/TONVOON/Nagios-Plugin-0.36.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/T/TO/TONVOON/CHECKSUMS
Checksum for /home/drmadmin/.cpan/sources/authors/id/T/TO/TONVOON/Nagios-Plugin-0.36.tar.gz ok
CPAN.pm: Going to build T/TO/TONVOON/Nagios-Plugin-0.36.tar.gz
Checking if your kit is complete…
Looks good
Warning: prerequisite Config::Tiny 0 not found.
Warning: prerequisite Math::Calc::Units 0 not found.
Warning: prerequisite Params::Validate 0 not found.
Writing Makefile for Nagios::Plugin
—- Unsatisfied dependencies detected during —-
—- TONVOON/Nagios-Plugin-0.36.tar.gz —-
Params::Validate [requires]
Math::Calc::Units [requires]
Config::Tiny [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module ‚Params::Validate‘
Running make for D/DR/DROLSKY/Params-Validate-1.07.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/D/DR/DROLSKY/Params-Validate-1.07.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/D/DR/DROLSKY/CHECKSUMS
Checksum for /home/drmadmin/.cpan/sources/authors/id/D/DR/DROLSKY/Params-Validate-1.07.tar.gz ok
CPAN.pm: Going to build D/DR/DROLSKY/Params-Validate-1.07.tar.gz
Checking prerequisites…
requires:
! Module::Implementation is not installed
build_requires:
! Test::Fatal is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Creating new ‚MYMETA.yml‘ with configuration results
Creating new ‚Build‘ script for ‚Params-Validate‘ version ‚1.07‘
—- Unsatisfied dependencies detected during —-
—- DROLSKY/Params-Validate-1.07.tar.gz —-
Test::Fatal [build_requires]
Module::Implementation [requires]
Running Build test
Delayed until after prerequisites
Running Build install
Delayed until after prerequisites
Running install for module ‚Test::Fatal‘
Running make for R/RJ/RJBS/Test-Fatal-0.010.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/R/RJ/RJBS/Test-Fatal-0.010.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/R/RJ/RJBS/CHECKSUMS
Checksum for /home/drmadmin/.cpan/sources/authors/id/R/RJ/RJBS/Test-Fatal-0.010.tar.gz ok
CPAN.pm: Going to build R/RJ/RJBS/Test-Fatal-0.010.tar.gz
Checking if your kit is complete…
Looks good
Warning: prerequisite Try::Tiny 0.07 not found.
Writing Makefile for Test::Fatal
—- Unsatisfied dependencies detected during —-
—- RJBS/Test-Fatal-0.010.tar.gz —-
Try::Tiny [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module ‚Try::Tiny‘
Running make for D/DO/DOY/Try-Tiny-0.12.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/D/DO/DOY/Try-Tiny-0.12.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/D/DO/DOY/CHECKSUMS
Checksum for /home/drmadmin/.cpan/sources/authors/id/D/DO/DOY/Try-Tiny-0.12.tar.gz ok
CPAN.pm: Going to build D/DO/DOY/Try-Tiny-0.12.tar.gz
Checking if your kit is complete…
Looks good
Writing Makefile for Try::Tiny
cp lib/Try/Tiny.pm blib/lib/Try/Tiny.pm
Manifying blib/man3/Try::Tiny.3pm
DOY/Try-Tiny-0.12.tar.gz
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl „-MExtUtils::Command::MM“ „-e“ „test_harness(0, ‚blib/lib‘, ‚blib/arch‘)“ t/*.t
t/basic.t ……. ok
t/context.t ….. ok
t/finally.t ….. ok
t/given_when.t .. ok
t/when.t …….. ok
All tests successful.
Files=5, Tests=85, 0 wallclock secs ( 0.04 usr 0.02 sys + 0.16 cusr 0.02 csys = 0.24 CPU)
Result: PASS
DOY/Try-Tiny-0.12.tar.gz
/usr/bin/make test — OK
Running make install
Installing /usr/local/share/perl/5.12.4/Try/Tiny.pm
Installing /usr/local/man/man3/Try::Tiny.3pm
Appending installation info to /usr/local/lib/perl/5.12.4/perllocal.pod
DOY/Try-Tiny-0.12.tar.gz
/usr/bin/make install — OK
Running make for R/RJ/RJBS/Test-Fatal-0.010.tar.gz
Has already been unwrapped into directory /home/drmadmin/.cpan/build/Test-Fatal-0.010-ipHhnd
CPAN.pm: Going to build R/RJ/RJBS/Test-Fatal-0.010.tar.gz
cp lib/Test/Fatal.pm blib/lib/Test/Fatal.pm
Manifying blib/man3/Test::Fatal.3pm
RJBS/Test-Fatal-0.010.tar.gz
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl „-MExtUtils::Command::MM“ „-e“ „test_harness(0, ‚blib/lib‘, ‚blib/arch‘)“ t/*.t
t/basic.t …………… ok
t/like-exception.t …… ok
t/release-pod-syntax.t .. skipped: these tests are for release candidate testing
All tests successful.
Files=3, Tests=12, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.09 cusr 0.00 csys = 0.12 CPU)
Result: PASS
RJBS/Test-Fatal-0.010.tar.gz
/usr/bin/make test — OK
Running make install
Installing /usr/local/share/perl/5.12.4/Test/Fatal.pm
Installing /usr/local/man/man3/Test::Fatal.3pm
Appending installation info to /usr/local/lib/perl/5.12.4/perllocal.pod
RJBS/Test-Fatal-0.010.tar.gz
/usr/bin/make install — OK
Running install for module ‚Module::Implementation‘
Running make for D/DR/DROLSKY/Module-Implementation-0.06.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/D/DR/DROLSKY/Module-Implementation-0.06.tar.gz
Checksum for /home/drmadmin/.cpan/sources/authors/id/D/DR/DROLSKY/Module-Implementation-0.06.tar.gz ok
CPAN.pm: Going to build D/DR/DROLSKY/Module-Implementation-0.06.tar.gz
Checking if your kit is complete…
Looks good
Warning: prerequisite Module::Runtime 0.012 not found.
Warning: prerequisite Test::Requires 0 not found.
Writing Makefile for Module::Implementation
—- Unsatisfied dependencies detected during —-
—- DROLSKY/Module-Implementation-0.06.tar.gz —-
Test::Requires [build_requires]
Module::Runtime [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module ‚Test::Requires‘
Running make for T/TO/TOKUHIROM/Test-Requires-0.06.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/T/TO/TOKUHIROM/Test-Requires-0.06.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/T/TO/TOKUHIROM/CHECKSUMS
Checksum for /home/drmadmin/.cpan/sources/authors/id/T/TO/TOKUHIROM/Test-Requires-0.06.tar.gz ok
CPAN.pm: Going to build T/TO/TOKUHIROM/Test-Requires-0.06.tar.gz
Checking if your kit is complete…
Looks good
Writing Makefile for Test::Requires
cp lib/Test/Requires.pm blib/lib/Test/Requires.pm
Manifying blib/man3/Test::Requires.3pm
TOKUHIROM/Test-Requires-0.06.tar.gz
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl „-MExtUtils::Command::MM“ „-e“ „test_harness(0, ‚inc‘, ‚blib/lib‘, ‚blib/arch‘)“ t/*.t
t/00_compile.t ……… ok
t/01_simple.t ………. ok
t/02_no_plan.t ……… ok
t/03_import_hashref.t .. skipped: Test requires module ‚Acme::Unknown::Missing::Module::Name‘ but it’s not found
t/04_import_array.t …. skipped: Test requires module ‚Acme::Unknown::Missing::Module::Name‘ but it’s not found
t/05_success.t ……… ok
All tests successful.
Files=6, Tests=13, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.17 cusr 0.02 csys = 0.24 CPU)
Result: PASS
TOKUHIROM/Test-Requires-0.06.tar.gz
/usr/bin/make test — OK
Running make install
Installing /usr/local/share/perl/5.12.4/Test/Requires.pm
Installing /usr/local/man/man3/Test::Requires.3pm
Appending installation info to /usr/local/lib/perl/5.12.4/perllocal.pod
TOKUHIROM/Test-Requires-0.06.tar.gz
/usr/bin/make install — OK
Running install for module ‚Module::Runtime‘
Running make for Z/ZE/ZEFRAM/Module-Runtime-0.013.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/Z/ZE/ZEFRAM/Module-Runtime-0.013.tar.gz
Fetching with LWP:
ftp://mirror.netcologne.de/cpan/authors/id/Z/ZE/ZEFRAM/CHECKSUMS
Checksum for /home/drmadmin/.cpan/sources/authors/id/Z/ZE/ZEFRAM/Module-Runtime-0.013.tar.gz ok
CPAN.pm: Going to build Z/ZE/ZEFRAM/Module-Runtime-0.013.tar.gz
Creating new ‚MYMETA.yml‘ with configuration results
Creating new ‚Build‘ script for ‚Module-Runtime‘ version ‚0.013‘
Building Module-Runtime
ZEFRAM/Module-Runtime-0.013.tar.gz
./Build — OK
Running Build test
t/cmn.t ……….. ok
t/dependency.t …. ok
t/import_error.t .. ok
t/ivmn.t ………. ok
t/ivms.t ………. ok
t/mnf.t ……….. ok
t/pod_cvg.t ……. skipped: Test::Pod::Coverage not available
t/pod_syn.t ……. skipped: Test::Pod not available
t/rm.t ………… ok
t/taint.t ……… ok
t/um.t ………… ok
t/upo.t ……….. ok
All tests successful.
Files=12, Tests=303, 1 wallclock secs ( 0.09 usr 0.03 sys + 0.43 cusr 0.04 csys = 0.59 CPU)
Result: PASS
ZEFRAM/Module-Runtime-0.013.tar.gz
./Build test — OK
Running Build install
Building Module-Runtime
Installing /usr/local/share/perl/5.12.4/Module/Runtime.pm
Installing /usr/local/man/man3/Module::Runtime.3pm
ZEFRAM/Module-Runtime-0.013.tar.gz
./Build install — OK
Running make for D/DR/DROLSKY/Module-Implementation-0.06.tar.gz
Has already been unwrapped into directory /home/drmadmin/.cpan/build/Module-Implementation-0.06-kPJenR
CPAN.pm: Going to build D/DR/DROLSKY/Module-Implementation-0.06.tar.gz
cp lib/Module/Implementation.pm blib/lib/Module/Implementation.pm
Manifying blib/man3/Module::Implementation.3pm
DROLSKY/Module-Implementation-0.06.tar.gz
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl „-MExtUtils::Command::MM“ „-e“ „test_harness(0, ‚blib/lib‘, ‚blib/arch‘)“ t/*.t
t/basic.t ……………… ok
t/both-fail.t ………….. ok
t/env-value.t ………….. ok
t/more-symbols.t ……….. ok
t/one-impl-fails1.t …….. ok
t/one-impl-fails2.t …….. ok
t/release-cpan-changes.t … skipped: these tests are for release candidate testing
t/release-eol.t ………… skipped: these tests are for release candidate testing
t/release-no-tabs.t …….. skipped: these tests are for release candidate testing
t/release-pod-linkcheck.t .. skipped: these tests are for release candidate testing
t/release-pod-no404s.t ….. skipped: these tests are for release candidate testing
t/release-pod-spell.t …… skipped: these tests are for release candidate testing
t/release-pod-syntax.t ….. skipped: these tests are for release candidate testing
t/requested-fails.t …….. ok
t/taint.t ……………… skipped: Test requires module ‚Test::Taint‘ but it’s not found
All tests successful.
Files=15, Tests=22, 0 wallclock secs ( 0.07 usr 0.02 sys + 0.38 cusr 0.06 csys = 0.53 CPU)
Result: PASS
DROLSKY/Module-Implementation-0.06.tar.gz
/usr/bin/make test — OK
Running make install
Installing /usr/local/share/perl/5.12.4/Module/Implementation.pm
Installing /usr/local/man/man3/Module::Implementation.3pm
Appending installation info to /usr/local/lib/perl/5.12.4/perllocal.pod
DROLSKY/Module-Implementation-0.06.tar.gz
/usr/bin/make install — OK
Running Build for D/DR/DROLSKY/Params-Validate-1.07.tar.gz
Has already been unwrapped into directory /home/drmadmin/.cpan/build/Params-Validate-1.07-ag8vW1
CPAN.pm: Going to build D/DR/DROLSKY/Params-Validate-1.07.tar.gz
Building Params-Validate
cc -Ic -I/usr/lib/perl/5.12/CORE -DXS_VERSION=“1.07″ -DVERSION=“1.07″ -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o lib/Params/Validate/XS.o lib/Params/Validate/XS.c
ExtUtils::Mkbootstrap::Mkbootstrap(‚blib/arch/auto/Params/Validate/XS/XS.bs‘)
cc -shared -O2 -g -L/usr/local/lib -fstack-protector -o blib/arch/auto/Params/Validate/XS/XS.so lib/Params/Validate/XS.o
DROLSKY/Params-Validate-1.07.tar.gz
./Build — OK
Running Build test
t/01-validate.t ……………………. ok
t/02-noop.t ……………………….. ok
t/03-attribute.t …………………… ok
t/04-defaults.t ……………………. ok
t/05-noop_default.t ………………… ok
t/06-options.t …………………….. ok
t/07-with.t ……………………….. ok
t/08-noop_with.t …………………… ok
t/09-regex.t ………………………. ok
t/10-noop_regex.t ………………….. ok
t/11-cb.t …………………………. ok
t/12-noop_cb.t …………………….. ok
t/13-taint.t ………………………. ok
t/14-no_validate.t …………………. ok
t/15-case.t ……………………….. ok
t/16-normalize.t …………………… ok
t/17-callbacks.t …………………… ok
t/18-depends.t …………………….. ok
t/19-untaint.t …………………….. skipped: These tests require Test::Taint 0.02+ to run
t/21-can.t ………………………… ok
t/22-overload-can-bug.t …………….. ok
t/23-readonly.t ……………………. skipped: Need Readonly::XS and Readonly for this test
t/24-tied.t ……………………….. ok
t/25-undef-regex.t …………………. ok
t/26-isa.t ………………………… ok
t/27-string-as-type.t ………………. ok
t/28-readonly-return.t ……………… ok
t/29-taint-mode.t ………………….. skipped: This test is flaky
t/30-hashref-alteration.t …………… ok
t/31-incorrect-spelling.t …………… skipped: Spec validation is disabled for now
t/32-regex-as-value.t ………………. ok
t/33-keep-errsv.t ………………….. ok
t/34-recursive-validation.t …………. ok
t/release-cpan-changes.t ……………. skipped: these tests are for release candidate testing
t/release-eol.t ……………………. skipped: these tests are for release candidate testing
t/release-no-tabs.t ………………… skipped: these tests are for release candidate testing
t/release-pod-coverage.t ……………. skipped: these tests are for release candidate testing
t/release-pod-linkcheck.t …………… skipped: these tests are for release candidate testing
t/release-pod-no404s.t ……………… skipped: these tests are for release candidate testing
t/release-pod-spell.t ………………. skipped: these tests are for release candidate testing
t/release-pod-syntax.t ……………… skipped: these tests are for release candidate testing
t/release-pp-01-validate.t ………….. skipped: these tests are for testing by the release
t/release-pp-02-noop.t ……………… skipped: these tests are for testing by the release
t/release-pp-03-attribute.t …………. skipped: these tests are for testing by the release
t/release-pp-04-defaults.t ………….. skipped: these tests are for testing by the release
t/release-pp-05-noop_default.t ………. skipped: these tests are for testing by the release
t/release-pp-06-options.t …………… skipped: these tests are for testing by the release
t/release-pp-07-with.t ……………… skipped: these tests are for testing by the release
t/release-pp-08-noop_with.t …………. skipped: these tests are for testing by the release
t/release-pp-09-regex.t …………….. skipped: these tests are for testing by the release
t/release-pp-10-noop_regex.t ………… skipped: these tests are for testing by the release
t/release-pp-11-cb.t ……………….. skipped: these tests are for testing by the release
t/release-pp-12-noop_cb.t …………… skipped: these tests are for testing by the release
t/release-pp-13-taint.t …………….. skipped: these tests are for testing by the release
t/release-pp-14-no_validate.t ……….. skipped: these tests are for testing by the release
t/release-pp-15-case.t ……………… skipped: these tests are for testing by the release
t/release-pp-16-normalize.t …………. skipped: these tests are for testing by the release
t/release-pp-17-callbacks.t …………. skipped: these tests are for testing by the release
t/release-pp-18-depends.t …………… skipped: these tests are for testing by the release
t/release-pp-19-untaint.t …………… skipped: these tests are for testing by the release
t/release-pp-21-can.t ………………. skipped: these tests are for testing by the release
t/release-pp-22-overload-can-bug.t …… skipped: these tests are for testing by the release
t/release-pp-23-readonly.t ………….. skipped: these tests are for testing by the release
t/release-pp-24-tied.t ……………… skipped: these tests are for testing by the release
t/release-pp-25-undef-regex.t ……….. skipped: these tests are for testing by the release
t/release-pp-26-isa.t ………………. skipped: these tests are for testing by the release
t/release-pp-27-string-as-type.t …….. skipped: these tests are for testing by the release
t/release-pp-28-readonly-return.t ……. skipped: these tests are for testing by the release
t/release-pp-29-taint-mode.t ………… skipped: these tests are for testing by the release
t/release-pp-30-hashref-alteration.t …. skipped: these tests are for testing by the release
t/release-pp-31-incorrect-spelling.t …. skipped: these tests are for testing by the release
t/release-pp-32-regex-as-value.t …….. skipped: these tests are for testing by the release
t/release-pp-33-keep-errsv.t ………… skipped: these tests are for testing by the release
t/release-pp-34-recursive-validation.t .. skipped: these tests are for testing by the release
t/release-pp-is-loaded.t ……………. skipped: these tests are for release candidate testing
t/release-xs-is-loaded.t ……………. skipped: these tests are for release candidate testing
t/release-xs-segfault.t …………….. skipped: these tests are for release candidate testing
All tests successful.
Test Summary Report
——————-
t/34-recursive-validation.t (Wstat: 0 Tests: 1 Failed: 0)
TODO passed: 1
Files=77, Tests=502, 4 wallclock secs ( 0.33 usr 0.12 sys + 2.46 cusr 0.36 csys = 3.27 CPU)
Result: PASS
DROLSKY/Params-Validate-1.07.tar.gz
./Build test — OK
Running Build install
Building Params-Validate
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/lib/perl/5.12.4/auto/Params/Validate/XS/XS.so
Installing /usr/local/lib/perl/5.12.4/auto/Params/Validate/XS/XS.bs
Installing /usr/local/lib/perl/5.12.4/Params/ValidateXS.pm
Installing /usr/local/lib/perl/5.12.4/Params/ValidatePP.pm
Installing /usr/local/lib/perl/5.12.4/Params/Validate.pm
Installing /usr/local/lib/perl/5.12.4/Params/Validate/PP.pm
Installing /usr/local/lib/perl/5.12.4/Params/Validate/XS.pm
Installing /usr/local/lib/perl/5.12.4/Params/Validate/Constants.pm
Installing /usr/local/lib/perl/5.12.4/Attribute/Params/Validate.pm
Installing /usr/local/man/man3/Attribute::Params::Validate.3pm
Installing /usr/local/man/man3/Params::Validate.3pm
DROLSKY/Params-Validate-1.07.tar.gz
./Build install — OK
Running install for module ‚Math::Calc::Units‘
Running make for S/SF/SFINK/Math-Calc-Units-1.07.tar.gz
Checksum for /home/drmadmin/.cpan/sources/authors/id/S/SF/SFINK/Math-Calc-Units-1.07.tar.gz ok
CPAN.pm: Going to build S/SF/SFINK/Math-Calc-Units-1.07.tar.gz
Checking if your kit is complete…
Looks good
Writing Makefile for Math::Calc::Units
cp Units/Convert/Byte.pm blib/lib/Math/Calc/Units/Convert/Byte.pm
cp Units/Convert/Multi.pm blib/lib/Math/Calc/Units/Convert/Multi.pm
cp Units/Convert/Combo.pm blib/lib/Math/Calc/Units/Convert/Combo.pm
cp Units/Grammar.y blib/lib/Math/Calc/Units/Grammar.y
cp Units/Convert/Metric.pm blib/lib/Math/Calc/Units/Convert/Metric.pm
cp Units/Grammar.pm blib/lib/Math/Calc/Units/Grammar.pm
cp Units/Convert/Date.pm blib/lib/Math/Calc/Units/Convert/Date.pm
cp Units/Convert.pm blib/lib/Math/Calc/Units/Convert.pm
cp Units/Convert/Base2Metric.pm blib/lib/Math/Calc/Units/Convert/Base2Metric.pm
cp Units/Rank.pm blib/lib/Math/Calc/Units/Rank.pm
cp Units/Convert/Base.pm blib/lib/Math/Calc/Units/Convert/Base.pm
cp Units/Convert/Distance.pm blib/lib/Math/Calc/Units/Convert/Distance.pm
cp Units/Compute.pm blib/lib/Math/Calc/Units/Compute.pm
cp Units.pm blib/lib/Math/Calc/Units.pm
cp Units/Convert/Time.pm blib/lib/Math/Calc/Units/Convert/Time.pm
cp script/ucalc blib/script/ucalc
/usr/bin/perl -MExtUtils::MY -e ‚MY->fixin(shift)‘ — blib/script/ucalc
Manifying blib/man3/Math::Calc::Units.3pm
SFINK/Math-Calc-Units-1.07.tar.gz
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl „-MExtUtils::Command::MM“ „-e“ „test_harness(0, ‚blib/lib‘, ‚blib/arch‘)“ t/*.t
t/main.t .. ok
t/pod.t … skipped: Test::Pod 1.00 required for testing POD
All tests successful.
Files=2, Tests=64, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.13 cusr 0.01 csys = 0.18 CPU)
Result: PASS
SFINK/Math-Calc-Units-1.07.tar.gz
/usr/bin/make test — OK
Running make install
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Compute.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Rank.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Grammar.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Grammar.y
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Date.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Byte.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Base.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Distance.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Base2Metric.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Time.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Multi.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Combo.pm
Installing /usr/local/share/perl/5.12.4/Math/Calc/Units/Convert/Metric.pm
Installing /usr/local/man/man3/Math::Calc::Units.3pm
Appending installation info to /usr/local/lib/perl/5.12.4/perllocal.pod
SFINK/Math-Calc-Units-1.07.tar.gz
/usr/bin/make install — OK
Running install for module ‚Config::Tiny‘
Running make for A/AD/ADAMK/Config-Tiny-2.14.tar.gz
Checksum for /home/drmadmin/.cpan/sources/authors/id/A/AD/ADAMK/Config-Tiny-2.14.tar.gz ok
CPAN.pm: Going to build A/AD/ADAMK/Config-Tiny-2.14.tar.gz
Checking if your kit is complete…
Looks good
Writing Makefile for Config::Tiny
cp lib/Config/Tiny.pm blib/lib/Config/Tiny.pm
Manifying blib/man3/Config::Tiny.3pm
ADAMK/Config-Tiny-2.14.tar.gz
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl „-MExtUtils::Command::MM“ „-e“ „test_harness(0, ‚blib/lib‘, ‚blib/arch‘)“ t/*.t
t/01_compile.t .. ok
t/02_main.t ….. ok
All tests successful.
Files=2, Tests=34, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.06 cusr 0.01 csys = 0.10 CPU)
Result: PASS
ADAMK/Config-Tiny-2.14.tar.gz
/usr/bin/make test — OK
Running make install
Installing /usr/local/share/perl/5.12.4/Config/Tiny.pm
Installing /usr/local/man/man3/Config::Tiny.3pm
Appending installation info to /usr/local/lib/perl/5.12.4/perllocal.pod
ADAMK/Config-Tiny-2.14.tar.gz
/usr/bin/make install — OK
Running make for T/TO/TONVOON/Nagios-Plugin-0.36.tar.gz
Has already been unwrapped into directory /home/drmadmin/.cpan/build/Nagios-Plugin-0.36-HwusWi
CPAN.pm: Going to build T/TO/TONVOON/Nagios-Plugin-0.36.tar.gz
cp lib/Nagios/Plugin/ExitResult.pm blib/lib/Nagios/Plugin/ExitResult.pm
cp lib/Nagios/Plugin/Functions.pm blib/lib/Nagios/Plugin/Functions.pm
cp lib/Nagios/Plugin/Threshold.pm blib/lib/Nagios/Plugin/Threshold.pm
cp lib/Nagios/Plugin/Range.pm blib/lib/Nagios/Plugin/Range.pm
cp lib/Nagios/Plugin/Getopt.pm blib/lib/Nagios/Plugin/Getopt.pm
cp lib/Nagios/Plugin/Performance.pm blib/lib/Nagios/Plugin/Performance.pm
cp lib/Nagios/Plugin/Config.pm blib/lib/Nagios/Plugin/Config.pm
cp lib/Nagios/Plugin.pm blib/lib/Nagios/Plugin.pm
Manifying blib/man3/Nagios::Plugin::ExitResult.3pm
Manifying blib/man3/Nagios::Plugin::Functions.3pm
Manifying blib/man3/Nagios::Plugin::Threshold.3pm
Manifying blib/man3/Nagios::Plugin::Range.3pm
Manifying blib/man3/Nagios::Plugin::Getopt.3pm
Manifying blib/man3/Nagios::Plugin::Performance.3pm
Manifying blib/man3/Nagios::Plugin::Config.3pm
Manifying blib/man3/Nagios::Plugin.3pm
TONVOON/Nagios-Plugin-0.36.tar.gz
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl „-MExtUtils::Command::MM“ „-e“ „test_harness(0, ‚blib/lib‘, ‚blib/arch‘)“ t/*.t
t/check_stuff.t ………………. ok
t/Nagios-Plugin-01.t ………….. ok
t/Nagios-Plugin-02.t ………….. ok
t/Nagios-Plugin-03.t ………….. ok
t/Nagios-Plugin-04.t ………….. ok
t/Nagios-Plugin-Functions-01.t …. 1/113 defined(%hash) is deprecated at t/Nagios-Plugin-Functions-01.t line 22.
(Maybe you should just omit the defined()?)
t/Nagios-Plugin-Functions-01.t …. ok
t/Nagios-Plugin-Functions-02.t …. ok
t/Nagios-Plugin-Functions-03.t …. ok
t/Nagios-Plugin-Getopt-01.t ……. ok
t/Nagios-Plugin-Getopt-02.t ……. ok
t/Nagios-Plugin-Getopt-03.t ……. ok
t/Nagios-Plugin-Getopt-04.t ……. ok
t/Nagios-Plugin-Performance-02.t .. ok
t/Nagios-Plugin-Performance.t ….. ok
t/Nagios-Plugin-Range.t ……….. ok
t/Nagios-Plugin-Threshold.t ……. ok
All tests successful.
Files=16, Tests=975, 4 wallclock secs ( 0.20 usr 0.02 sys + 3.84 cusr 0.20 csys = 4.26 CPU)
Result: PASS
TONVOON/Nagios-Plugin-0.36.tar.gz
/usr/bin/make test — OK
Running make install
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin.pm
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin/Performance.pm
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin/Functions.pm
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin/Range.pm
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin/Threshold.pm
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin/ExitResult.pm
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin/Config.pm
Installing /usr/local/share/perl/5.12.4/Nagios/Plugin/Getopt.pm
Installing /usr/local/man/man3/Nagios::Plugin.3pm
Installing /usr/local/man/man3/Nagios::Plugin::Performance.3pm
Installing /usr/local/man/man3/Nagios::Plugin::Getopt.3pm
Installing /usr/local/man/man3/Nagios::Plugin::Threshold.3pm
Installing /usr/local/man/man3/Nagios::Plugin::Range.3pm
Installing /usr/local/man/man3/Nagios::Plugin::Functions.3pm
Installing /usr/local/man/man3/Nagios::Plugin::ExitResult.3pm
Installing /usr/local/man/man3/Nagios::Plugin::Config.3pm
Appending installation info to /usr/local/lib/perl/5.12.4/perllocal.pod
TONVOON/Nagios-Plugin-0.36.tar.gz
/usr/bin/make install — OK
[/EXPAND]

cpan[3]> quit

Fertig.
Alternativ kann man auch beim Kompilieren von Nagios die Perl-Erweiterung installieren:

./configure --enable-perl-modules

Anschließend noch Make, Make Install machen.
Noch nice to know, wie man sich die bisher installierten Perl Module auflisten lassen kann:

instmodsh

Bringt die Ausgabe:

Available commands are:
l            - List all installed modules
m    - Select a module
q            - Quit the program
cmd?
At cmd? prompt type l to list all installed modules:

Mit der Eingabe von l , bekommt man nun die Ausgabe der Module:

cmd? l
Sample outputs:
Installed modules are:
Archive::Tar
CPAN
Class::Spiffy
Compress::Zlib
Cwd
Digest::SHA

Nagios aktualisieren auf die aktuelle Version 3.5.0 unter Ubuntu

Wie man Nagios in Kombination mit Centreon auf einem Ubuntu Server installiert habe ich ja schon in vergangenem Jahr beschrieben.
Jetzt ist ja schon ein bisschen Zeit vergangen und man möchte eventuell Nagios mal auf Vordermann bringen und auf die aktuelle Version 3.5.0 updaten.
Dafür habe ich euch hier eine kleine Anleitung geschrieben:
 
Voraussetzungen:
Natürlich müssen die Kompiler sowie make etc. installiert sein. Wenn ihr bereits nach meiner früheren Anleitung gegangen seit, dann habt ihr diese bereits installiert.

apt-get install gcc make g++ build-essentials

Schritt 1: Aktuelle Nagios Version herunterladen

wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.5.0.tar.gz

Schritt 2: Nagios entpacken

tar xzfv nagios-3.5.0.tar.gz

[EXPAND Entpacken Log]
nagios/
nagios/OutputTrap.pm
nagios/p1.pl
nagios/html/
nagios/html/rss-newsfeed.php
nagios/html/Makefile.in
nagios/html/js/
nagios/html/js/jquery-1.7.1.min.js
nagios/html/images/
nagios/html/images/splunk2.gif
nagios/html/images/contexthelp2.gif
nagios/html/images/NagiosEnterprises-whitebg-112×46.png
nagios/html/images/zoom1.gif
nagios/html/images/thermok.png
nagios/html/images/trendshost.png
nagios/html/images/action.gif
nagios/html/images/contexthelp1.gif
nagios/html/images/start.gif
nagios/html/images/comment.gif
nagios/html/images/empty.gif
nagios/html/images/thermwarn.png
nagios/html/images/zoom2.gif
nagios/html/images/recovery.png
nagios/html/images/noack.gif
nagios/html/images/unknown.png
nagios/html/images/hostevent.gif
nagios/html/images/delete.gif
nagios/html/images/b_last2.png
nagios/html/images/critical.png
nagios/html/images/up.gif
nagios/html/images/downtime.gif
nagios/html/images/logrotate.png
nagios/html/images/trends.gif
nagios/html/images/right.gif
nagios/html/images/left.gif
nagios/html/images/passiveonly.gif
nagios/html/images/stop.gif
nagios/html/images/notes.gif
nagios/html/images/detail.gif
nagios/html/images/favicon.ico
nagios/html/images/weblogo1.png
nagios/html/images/redundancy.png
nagios/html/images/Nagios-clearbg.png
nagios/html/images/tacdisabled.png
nagios/html/images/delay.gif
nagios/html/images/enabled.gif
nagios/html/images/redudancy.png
nagios/html/images/history.gif
nagios/html/images/status.gif
nagios/html/images/status4.gif
nagios/html/images/tacdisabled.jpg
nagios/html/images/down.gif
nagios/html/images/restart.gif
nagios/html/images/logofullsize.png
nagios/html/images/greendot.gif
nagios/html/images/extinfo.gif
nagios/html/images/sflogo.png
nagios/html/images/splunk1.gif
nagios/html/images/orangedot.gif
nagios/html/images/b_next2.png
nagios/html/images/thermcrit.png
nagios/html/images/notify.gif
nagios/html/images/status3.gif
nagios/html/images/ack.gif
nagios/html/images/b_prev2.png
nagios/html/images/info.png
nagios/html/images/globe-support-150×150.png
nagios/html/images/trendssvc.png
nagios/html/images/ndisabled.gif
nagios/html/images/disabled.gif
nagios/html/images/serviceevent.gif
nagios/html/images/command.png
nagios/html/images/tacenabled.jpg
nagios/html/images/sblogo.png
nagios/html/images/b_first2.png
nagios/html/images/tacenabled.png
nagios/html/images/flapping.gif
nagios/html/images/histogram.png
nagios/html/images/warning.png
nagios/html/images/status2.gif
nagios/html/images/logos/
nagios/html/images/logos/nagios.gd2
nagios/html/images/logos/nagiosvrml.png
nagios/html/images/logos/unknown.gd2
nagios/html/images/logos/unknown.gif
nagios/html/images/logos/nagios.gif
nagios/html/ssi/
nagios/html/ssi/README
nagios/html/rss-corefeed.php
nagios/html/docs/
nagios/html/docs/index.html
nagios/html/stylesheets/
nagios/html/stylesheets/ministatus.css
nagios/html/stylesheets/histogram.css
nagios/html/stylesheets/statusmap.css
nagios/html/stylesheets/status.css
nagios/html/stylesheets/showlog.css
nagios/html/stylesheets/tac.css
nagios/html/stylesheets/history.css
nagios/html/stylesheets/notifications.css
nagios/html/stylesheets/trends.css
nagios/html/stylesheets/cmd.css
nagios/html/stylesheets/summary.css
nagios/html/stylesheets/config.css
nagios/html/stylesheets/avail.css
nagios/html/stylesheets/extinfo.css
nagios/html/stylesheets/outages.css
nagios/html/stylesheets/common.css
nagios/html/stylesheets/checksanity.css
nagios/html/.gitignore
nagios/html/includes/
nagios/html/includes/jquery-1.7.1.min.js
nagios/html/includes/rss/
nagios/html/includes/rss/TROUBLESHOOTING
nagios/html/includes/rss/rss_utils.inc
nagios/html/includes/rss/scripts/
nagios/html/includes/rss/scripts/magpie_debug.php
nagios/html/includes/rss/scripts/magpie_simple.php
nagios/html/includes/rss/scripts/README
nagios/html/includes/rss/scripts/magpie_slashbox.php
nagios/html/includes/rss/scripts/simple_smarty.php
nagios/html/includes/rss/scripts/smarty_plugin/
nagios/html/includes/rss/scripts/smarty_plugin/modifier.rss_date_parse.php
nagios/html/includes/rss/scripts/templates/
nagios/html/includes/rss/scripts/templates/simple.smarty
nagios/html/includes/rss/rss_parse.inc
nagios/html/includes/rss/htdocs/
nagios/html/includes/rss/htdocs/cookbook.html
nagios/html/includes/rss/htdocs/index.html
nagios/html/includes/rss/extlib/
nagios/html/includes/rss/extlib/Snoopy.class.inc
nagios/html/includes/rss/AUTHORS
nagios/html/includes/rss/cookbook
nagios/html/includes/rss/INSTALL
nagios/html/includes/rss/CHANGES
nagios/html/includes/rss/rss_fetch.inc
nagios/html/includes/rss/README
nagios/html/includes/rss/NEWS
nagios/html/includes/rss/ChangeLog
nagios/html/includes/rss/rss_cache.inc
nagios/html/includes/utils.inc.php
nagios/html/index.php
nagios/html/media/
nagios/html/robots.txt
nagios/html/main.php
nagios/html/side.php
nagios/html/config.inc.php.in
nagios/html/contexthelp/
nagios/html/contexthelp/I1.html
nagios/html/contexthelp/H3.html
nagios/html/contexthelp/H7.html
nagios/html/contexthelp/G5.html
nagios/html/contexthelp/I5.html
nagios/html/contexthelp/D1.html
nagios/html/contexthelp/A6.html
nagios/html/contexthelp/I7.html
nagios/html/contexthelp/L3.html
nagios/html/contexthelp/B1.html
nagios/html/contexthelp/I4.html
nagios/html/contexthelp/L12.html
nagios/html/contexthelp/N2.html
nagios/html/contexthelp/A1.html
nagios/html/contexthelp/A5.html
nagios/html/contexthelp/E1.html
nagios/html/contexthelp/I3.html
nagios/html/contexthelp/M5.html
nagios/html/contexthelp/N7.html
nagios/html/contexthelp/N4.html
nagios/html/contexthelp/F1.html
nagios/html/contexthelp/H5.html
nagios/html/contexthelp/I8.html
nagios/html/contexthelp/H1.html
nagios/html/contexthelp/I6.html
nagios/html/contexthelp/M6.html
nagios/html/contexthelp/A7.html
nagios/html/contexthelp/N3.html
nagios/html/contexthelp/G4.html
nagios/html/contexthelp/L10.html
nagios/html/contexthelp/M4.html
nagios/html/contexthelp/M1.html
nagios/html/contexthelp/M3.html
nagios/html/contexthelp/L11.html
nagios/html/contexthelp/L9.html
nagios/html/contexthelp/A3.html
nagios/html/contexthelp/I9.html
nagios/html/contexthelp/L6.html
nagios/html/contexthelp/I2.html
nagios/html/contexthelp/A2.html
nagios/html/contexthelp/N5.html
nagios/html/contexthelp/L13.html
nagios/html/contexthelp/H6.html
nagios/html/contexthelp/C1.html
nagios/html/contexthelp/M2.html
nagios/html/contexthelp/L1.html
nagios/html/contexthelp/G3.html
nagios/html/contexthelp/N1.html
nagios/html/contexthelp/H8.html
nagios/html/contexthelp/A4.html
nagios/html/contexthelp/L7.html
nagios/html/contexthelp/G1.html
nagios/html/contexthelp/L5.html
nagios/html/contexthelp/H2.html
nagios/html/contexthelp/J1.html
nagios/html/contexthelp/G6.html
nagios/html/contexthelp/H4.html
nagios/html/contexthelp/L4.html
nagios/html/contexthelp/K1.html
nagios/html/contexthelp/N6.html
nagios/html/contexthelp/L2.html
nagios/html/contexthelp/G2.html
nagios/html/contexthelp/L8.html
nagios/Makefile.in
nagios/sample-config/
nagios/sample-config/default-object/
nagios/sample-config/mrtg.cfg.in
nagios/sample-config/nagios.cfg.in
nagios/sample-config/template-extinfo/
nagios/sample-config/.gitignore
nagios/sample-config/README
nagios/sample-config/cgi.cfg.in
nagios/sample-config/resource.cfg.in
nagios/sample-config/httpd.conf.in
nagios/sample-config/template-object/
nagios/sample-config/template-object/contacts.cfg.in
nagios/sample-config/template-object/windows.cfg.in
nagios/sample-config/template-object/commands.cfg.in
nagios/sample-config/template-object/printer.cfg.in
nagios/sample-config/template-object/switch.cfg.in
nagios/sample-config/template-object/timeperiods.cfg.in
nagios/sample-config/template-object/localhost.cfg.in
nagios/sample-config/template-object/templates.cfg.in
nagios/sample-config/template-object/README
nagios/mkpackage
nagios/LEGAL
nagios/common/
nagios/common/macros.c
nagios/common/Makefile.in
nagios/common/statusdata.c
nagios/common/objects.c
nagios/common/snprintf.c
nagios/common/.gitignore
nagios/common/shared.c
nagios/common/comments.c
nagios/common/skiplist.c
nagios/common/downtime.c
nagios/subst.in
nagios/xdata/
nagios/xdata/Makefile.in
nagios/xdata/xrddefault.h
nagios/xdata/xcddefault.h
nagios/xdata/xodtemplate.c
nagios/xdata/.gitignore
nagios/xdata/xsddefault.h
nagios/xdata/xrddefault.c
nagios/xdata/xpddefault.c
nagios/xdata/xodtemplate.h
nagios/xdata/xsddefault.c
nagios/xdata/xdddefault.h
nagios/xdata/xpddefault.h
nagios/xdata/xdddefault.c
nagios/xdata/xcddefault.c
nagios/t-tap/
nagios/t-tap/stub_broker.c
nagios/t-tap/Makefile.in
nagios/t-tap/test_each.t
nagios/t-tap/stub_downtime.c
nagios/t-tap/var/
nagios/t-tap/var/nagios.log.dummy
nagios/t-tap/var/.gitignore
nagios/t-tap/var/nagios.log.expected
nagios/t-tap/test_nagios_config.c
nagios/t-tap/test_xsddefault.c
nagios/t-tap/stub_checks.c
nagios/t-tap/stub_perfdata.c
nagios/t-tap/test_logging.c
nagios/t-tap/stub_utils.c
nagios/t-tap/stub_events.c
nagios/t-tap/stub_shared.c
nagios/t-tap/.gitignore
nagios/t-tap/stub_flapping.c
nagios/t-tap/test_downtime.c
nagios/t-tap/test_checks.c
nagios/t-tap/test_timeperiods.c
nagios/t-tap/stub_logging.c
nagios/t-tap/stub_comments.c
nagios/t-tap/smallconfig/
nagios/t-tap/smallconfig/resource.cfg
nagios/t-tap/smallconfig/nagios.cfg
nagios/t-tap/smallconfig/retention.dat
nagios/t-tap/smallconfig/minimal.cfg
nagios/t-tap/stub_statusdata.c
nagios/t-tap/test_commands.c
nagios/t-tap/stub_sehandlers.c
nagios/t-tap/test_strtoul.c
nagios/t-tap/stub_notifications.c
nagios/t-tap/stub_objects.c
nagios/t-tap/stub_sretention.c
nagios/t-tap/test_events.c
nagios/t-tap/stub_xdddefault.c
nagios/t-tap/test-stubs.c
nagios/UPGRADING
nagios/module/
nagios/module/Makefile.in
nagios/module/.gitignore
nagios/module/helloworld.c
nagios/pkg/
nagios/pkg/rpm/
nagios/make-tarball
nagios/nagios.spec
nagios/base/
nagios/base/netutils.c
nagios/base/config.c
nagios/base/events.c
nagios/base/Makefile.in
nagios/base/nagiostats.c
nagios/base/checks.c
nagios/base/sretention.c
nagios/base/sehandlers.c
nagios/base/perfdata.c
nagios/base/utils.c
nagios/base/commands.c
nagios/base/.gitignore
nagios/base/logging.c
nagios/base/nebmods.c
nagios/base/notifications.c
nagios/base/broker.c
nagios/base/nagios.c
nagios/base/flapping.c
nagios/tools/
nagios/tools/tinderbox_build
nagios/Changelog
nagios/update-version
nagios/.gitignore
nagios/config.sub
nagios/THANKS
nagios/config.guess
nagios/LICENSE
nagios/cgi/
nagios/cgi/config.c
nagios/cgi/cmd.c
nagios/cgi/trends.c
nagios/cgi/outages.c
nagios/cgi/Makefile.in
nagios/cgi/history.c
nagios/cgi/histogram.c
nagios/cgi/statuswrl.c
nagios/cgi/summary.c
nagios/cgi/getcgi.c
nagios/cgi/avail.c
nagios/cgi/cgiutils.c
nagios/cgi/.gitignore
nagios/cgi/extinfo.c
nagios/cgi/status.c
nagios/cgi/cgiauth.c
nagios/cgi/notifications.c
nagios/cgi/tac.c
nagios/cgi/showlog.c
nagios/cgi/statuswml.c
nagios/cgi/extcmd_list.c
nagios/cgi/statusmap.c
nagios/contrib/
nagios/contrib/eventhandlers/
nagios/contrib/eventhandlers/enable_active_service_checks
nagios/contrib/eventhandlers/submit_check_result
nagios/contrib/eventhandlers/distributed-monitoring/
nagios/contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
nagios/contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler
nagios/contrib/eventhandlers/enable_notifications
nagios/contrib/eventhandlers/disable_active_service_checks
nagios/contrib/eventhandlers/redundancy-scenario1/
nagios/contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event
nagios/contrib/eventhandlers/redundancy-scenario1/handle-master-host-event
nagios/contrib/eventhandlers/disable_notifications
nagios/contrib/p1.pl
nagios/contrib/Makefile.in
nagios/contrib/traceroute.cgi
nagios/contrib/epn_nagios.h
nagios/contrib/convertcfg.c
nagios/contrib/daemonchk.c
nagios/contrib/.gitignore
nagios/contrib/database/
nagios/contrib/README
nagios/contrib/mini_epn.c
nagios/contrib/exfoliation/
nagios/contrib/exfoliation/images/
nagios/contrib/exfoliation/images/splunk2.gif
nagios/contrib/exfoliation/images/contexthelp2.gif
nagios/contrib/exfoliation/images/NagiosEnterprises-whitebg-112×46.png
nagios/contrib/exfoliation/images/zoom1.gif
nagios/contrib/exfoliation/images/thermok.png
nagios/contrib/exfoliation/images/trendshost.png
nagios/contrib/exfoliation/images/action.gif
nagios/contrib/exfoliation/images/contexthelp1.gif
nagios/contrib/exfoliation/images/start.gif
nagios/contrib/exfoliation/images/comment.gif
nagios/contrib/exfoliation/images/empty.gif
nagios/contrib/exfoliation/images/thermwarn.png
nagios/contrib/exfoliation/images/zoom2.gif
nagios/contrib/exfoliation/images/recovery.png
nagios/contrib/exfoliation/images/noack.gif
nagios/contrib/exfoliation/images/unknown.png
nagios/contrib/exfoliation/images/hostevent.gif
nagios/contrib/exfoliation/images/action-graph.gif
nagios/contrib/exfoliation/images/delete.gif
nagios/contrib/exfoliation/images/action-nagios.gif
nagios/contrib/exfoliation/images/critical.png
nagios/contrib/exfoliation/images/up.gif
nagios/contrib/exfoliation/images/downtime.gif
nagios/contrib/exfoliation/images/logrotate.png
nagios/contrib/exfoliation/images/trends.gif
nagios/contrib/exfoliation/images/right.gif
nagios/contrib/exfoliation/images/left.gif
nagios/contrib/exfoliation/images/passiveonly.gif
nagios/contrib/exfoliation/images/stop.gif
nagios/contrib/exfoliation/images/notes.gif
nagios/contrib/exfoliation/images/detail.gif
nagios/contrib/exfoliation/images/favicon.ico
nagios/contrib/exfoliation/images/weblogo1.png
nagios/contrib/exfoliation/images/redundancy.png
nagios/contrib/exfoliation/images/tacdisabled.png
nagios/contrib/exfoliation/images/delay.gif
nagios/contrib/exfoliation/images/enabled.gif
nagios/contrib/exfoliation/images/history.gif
nagios/contrib/exfoliation/images/status.gif
nagios/contrib/exfoliation/images/status4.gif
nagios/contrib/exfoliation/images/action-orig.gif
nagios/contrib/exfoliation/images/tacdisabled.jpg
nagios/contrib/exfoliation/images/down.gif
nagios/contrib/exfoliation/images/restart.gif
nagios/contrib/exfoliation/images/logofullsize.png
nagios/contrib/exfoliation/images/greendot.gif
nagios/contrib/exfoliation/images/extinfo.gif
nagios/contrib/exfoliation/images/sflogo.png
nagios/contrib/exfoliation/images/splunk1.gif
nagios/contrib/exfoliation/images/orangedot.gif
nagios/contrib/exfoliation/images/thermcrit.png
nagios/contrib/exfoliation/images/notify.gif
nagios/contrib/exfoliation/images/status3.gif
nagios/contrib/exfoliation/images/ack.gif
nagios/contrib/exfoliation/images/info.png
nagios/contrib/exfoliation/images/trendssvc.png
nagios/contrib/exfoliation/images/ndisabled.gif
nagios/contrib/exfoliation/images/disabled.gif
nagios/contrib/exfoliation/images/serviceevent.gif
nagios/contrib/exfoliation/images/command.png
nagios/contrib/exfoliation/images/tacenabled.jpg
nagios/contrib/exfoliation/images/graph.gif
nagios/contrib/exfoliation/images/sblogo.png
nagios/contrib/exfoliation/images/tacenabled.png
nagios/contrib/exfoliation/images/flapping.gif
nagios/contrib/exfoliation/images/histogram.png
nagios/contrib/exfoliation/images/warning.png
nagios/contrib/exfoliation/images/status2.gif
nagios/contrib/exfoliation/images/logos/
nagios/contrib/exfoliation/images/logos/redhat.gif
nagios/contrib/exfoliation/images/logos/turbolinux.gif
nagios/contrib/exfoliation/images/logos/turbolinux.jpg
nagios/contrib/exfoliation/images/logos/caldera.jpg
nagios/contrib/exfoliation/images/logos/irix.jpg
nagios/contrib/exfoliation/images/logos/database.gd2
nagios/contrib/exfoliation/images/logos/fax.gif
nagios/contrib/exfoliation/images/logos/stampede.jpg
nagios/contrib/exfoliation/images/logos/irix.png
nagios/contrib/exfoliation/images/logos/notebook.gd2
nagios/contrib/exfoliation/images/logos/switch40.gd2
nagios/contrib/exfoliation/images/logos/debian.gif
nagios/contrib/exfoliation/images/logos/hub.gd2
nagios/contrib/exfoliation/images/logos/openbsd.gd2
nagios/contrib/exfoliation/images/logos/amiga.jpg
nagios/contrib/exfoliation/images/logos/amiga.gd2
nagios/contrib/exfoliation/images/logos/switch.gd2
nagios/contrib/exfoliation/images/logos/yellowdog.gd2
nagios/contrib/exfoliation/images/logos/storm.gif
nagios/contrib/exfoliation/images/logos/hpux.gd2
nagios/contrib/exfoliation/images/logos/win40.jpg
nagios/contrib/exfoliation/images/logos/storm.png
nagios/contrib/exfoliation/images/logos/nagios.gd2
nagios/contrib/exfoliation/images/logos/linux40.png
nagios/contrib/exfoliation/images/logos/unicos.gd2
nagios/contrib/exfoliation/images/logos/redhat.gd2
nagios/contrib/exfoliation/images/logos/rack-server.gd2
nagios/contrib/exfoliation/images/logos/aix.jpg
nagios/contrib/exfoliation/images/logos/wifi.gif
nagios/contrib/exfoliation/images/logos/san.gd2
nagios/contrib/exfoliation/images/logos/mandrake.jpg
nagios/contrib/exfoliation/images/logos/openbsd.jpg
nagios/contrib/exfoliation/images/logos/ng-switch40.gif
nagios/contrib/exfoliation/images/logos/internet_device.png
nagios/contrib/exfoliation/images/logos/novell40.gd2
nagios/contrib/exfoliation/images/logos/linux40.gd2
nagios/contrib/exfoliation/images/logos/ultrapenguin.png
nagios/contrib/exfoliation/images/logos/mac40.jpg
nagios/contrib/exfoliation/images/logos/apple.png
nagios/contrib/exfoliation/images/logos/ng-switch40.gd2
nagios/contrib/exfoliation/images/logos/ultrapenguin.jpg
nagios/contrib/exfoliation/images/logos/router40.jpg
nagios/contrib/exfoliation/images/logos/yellowdog.jpg
nagios/contrib/exfoliation/images/logos/stampede.gd2
nagios/contrib/exfoliation/images/logos/stampede.png
nagios/contrib/exfoliation/images/logos/debian.gd2
nagios/contrib/exfoliation/images/logos/win40.gd2
nagios/contrib/exfoliation/images/logos/internet.gif
nagios/contrib/exfoliation/images/logos/ip-pbx.gif
nagios/contrib/exfoliation/images/logos/freebsd40.png
nagios/contrib/exfoliation/images/logos/ultrapenguin.gd2
nagios/contrib/exfoliation/images/logos/signal.png
nagios/contrib/exfoliation/images/logos/ultrapenguin.gif
nagios/contrib/exfoliation/images/logos/logo.gd2
nagios/contrib/exfoliation/images/logos/hpux.png
nagios/contrib/exfoliation/images/logos/switch40.gif
nagios/contrib/exfoliation/images/logos/slackware.gif
nagios/contrib/exfoliation/images/logos/desktop-server.gd2
nagios/contrib/exfoliation/images/logos/freebsd40.jpg
nagios/contrib/exfoliation/images/logos/workstation.gif
nagios/contrib/exfoliation/images/logos/apple.gif
nagios/contrib/exfoliation/images/logos/irix.gd2
nagios/contrib/exfoliation/images/logos/freebsd40.gd2
nagios/contrib/exfoliation/images/logos/fax.gd2
nagios/contrib/exfoliation/images/logos/globe.png
nagios/contrib/exfoliation/images/logos/next.png
nagios/contrib/exfoliation/images/logos/beos.gif
nagios/contrib/exfoliation/images/logos/openbsd.png
nagios/contrib/exfoliation/images/logos/cat5000.gd2
nagios/contrib/exfoliation/images/logos/mandrake.gd2
nagios/contrib/exfoliation/images/logos/next.jpg
nagios/contrib/exfoliation/images/logos/sun40.png
nagios/contrib/exfoliation/images/logos/switch.gif
nagios/contrib/exfoliation/images/logos/ng-switch40.jpg
nagios/contrib/exfoliation/images/logos/aix.gd2
nagios/contrib/exfoliation/images/logos/aix.png
nagios/contrib/exfoliation/images/logos/caldera.gif
nagios/contrib/exfoliation/images/logos/sun40.jpg
nagios/contrib/exfoliation/images/logos/novell40.png
nagios/contrib/exfoliation/images/logos/workstation_locked.png
nagios/contrib/exfoliation/images/logos/mac40.gd2
nagios/contrib/exfoliation/images/logos/rack-server.gif
nagios/contrib/exfoliation/images/logos/linux40.gif
nagios/contrib/exfoliation/images/logos/wifi.gd2
nagios/contrib/exfoliation/images/logos/debian.jpg
nagios/contrib/exfoliation/images/logos/win40.png
nagios/contrib/exfoliation/images/logos/cat1900.gd2
nagios/contrib/exfoliation/images/logos/firewall.gif
nagios/contrib/exfoliation/images/logos/hpux.jpg
nagios/contrib/exfoliation/images/logos/redhat.jpg
nagios/contrib/exfoliation/images/logos/beos.png
nagios/contrib/exfoliation/images/logos/freebsd40.gif
nagios/contrib/exfoliation/images/logos/slackware.gd2
nagios/contrib/exfoliation/images/logos/printer.gd2
nagios/contrib/exfoliation/images/logos/nagiosvrml.png
nagios/contrib/exfoliation/images/logos/workstation.gd2
nagios/contrib/exfoliation/images/logos/satellite.png
nagios/contrib/exfoliation/images/logos/ethernet_card.png
nagios/contrib/exfoliation/images/logos/monitor.png
nagios/contrib/exfoliation/images/logos/thin-client.gif
nagios/contrib/exfoliation/images/logos/mainframe.gd2
nagios/contrib/exfoliation/images/logos/router40.png
nagios/contrib/exfoliation/images/logos/turbolinux.gd2
nagios/contrib/exfoliation/images/logos/mac40.png
nagios/contrib/exfoliation/images/logos/switch40.jpg
nagios/contrib/exfoliation/images/logos/sun40.gif
nagios/contrib/exfoliation/images/logos/amiga.gif
nagios/contrib/exfoliation/images/logos/internet.gd2
nagios/contrib/exfoliation/images/logos/slackware.png
nagios/contrib/exfoliation/images/logos/webcamera.png
nagios/contrib/exfoliation/images/logos/slackware.jpg
nagios/contrib/exfoliation/images/logos/debian.png
nagios/contrib/exfoliation/images/logos/printer.gif
nagios/contrib/exfoliation/images/logos/mainframe.gif
nagios/contrib/exfoliation/images/logos/mandrake.png
nagios/contrib/exfoliation/images/logos/amiga.png
nagios/contrib/exfoliation/images/logos/cat2900.gd2
nagios/contrib/exfoliation/images/logos/hp-printer40.png
nagios/contrib/exfoliation/images/logos/sunlogo.jpg
nagios/contrib/exfoliation/images/logos/apple.jpg
nagios/contrib/exfoliation/images/logos/notebook.gif
nagios/contrib/exfoliation/images/logos/desktop-server.gif
nagios/contrib/exfoliation/images/logos/novell40.gif
nagios/contrib/exfoliation/images/logos/sunlogo.gif
nagios/contrib/exfoliation/images/logos/ip-pbx.gd2
nagios/contrib/exfoliation/images/logos/hp-printer40.gd2
nagios/contrib/exfoliation/images/logos/router40.gd2
nagios/contrib/exfoliation/images/logos/unicos.gif
nagios/contrib/exfoliation/images/logos/beos.jpg
nagios/contrib/exfoliation/images/logos/workstation.png
nagios/contrib/exfoliation/images/logos/yellowdog.png
nagios/contrib/exfoliation/images/logos/switch40.png
nagios/contrib/exfoliation/images/logos/sunlogo.png
nagios/contrib/exfoliation/images/logos/stampede.gif
nagios/contrib/exfoliation/images/logos/san.gif
nagios/contrib/exfoliation/images/logos/apple.gd2
nagios/contrib/exfoliation/images/logos/firewall.gd2
nagios/contrib/exfoliation/images/logos/mac40.gif
nagios/contrib/exfoliation/images/logos/openbsd.gif
nagios/contrib/exfoliation/images/logos/storm.gd2
nagios/contrib/exfoliation/images/logos/turbolinux.png
nagios/contrib/exfoliation/images/logos/storm.jpg
nagios/contrib/exfoliation/images/logos/sun40.gd2
nagios/contrib/exfoliation/images/logos/hp-printer40.jpg
nagios/contrib/exfoliation/images/logos/caldera.png
nagios/contrib/exfoliation/images/logos/unicos.jpg
nagios/contrib/exfoliation/images/logos/redhat.png
nagios/contrib/exfoliation/images/logos/win40.gif
nagios/contrib/exfoliation/images/logos/unknown.gd2
nagios/contrib/exfoliation/images/logos/hpux.gif
nagios/contrib/exfoliation/images/logos/router40.gif
nagios/contrib/exfoliation/images/logos/hp-printer40.gif
nagios/contrib/exfoliation/images/logos/station.gd2
nagios/contrib/exfoliation/images/logos/graph.gif
nagios/contrib/exfoliation/images/logos/hub.gif
nagios/contrib/exfoliation/images/logos/mandrake.gif
nagios/contrib/exfoliation/images/logos/router.gif
nagios/contrib/exfoliation/images/logos/aix.gif
nagios/contrib/exfoliation/images/logos/router.gd2
nagios/contrib/exfoliation/images/logos/unknown.gif
nagios/contrib/exfoliation/images/logos/database.gif
nagios/contrib/exfoliation/images/logos/yellowdog.gif
nagios/contrib/exfoliation/images/logos/ng-switch40.png
nagios/contrib/exfoliation/images/logos/next.gif
nagios/contrib/exfoliation/images/logos/nagios.gif
nagios/contrib/exfoliation/images/logos/server.png
nagios/contrib/exfoliation/images/logos/unicos.png
nagios/contrib/exfoliation/images/logos/wifi_modem.png
nagios/contrib/exfoliation/images/logos/sunlogo.gd2
nagios/contrib/exfoliation/images/logos/novell40.jpg
nagios/contrib/exfoliation/images/logos/next.gd2
nagios/contrib/exfoliation/images/logos/thin-client.gd2
nagios/contrib/exfoliation/images/logos/bluetooth.png
nagios/contrib/exfoliation/images/logos/beos.gd2
nagios/contrib/exfoliation/images/logos/caldera.gd2
nagios/contrib/exfoliation/images/logos/irix.gif
nagios/contrib/exfoliation/images/logos/linux40.jpg
nagios/contrib/exfoliation/readme.txt
nagios/contrib/exfoliation/stylesheets/
nagios/contrib/exfoliation/stylesheets/ministatus.css
nagios/contrib/exfoliation/stylesheets/histogram.css
nagios/contrib/exfoliation/stylesheets/statusmap.css
nagios/contrib/exfoliation/stylesheets/status.css
nagios/contrib/exfoliation/stylesheets/showlog.css
nagios/contrib/exfoliation/stylesheets/tac.css
nagios/contrib/exfoliation/stylesheets/history.css
nagios/contrib/exfoliation/stylesheets/notifications.css
nagios/contrib/exfoliation/stylesheets/trends.css
nagios/contrib/exfoliation/stylesheets/cmd.css
nagios/contrib/exfoliation/stylesheets/summary.css
nagios/contrib/exfoliation/stylesheets/config.css
nagios/contrib/exfoliation/stylesheets/avail.css
nagios/contrib/exfoliation/stylesheets/extinfo.css
nagios/contrib/exfoliation/stylesheets/outages.css
nagios/contrib/exfoliation/stylesheets/common.css
nagios/contrib/exfoliation/stylesheets/checksanity.css
nagios/contrib/new_mini_epn.c
nagios/t/
nagios/t/705nagiostats.t
nagios/t/930-emptygroups.t
nagios/t/610cgistatus.t
nagios/t/Makefile.in
nagios/t/910-noservice.t
nagios/t/620history.t
nagios/t/var/
nagios/t/var/status-hosturgencies.dat
nagios/t/var/spool/
nagios/t/var/spool/checkresults/
nagios/t/var/spool/checkresults/.gitignore
nagios/t/var/.gitignore
nagios/t/var/status.dat
nagios/t/var/objects.precache.expected
nagios/t/var/objects.cache.hosturgencies
nagios/t/var/nagios.log
nagios/t/var/objects.cache
nagios/t/etc/
nagios/t/etc/resource.cfg
nagios/t/etc/nagios.cfg
nagios/t/etc/nagios-hosturgencies.cfg
nagios/t/etc/cgi-with-generated-status.cfg
nagios/t/etc/no-service-error.cfg
nagios/t/etc/nagios-empty-groups.cfg
nagios/t/etc/minimal.cfg
nagios/t/etc/cgi.cfg
nagios/t/etc/cgi-hosturgencies.cfg
nagios/t/etc/hosturgencies.cfg
nagios/t/etc/nagios-with-generated-status.cfg
nagios/t/etc/no-contactgroup-error.cfg
nagios/t/etc/nagios-no-status.cfg
nagios/t/etc/empty-groups-error.cfg
nagios/t/etc/nagios-no-service.cfg
nagios/t/etc/nagios-no-contactgroup.cfg
nagios/t/621extinfo.t
nagios/t/622extinfo-local.t
nagios/t/611cgistatus-hosturgencies.t
nagios/t/616cginotification.t
nagios/t/615cgierror.t
nagios/t/900-configparsing.t
nagios/t/623cmd-local.t
nagios/t/bin/
nagios/t/bin/generate_downtimes
nagios/t/660status-downtimes-comments.t
nagios/t/617statuswml.t
nagios/t/920-nocontactgroup.t
nagios/t/618cgisecurity.t
nagios/daemon-init.in
nagios/README
nagios/include/
nagios/include/skiplist.h
nagios/include/compat.h
nagios/include/downtime.h
nagios/include/neberrors.h
nagios/include/nebcallbacks.h
nagios/include/comments.h
nagios/include/nagios.h
nagios/include/epn_nagios.h
nagios/include/objects.h
nagios/include/snprintf.h.in
nagios/include/cgiutils.h
nagios/include/macros.h
nagios/include/netutils.h
nagios/include/.gitignore
nagios/include/common.h
nagios/include/nebmods.h
nagios/include/sretention.h
nagios/include/getcgi.h
nagios/include/cgiauth.h
nagios/include/Makefile
nagios/include/shared.h
nagios/include/statusdata.h
nagios/include/locations.h.in
nagios/include/perfdata.h
nagios/include/logging.h
nagios/include/nebmodules.h
nagios/include/nebstructs.h
nagios/include/config.h.in
nagios/include/broker.h
nagios/install-sh
nagios/configure
nagios/functions
nagios/tap/
nagios/tap/src/
nagios/tap/src/Makefile.in
nagios/tap/src/tap.h
nagios/tap/src/tap.c
nagios/tap/src/tap.3
nagios/tap/src/Makefile.am
nagios/tap/Makefile.in
nagios/tap/depcomp
nagios/tap/compile
nagios/tap/.gitignore
nagios/tap/INSTALL
nagios/tap/README.nagios
nagios/tap/config.sub
nagios/tap/config.guess
nagios/tap/README
nagios/tap/install-sh
nagios/tap/configure
nagios/tap/tests/
nagios/tap/tests/Makefile.in
nagios/tap/tests/plan/
nagios/tap/tests/plan/no_plan/
nagios/tap/tests/plan/no_plan/Makefile.in
nagios/tap/tests/plan/no_plan/test.t
nagios/tap/tests/plan/no_plan/test.c
nagios/tap/tests/plan/no_plan/test.pl
nagios/tap/tests/plan/no_plan/Makefile.am
nagios/tap/tests/plan/too-many-plans/
nagios/tap/tests/plan/too-many-plans/Makefile.in
nagios/tap/tests/plan/too-many-plans/test.t
nagios/tap/tests/plan/too-many-plans/test.c
nagios/tap/tests/plan/too-many-plans/test.pl
nagios/tap/tests/plan/too-many-plans/Makefile.am
nagios/tap/tests/plan/Makefile.in
nagios/tap/tests/plan/sane/
nagios/tap/tests/plan/sane/Makefile.in
nagios/tap/tests/plan/sane/test.t
nagios/tap/tests/plan/sane/test.c
nagios/tap/tests/plan/sane/test.pl
nagios/tap/tests/plan/sane/Makefile.am
nagios/tap/tests/plan/no-tests/
nagios/tap/tests/plan/no-tests/Makefile.in
nagios/tap/tests/plan/no-tests/test.t
nagios/tap/tests/plan/no-tests/test.c
nagios/tap/tests/plan/no-tests/test.pl
nagios/tap/tests/plan/no-tests/Makefile.am
nagios/tap/tests/plan/skip_all/
nagios/tap/tests/plan/skip_all/Makefile.in
nagios/tap/tests/plan/skip_all/test.t
nagios/tap/tests/plan/skip_all/test.c
nagios/tap/tests/plan/skip_all/test.pl
nagios/tap/tests/plan/skip_all/Makefile.am
nagios/tap/tests/plan/not-enough-tests/
nagios/tap/tests/plan/not-enough-tests/Makefile.in
nagios/tap/tests/plan/not-enough-tests/test.t
nagios/tap/tests/plan/not-enough-tests/test.c
nagios/tap/tests/plan/not-enough-tests/test.pl
nagios/tap/tests/plan/not-enough-tests/Makefile.am
nagios/tap/tests/plan/Makefile.am
nagios/tap/tests/plan/too-many-tests/
nagios/tap/tests/plan/too-many-tests/Makefile.in
nagios/tap/tests/plan/too-many-tests/test.t
nagios/tap/tests/plan/too-many-tests/test.c
nagios/tap/tests/plan/too-many-tests/test.pl
nagios/tap/tests/plan/too-many-tests/Makefile.am
nagios/tap/tests/todo/
nagios/tap/tests/todo/Makefile.in
nagios/tap/tests/todo/test.t
nagios/tap/tests/todo/test.c
nagios/tap/tests/todo/test.pl
nagios/tap/tests/todo/Makefile.am
nagios/tap/tests/fail/
nagios/tap/tests/fail/Makefile.in
nagios/tap/tests/fail/test.t
nagios/tap/tests/fail/test.c
nagios/tap/tests/fail/test.pl
nagios/tap/tests/fail/Makefile.am
nagios/tap/tests/README
nagios/tap/tests/skip/
nagios/tap/tests/skip/Makefile.in
nagios/tap/tests/skip/test.t
nagios/tap/tests/skip/test.c
nagios/tap/tests/skip/test.pl
nagios/tap/tests/skip/Makefile.am
nagios/tap/tests/diag/
nagios/tap/tests/diag/Makefile.in
nagios/tap/tests/diag/test.t
nagios/tap/tests/diag/test.c
nagios/tap/tests/diag/test.pl
nagios/tap/tests/diag/Makefile.am
nagios/tap/tests/ok/
nagios/tap/tests/ok/Makefile.in
nagios/tap/tests/ok/ok-hash/
nagios/tap/tests/ok/ok-hash/Makefile.in
nagios/tap/tests/ok/ok-hash/test.t
nagios/tap/tests/ok/ok-hash/test.c
nagios/tap/tests/ok/ok-hash/test.pl
nagios/tap/tests/ok/ok-hash/Makefile.am
nagios/tap/tests/ok/ok/
nagios/tap/tests/ok/ok/Makefile.in
nagios/tap/tests/ok/ok/test.t
nagios/tap/tests/ok/ok/test.c
nagios/tap/tests/ok/ok/test.pl
nagios/tap/tests/ok/ok/Makefile.am
nagios/tap/tests/ok/Makefile.am
nagios/tap/tests/ok/ok-numeric/
nagios/tap/tests/ok/ok-numeric/Makefile.in
nagios/tap/tests/ok/ok-numeric/test.t
nagios/tap/tests/ok/ok-numeric/test.c
nagios/tap/tests/ok/ok-numeric/test.pl
nagios/tap/tests/ok/ok-numeric/Makefile.am
nagios/tap/tests/Makefile.am
nagios/tap/tests/pass/
nagios/tap/tests/pass/Makefile.in
nagios/tap/tests/pass/test.t
nagios/tap/tests/pass/test.c
nagios/tap/tests/pass/test.pl
nagios/tap/tests/pass/Makefile.am
nagios/tap/missing
nagios/tap/Makefile.am
nagios/tap/configure.in
nagios/tap/ltmain.sh
nagios/tap/aclocal.m4
nagios/configure.in
nagios/INSTALLING
nagios/pkginfo.in
nagios/indent-all.sh
nagios/indent.sh
[/EXPAND]
Schritt 3: Konfiguration erstellen

./configure --with-nagios-group=nagios --with-nagios-user=nagios --with-command-group=nagcmd

[EXPAND Configuration Log]
checking for a BSD-compatible install… /usr/bin/install -c
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ANSI C… none needed
checking whether make sets $(MAKE)… yes
checking for strip… /usr/bin/strip
checking how to run the C preprocessor… gcc -E
checking for egrep… grep -E
checking for ANSI C header files… yes
checking whether time.h and sys/time.h may both be included… yes
checking for sys/wait.h that is POSIX.1 compatible… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking arpa/inet.h usability… yes
checking arpa/inet.h presence… yes
checking for arpa/inet.h… yes
checking ctype.h usability… yes
checking ctype.h presence… yes
checking for ctype.h… yes
checking dirent.h usability… yes
checking dirent.h presence… yes
checking for dirent.h… yes
checking errno.h usability… yes
checking errno.h presence… yes
checking for errno.h… yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking getopt.h usability… yes
checking getopt.h presence… yes
checking for getopt.h… yes
checking grp.h usability… yes
checking grp.h presence… yes
checking for grp.h… yes
checking libgen.h usability… yes
checking libgen.h presence… yes
checking for libgen.h… yes
checking limits.h usability… yes
checking limits.h presence… yes
checking for limits.h… yes
checking math.h usability… yes
checking math.h presence… yes
checking for math.h… yes
checking netdb.h usability… yes
checking netdb.h presence… yes
checking for netdb.h… yes
checking netinet/in.h usability… yes
checking netinet/in.h presence… yes
checking for netinet/in.h… yes
checking pthread.h usability… yes
checking pthread.h presence… yes
checking for pthread.h… yes
checking pthreads.h usability… no
checking pthreads.h presence… no
checking for pthreads.h… no
checking pwd.h usability… yes
checking pwd.h presence… yes
checking for pwd.h… yes
checking regex.h usability… yes
checking regex.h presence… yes
checking for regex.h… yes
checking signal.h usability… yes
checking signal.h presence… yes
checking for signal.h… yes
checking socket.h usability… no
checking socket.h presence… no
checking for socket.h… no
checking stdarg.h usability… yes
checking stdarg.h presence… yes
checking for stdarg.h… yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
checking sys/mman.h usability… yes
checking sys/mman.h presence… yes
checking for sys/mman.h… yes
checking for sys/types.h… (cached) yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking sys/resource.h usability… yes
checking sys/resource.h presence… yes
checking for sys/resource.h… yes
checking for sys/wait.h… (cached) yes
checking sys/socket.h usability… yes
checking sys/socket.h presence… yes
checking for sys/socket.h… yes
checking for sys/stat.h… (cached) yes
checking sys/timeb.h usability… yes
checking sys/timeb.h presence… yes
checking for sys/timeb.h… yes
checking sys/un.h usability… yes
checking sys/un.h presence… yes
checking for sys/un.h… yes
checking sys/ipc.h usability… yes
checking sys/ipc.h presence… yes
checking for sys/ipc.h… yes
checking sys/msg.h usability… yes
checking sys/msg.h presence… yes
checking for sys/msg.h… yes
checking sys/poll.h usability… yes
checking sys/poll.h presence… yes
checking for sys/poll.h… yes
checking syslog.h usability… yes
checking syslog.h presence… yes
checking for syslog.h… yes
checking uio.h usability… no
checking uio.h presence… no
checking for uio.h… no
checking for unistd.h… (cached) yes
checking locale.h usability… yes
checking locale.h presence… yes
checking for locale.h… yes
checking wchar.h usability… yes
checking wchar.h presence… yes
checking for wchar.h… yes
checking for an ANSI C-conforming const… yes
checking whether struct tm is in sys/time.h or time.h… time.h
checking for struct tm.tm_zone… yes
checking for mode_t… yes
checking for pid_t… yes
checking for size_t… yes
checking return type of signal handlers… void
checking for uid_t in sys/types.h… yes
checking type of array argument to getgroups… gid_t
checking for va_copy… yes
checking for vsnprintf… yes
checking for snprintf… yes
checking for asprintf… yes
checking for vasprintf… yes
checking for C99 vsnprintf… yes
checking for library containing getservbyname… none required
checking for library containing connect… none required
checking for initgroups… yes
checking for setenv… yes
checking for strdup… yes
checking for strstr… yes
checking for strtoul… yes
checking for unsetenv… yes
checking for type of socket size… size_t
checking for pthread_create in -lcma… no
checking for pthread_create in -lpthread… yes
checking for library containing nanosleep… none required
checking for mail… /usr/bin/mail
We’ll use default routines (in xdata/xsddefault.*) for status data I/O…
We’ll use default routines (in xdata/xcddefault.*) for comment data I/O…
We’ll use default routines (in xdata/xrddefault.*) for retention data I/O…
We’ll use template-based routines (in xdata/xodtemplate.*) for object data I/O…
We’ll use default routines (in xdata/xpddefault.*) for performance data I/O…
We’ll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O…
checking for main in -liconv… no
checking for gdImagePng in -lgd (order 1)… no
checking for gdImagePng in -lgd (order 2)… yes
GD library was found!
checking for gdImageCreateTrueColor in -lgd… yes
checking ltdl.h usability… yes
checking ltdl.h presence… yes
checking for ltdl.h… yes
checking for lt_dlinit in -lltdl… yes
checking for extra flags needed to export symbols… -Wl,-export-dynamic
checking for linker flags for loadable modules… -shared
checking for traceroute… no
checking for type va_list… yes
checking for perl… /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating pkginfo
config.status: creating base/Makefile
config.status: creating common/Makefile
config.status: creating contrib/Makefile
config.status: creating cgi/Makefile
config.status: creating html/Makefile
config.status: creating module/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating t/Makefile
config.status: creating t-tap/Makefile
config.status: creating include/config.h
config.status: creating include/snprintf.h
Creating sample config files in sample-config/ …
*** Configuration summary for nagios 3.5.0 03-15-2013 ***:
General Options:
————————-
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Check result directory: ${prefix}/var/spool/checkresults
Init directory: /etc/init.d
Apache conf.d directory: /etc/apache2/conf.d
Mail program: /usr/bin/mail
Host OS: linux-gnu
Web Interface Options:
————————
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP):
Review the options above for accuracy. If they look okay,
type ‚make all‘ to compile the main program and CGIs.
[/EXPAND]
Schritt 4: Nagios kompilieren

make all

[EXPAND make all Log]
cd ./base && make
make[1]: Betrete Verzeichnis ‚/tmp/nagios/base‘
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c
nebmods.c: In Funktion »neb_load_all_modules«:
nebmods.c:155:6: Warnung: Variable »result« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
checks.c: In Funktion »run_async_service_check«:
checks.c:338:6: Warnung: Variable »wait_result« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
checks.c: In Funktion »run_async_host_check_3x«:
checks.c:2930:6: Warnung: Variable »wait_result« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
checks.c: In Funktion »handle_async_host_check_result_3x«:
checks.c:3431:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
checks.c: In Funktion »run_async_host_check_3x«:
checks.c:3034:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
checks.c: In Funktion »execute_sync_host_check_3x«:
checks.c:2772:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
checks.c: In Funktion »handle_async_service_check_result«:
checks.c:1012:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
checks.c:1014:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
checks.c: In Funktion »run_async_service_check«:
checks.c:481:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c
config.c: In Funktion »pre_flight_circular_check«:
config.c:2710:6: Warnung: Variable »result« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
config.c: In Funktion »pre_flight_check«:
config.c:1642:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1654:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c: In Funktion »read_main_config_file«:
config.c:302:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:307:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:314:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:319:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:341:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:363:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:378:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:394:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:410:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:416:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:438:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:444:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:468:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:524:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:535:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:546:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:557:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:568:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:579:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:590:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:601:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:612:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:624:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:633:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:644:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:657:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:687:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:698:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:709:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:725:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:743:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:754:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:765:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:776:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:787:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:798:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:807:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:829:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:849:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:858:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:896:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:907:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:925:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:936:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:957:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:967:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:977:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:987:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:997:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1006:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1019:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1028:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1039:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1050:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1061:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1073:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1083:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1091:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1103:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1113:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1131:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1142:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1161:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1171:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1181:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1191:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1217:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1258:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1269:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1289:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1300:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1321:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
config.c:1365:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c
commands.c: In Funktion »process_passive_checks«:
commands.c:5154:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
commands.c:5156:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
commands.c: In Funktion »process_external_command1«:
commands.c:728:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c
flapping.c: In Funktion »set_host_flap«:
flapping.c:418:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
flapping.c: In Funktion »set_service_flap«:
flapping.c:337:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c
logging.c: In Funktion »log_debug_info«:
logging.c:574:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c: In Funktion »write_log_file_info«:
logging.c:470:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c: In Funktion »rotate_log_file«:
logging.c:431:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c:442:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c:451:8: Warnung: Der Rückgabewert von »chown«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c: In Funktion »log_service_states«:
logging.c:381:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c: In Funktion »log_host_states«:
logging.c:349:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c: In Funktion »log_host_event«:
logging.c:323:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
logging.c: In Funktion »log_service_event«:
logging.c:297:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
../common/macros.c: In Funktion »process_macros_r«:
../common/macros.c:133:6: Warnung: Variable »found_macro_x« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
../common/macros.c:128:6: Warnung: Variable »x« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
../common/macros.c: In Funktion »grab_macrox_value_r«:
../common/macros.c:1226:5: Warnung: Implizite Deklaration der Funktion »asprintf« [-Wimplicit-function-declaration]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o netutils.o netutils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c
notifications.c: In Funktion »notify_contact_of_host«:
notifications.c:1722:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1725:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1728:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1731:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1734:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1737:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1740:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1743:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1746:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c: In Funktion »host_notification«:
notifications.c:1196:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:1202:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c: In Funktion »notify_contact_of_service«:
notifications.c:784:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:787:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:790:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:793:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:796:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:799:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:802:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:805:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:808:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c: In Funktion »service_notification«:
notifications.c:217:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
notifications.c:223:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c
sehandlers.c: In Funktion »run_host_event_handler«:
sehandlers.c:653:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
sehandlers.c: In Funktion »run_global_host_event_handler«:
sehandlers.c:556:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
sehandlers.c: In Funktion »run_service_event_handler«:
sehandlers.c:410:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
sehandlers.c: In Funktion »run_global_service_event_handler«:
sehandlers.c:311:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c
utils.c: In Funktion »my_system_r«:
utils.c:297:8: Warnung: Variable »temp_buffer« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c: In Funktion »check_time_against_period«:
utils.c:855:6: Warnung: Variable »test_time_mday« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c: In Funktion »_get_next_valid_time«:
utils.c:1151:6: Warnung: Variable »current_time_wday« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c:1146:6: Warnung: Variable »pref_time_mday« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c: In Funktion »contains_illegal_object_chars«:
utils.c:2874:15: Warnung: Variable »ch« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c: In Funktion »generate_check_stats«:
utils.c:3709:6: Warnung: Variable »right_value« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c:3708:6: Warnung: Variable »left_value« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c: In Funktion »query_update_api«:
utils.c:3945:6: Warnung: Variable »result« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
utils.c:3964:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:3967:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:3974:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:3977:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:3983:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c: In Funktion »submit_raw_external_command«:
utils.c:3574:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c: In Funktion »delete_check_result_file«:
utils.c:2617:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c: In Funktion »process_check_result_queue«:
utils.c:2280:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c: In Funktion »move_check_result_to_queue«:
utils.c:2172:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:2195:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c: In Funktion »daemon_init«:
utils.c:1952:8: Warnung: Der Rückgabewert von »chdir«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:1954:8: Warnung: Der Rückgabewert von »chdir«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:2031:11: Warnung: Der Rückgabewert von »ftruncate«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:2033:7: Warnung: Der Rückgabewert von »write«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c: In Funktion »my_system_r«:
utils.c:399:6: Warnung: Der Rückgabewert von »pipe«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:517:9: Warnung: Der Rückgabewert von »write«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
utils.c:525:10: Warnung: Der Rückgabewert von »write«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
../xdata/xrddefault.c: In Funktion »xrddefault_save_state_information«:
../xdata/xrddefault.c:278:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
../xdata/xodtemplate.c: In Funktion »xodtemplate_read_config_data«:
../xdata/xodtemplate.c:280:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
../xdata/xodtemplate.c:299:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
../xdata/xsddefault.c: In Funktion »xsddefault_save_status_data«:
../xdata/xsddefault.c:349:10: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
../common/downtime.c: In Funktion »register_downtime«:
../common/downtime.c:303:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
../common/downtime.c:305:11: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o ../common/shared.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o -Wl,-export-dynamic -lm -lpthread -lltdl
nagios.c: In Funktion »main«:
nagios.c:463:9: Warnung: Der Rückgabewert von »getcwd«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
nagios.c:653:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
nagios.c:778:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
nagios.c:848:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
nagios.c:860:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
nagios.c:862:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -lm
make[1]: Verlasse Verzeichnis ‚/tmp/nagios/base‘
cd ./cgi && make
make[1]: Betrete Verzeichnis ‚/tmp/nagios/cgi‘
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o getcgi.o getcgi.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiutils.o cgiutils.c
cgiutils.c: In Funktion »include_ssi_files«:
cgiutils.c:1571:6: Warnung: Variable »x« wird nicht verwendet [-Wunused-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiauth.o cgiauth.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c
../common/macros.c: In Funktion »process_macros_r«:
../common/macros.c:133:6: Warnung: Variable »found_macro_x« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
../common/macros.c:128:6: Warnung: Variable »x« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
../common/macros.c: In Funktion »grab_datetime_macro_r«:
../common/macros.c:1545:4: Warnung: Implizite Deklaration der Funktion »asprintf« [-Wimplicit-function-declaration]
../common/macros.c:1481:9: Warnung: Variable »test_time« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c
../common/statusdata.c: In Funktion »add_service_status«:
../common/statusdata.c:426:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
../common/statusdata.c:432:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
../common/statusdata.c: In Funktion »add_host_status«:
../common/statusdata.c:354:13: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
../common/statusdata.c:360:14: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o avail.cgi avail.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
avail.c: In Funktion »compute_subject_availability«:
avail.c:1682:6: Warnung: Variable »first_real_state« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
avail.c: In Funktion »compute_subject_availability_times«:
avail.c:1984:6: Warnung: Variable »end_state« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
avail.c: In Funktion »compute_subject_downtime_times«:
avail.c:2260:9: Warnung: Variable »part_start_time« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
avail.c: In Funktion »display_host_availability«:
avail.c:3890:9: Warnung: Variable »percent_time_indeterminate_unscheduled« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
avail.c: In Funktion »display_service_availability«:
avail.c:4390:9: Warnung: Variable »percent_time_indeterminate_unscheduled« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o extcmd_list.o extcmd_list.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o cmd.cgi cmd.c extcmd_list.o ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o config.cgi config.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o extinfo.cgi extinfo.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
extinfo.c: In Funktion »show_service_info«:
extinfo.c:1392:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
extinfo.c: In Funktion »show_host_info«:
extinfo.c:1079:12: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o history.cgi history.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o notifications.cgi notifications.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o outages.cgi outages.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o showlog.cgi showlog.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o status.cgi status.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
status.c: In Funktion »create_pagenumbers«:
status.c:5409:6: Warnung: Variable »next_page« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
status.c:5406:6: Warnung: Variable »leftovers« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswml.cgi statuswml.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
statuswml.c: In Funktion »display_traceroute«:
statuswml.c:1363:10: Warnung: Der Rückgabewert von »fgets«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
statuswml.c: In Funktion »display_ping«:
statuswml.c:1294:11: Warnung: Der Rückgabewert von »fgets«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o summary.cgi summary.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o tac.cgi tac.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswrl.cgi statuswrl.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lm
statuswrl.c: In Funktion »calculate_circular_layer_coords«:
statuswrl.c:1232:9: Warnung: Variable »average_child_angle« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusmap.cgi statusmap.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm
statusmap.c: In Funktion »draw_hosts«:
statusmap.c:1574:10: Warnung: Variable »y2« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
statusmap.c: In Funktion »calculate_circular_layer_coords«:
statusmap.c:2653:9: Warnung: Variable »average_child_angle« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
statusmap.c: In Funktion »draw_circular_layer_markup«:
statusmap.c:2742:9: Warnung: Variable »average_child_angle« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o trends.cgi trends.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm
trends.c: In Funktion »graph_all_trend_data«:
trends.c:1742:6: Warnung: Variable »first_real_state« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
trends.c: In Funktion »graph_trend_data«:
trends.c:2047:6: Warnung: Variable »end_state« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
trends.c: In Funktion »draw_time_breakdowns«:
trends.c:2802:6: Warnung: Variable »string_height« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o histogram.cgi histogram.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm
make[1]: Verlasse Verzeichnis ‚/tmp/nagios/cgi‘
cd ./html && make
make[1]: Betrete Verzeichnis ‚/tmp/nagios/html‘
make[1]: Für das Ziel »all« ist nichts zu tun.
make[1]: Verlasse Verzeichnis ‚/tmp/nagios/html‘
if [ xyes = xyes ]; then \
cd ./module && make; \
fi
make[1]: Betrete Verzeichnis ‚/tmp/nagios/module‘
gcc -fPIC -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared
make[1]: Verlasse Verzeichnis ‚/tmp/nagios/module‘
*** Compile finished ***
If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type ‚make‘
without any arguments for a list of all possible options):
make install
– This installs the main program, CGIs, and HTML files
make install-init
– This installs the init script in /etc/init.d
make install-commandmode
– This installs and configures permissions on the
directory for holding the external command file
make install-config
– This installs *SAMPLE* config files in /usr/local/nagios/etc
You’ll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!
make install-webconf
– This installs the Apache config file for the Nagios
web interface
make install-exfoliation
– This installs the Exfoliation theme for the Nagios
web interface
make install-classicui
– This installs the classic theme for the Nagios
web interface
*** Support Notes *******************************************
If you have questions about configuring or running Nagios,
please make sure that you:
– Look at the sample config files
– Read the documentation on the Nagios Library at:

Nagios Library


before you post a question to one of the mailing lists.
Also make sure to include pertinent information that could
help others help you. This might include:
– What version of Nagios you are using
– What version of the plugins you are using
– Relevant snippets from your config files
– Relevant error messages from the Nagios log file
For more information on obtaining support for Nagios, visit:

Home


*************************************************************
Enjoy.
[/EXPAND]
Schritt 5: Nagios installieren

make install

[EXPAND make install Log]
cd ./base && make install
make[1]: Betrete Verzeichnis ‚/tmp/nagios/base‘
make install-basic
make[2]: Betrete Verzeichnis ‚/tmp/nagios/base‘
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /usr/local/nagios/bin
make[2]: Verlasse Verzeichnis ‚/tmp/nagios/base‘
make strip-post-install
make[2]: Betrete Verzeichnis ‚/tmp/nagios/base‘
/usr/bin/strip /usr/local/nagios/bin/nagios
/usr/bin/strip /usr/local/nagios/bin/nagiostats
make[2]: Verlasse Verzeichnis ‚/tmp/nagios/base‘
make[1]: Verlasse Verzeichnis ‚/tmp/nagios/base‘
cd ./cgi && make install
make[1]: Betrete Verzeichnis ‚/tmp/nagios/cgi‘
make install-basic
make[2]: Betrete Verzeichnis ‚/tmp/nagios/cgi‘
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/sbin
for file in *.cgi; do \
/usr/bin/install -c -m 775 -o nagios -g nagios $file /usr/local/nagios/sbin; \
done
make[2]: Verlasse Verzeichnis ‚/tmp/nagios/cgi‘
make strip-post-install
make[2]: Betrete Verzeichnis ‚/tmp/nagios/cgi‘
for file in *.cgi; do \
/usr/bin/strip /usr/local/nagios/sbin/$file; \
done
make[2]: Verlasse Verzeichnis ‚/tmp/nagios/cgi‘
make[1]: Verlasse Verzeichnis ‚/tmp/nagios/cgi‘
cd ./html && make install
make[1]: Betrete Verzeichnis ‚/tmp/nagios/html‘
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/media
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/stylesheets
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/contexthelp
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/js
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images/logos
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes/rss
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes/rss/extlib
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/ssi
/usr/bin/install -c -m 664 -o nagios -g nagios robots.txt /usr/local/nagios/share
rm -f /usr/local/nagios/share/index.html
rm -f /usr/local/nagios/share/main.html
rm -f /usr/local/nagios/share/side.html
for file in *.php; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share; done
for file in stylesheets/*.css; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/stylesheets; done
for file in contexthelp/*.html; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/contexthelp; done
for file in js/*.js; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/js; done
for file in images/*.gif; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.jpg; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.png; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.ico; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/logos/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images/logos; done
for file in includes/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes; done
for file in includes/rss/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes/rss; done
for file in includes/rss/extlib/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes/rss/extlib; done
make[1]: Verlasse Verzeichnis ‚/tmp/nagios/html‘
make install-exfoliation
make[1]: Betrete Verzeichnis ‚/tmp/nagios‘
cp -rf contrib/exfoliation/stylesheets/* /usr/local/nagios/share/stylesheets
cp -rf contrib/exfoliation/images/* /usr/local/nagios/share/images
*** Exfoliation theme installed ***
NOTE: Use ‚make install-classicui‘ to revert to classic Nagios theme
make[1]: Verlasse Verzeichnis ‚/tmp/nagios‘
make install-basic
make[1]: Betrete Verzeichnis ‚/tmp/nagios‘
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/archives
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/spool/checkresults
if [ no = yes ]; then \
/usr/bin/install -c -m 664 -o nagios -g nagios p1.pl /usr/local/nagios/bin; \
fi;
*** Main program, CGIs and HTML files installed ***
You can continue with installing Nagios as follows (type ‚make‘
without any arguments for a list of all possible options):
make install-init
– This installs the init script in /etc/init.d
make install-commandmode
– This installs and configures permissions on the
directory for holding the external command file
make install-config
– This installs sample config files in /usr/local/nagios/etc
make[1]: Verlasse Verzeichnis ‚/tmp/nagios‘
[/EXPAND]
Schritt 6: Commandmode und Init Script installieren

make install-commandmode

[EXPAND External Command Log]
/usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
*** External command directory configured ***
[/EXPAND]

make install-init

[EXPAND Init Script Log]
/usr/bin/install -c -m 755 -d -o root -g root /etc/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/init.d/nagios
*** Init script installed ***
[/EXPAND]
Schritt 7: System neustarten
Sicher ist sicher, deswegen das System noch einmal neustarten. Nagios muss dann auch anschließend wieder automatisch starten.

shutdown -r now

check_iftraffic64 – Netzwerkkarte mit Nagios monitoren

Ich monitore schon länger Switch-Interfaces, allerdings bisher per check_snmp_int. Das funktioniert soweit, ist aber für den Einsatz mit Nagvis nicht zu gebrauchen.
Durch einen Tipp bin ich auf check_iftraffic64 gestoßen.  Der Vorteil hierbei – man kann die reale Bandbreite festlegen.
Interface Speed = 100 Mbit, der reale Speed ist aber nur z.B. 10Mbit. (Beispiel Internet Zugang)
Plugin heruntergeladen, ausgeführt. Erste Fehlermeldung:

Can't locate Net/DNS.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at ./check_iftraffic64.pl line 698.

Wird gefixt durch:

apt-get install libnet-dns-perl

Beispielausgabe:

nagios@Server:/usr/local/nagios/libexec$ ./check_iftraffic64.pl -H 1.1.1.1 -C community -i ge-0/0/3 -I 12 -O 12 -u m -w 90 -c 96
ge-0/0/3 = 1.3.6.1.2.1.2.2.1.2.540 / 540
Average IN: 38.83KBs (2.59%), Average OUT: 1.26MBs (83.72%)&lt;br&gt;Total RX: 47.02GBytes, Total TX: 399.10GBytes|inUsage=2.59%;90;96 outUsage=83.72%;90;96 inBandwidth=38.83KBs outBandwidth=1.26MBs inAbsolut=47023414615B outAbsolut=399095801006B

Das Auflösen des Interface Namens hat bei unseren Juniper Switchen direkt funktioniert.
Hat man das Skript zum Testen via Commandozeile ausgeführt, wird auch ein Unterordner „traffic“ mit diesem User angelegt.
Das kann dazu führen, dass im Nagios/Centreon erst einmal  nur folgende Fehlermeldung erscheint:

(Return code of 13 is out of bounds) 

Die Berechtigungen / Besitzer von dem Ordner:

/usr/local/nagios/libexec/traffic/

anpassen und fertig.
Echt super Sache – so funktioniert auch die grafische Anzeige im Nagvis korrekt.

Troubleshooting NDOUtils 1.5.2

Nach der Aktualisierung von NDOUtils von 1.4b9 auf 1.5.2 wurde ich mit ein paar Fehlern zugeschmissen.
NDOUtils schreibt die Fehler ins syslog.
Erster Fehler – Tabelle defekt:

Oct  9 07:49:14 SERVER ndo2db: mysql_error: 'Table './ndo/nagios_hostchecks' is marked as crashed and last (automatic?) repair failed'
Oct  9 07:49:14 SERVER ndo2db: Error: mysql_query() failed for 'INSERT INTO nagios_hostchecks SET instance_id='1', host_object_id='1161', check_type='0', is_raw_check='0', current_check_attempt='1', max_check_attempts='5', state='0', state_type='1', start_time=FROM_UNIXTIME(1349761720), start_time_usec='784551', end_time=FROM_UNIXTIME(1349761725), end_time_usec='446306', timeout='10', early_timeout='0', execution_time='0.036930', latency='70.784000', return_code='0', output='PING OK - Packet loss = 0%, RTA = 3\.83 ms', long_output='', perfdata='rta=3\.830000ms;3000\.000000;5000\.000000;0\.000000 pl=0%;80;100;0', command_object_id='22', command_args='', command_line='' ON DUPLICATE KEY UPDATE instance_id='1', host_object_id='1161', check_type='0', is_raw_check='0', current_check_attempt='1', max_check_attempts='5', state='0', state_type='1', start_time=FROM_UNIXTIME(1349761720), start_time_usec='784551', end_time=FROM_UNIXTIME(1349761725), end_time_usec='446306', timeout='10', early_timeout='0', execution_time='0.036930', latency='70.784000', return_code='0', output='PING OK - Packet loss = 0%, RTA = 3\.83 ms', long_output='', perfdata='rta=3\.830000ms;3000\.000000;5000\.000000;0\.000000 pl=0%;80;100;0''

Lässt sich am einfachsten via phpmyadmin beheben. Einloggen – Tabellen überprüfen – und anschließend reparieren.

Zweiter Fehler: ndo2db scheint nichts mehr in die queue zu schreiben:

Oct  9 06:36:20 SERVER ndo2db: Message sent to queue.
Oct  9 06:36:20 SERVER ndo2db: Warning: queue send error, retrying...
Oct  9 06:36:21 SERVER ndo2db: Message sent to queue.
Oct  9 06:36:21 SERVER ndo2db: Warning: queue send error, retrying...
Oct  9 06:36:22 SERVER ndo2db: Message sent to queue.
Oct  9 06:36:22 SERVER ndo2db: Warning: queue send error, retrying...

Die Ursache ist wohl ein neues „Feature“ in der neuen Version 1.5.2 von ndoutils welche Nachrichten nun in eine Warteschlange setzt, wenn der Kernel sie nicht annimmt. (Korrigiert mich, wenn ich falsch liegen sollte.)
Abhilfe schafft das hoch setzen der max. Nachrichten:

vi /etc/sysctl.conf
(Einfach am Ende einfügen, falls nicht vorhanden.)
kernel.msgmax = 131072000
kernel.msgmnb = 131072000
kernel.msgmni = 65536000

Danach  habe ich noch ein Reboot gemacht.
(via)

Monitoring Appliance – Nagios, Centreon, Nagvis, Check_MK

Passend zu meinem vorangegangenem Blogpost habe ich hier nun eine fertige Appliance im .ovf Format bereit gestellt.
Als Grundlage dient ein Ubuntu 12.04 LTS wo ich die aktuellen Versionen von Nagios, Centreon, Nagvis und Check_MK vorinstalliert habe.
Damit ist das System nach der Bereitstellung direkt Einsatzbereit und man erspart sich die lange Konfigurations-/Installationszeit.
Da es meine erste Vorlage ist, besteht natürlich noch Verbesserungsbedarf wie z.B.  IP-Konfiguration oder Hostname Änderung beim ersten Login. Tipps & Hinweise nehme ich gerne entgegen 😉
 
Details:
– Ubuntu 12.04 LTS
– Nagios Core    | 3.4.1
– nagios Plugins    | 1.4.15
– Centreon     | 2.3.8
– Check_MK    | 1.2.0p1
– Nagvis        | 1.6.6
Alle notwendigen Informationen findet ihr in der Beiliegenden README.txt
Download ( 1,27 GB)

How to install Nagios, Centreon, Nagvis, Check_MK @ Ubuntu 12.04 Server

Ich arbeite schon seit mehreren Jahren mit Nagios vorallem aber mit der Oberfläche: Centreon. Wer Nagios noch per Shell bedient und somit hunderte Config-Files pflegt müsste Centreon eigentlich lieben.
Eine Oberfläche von der aus alles gesteuert wird. Komfortables anlegen von Hosts, Diensten und allen notwendigen Gruppen. Mit mehreren Klicks – keine Config-Files mehr – diese werden dann durch Centreon automatisch erstellt.
Zur grafischen Anzeige benutze ich Nagvis was noch die Erweiterung check_mk benötigt. Damit lassen sich dann nette Weathermaps erstellen oder den Serverraum in einem Bild mit dem dazugehörigen Host/Service-Status darstellen.
Als Betriebssystem nutze ich ausschließlich nur Ubuntu – daher ist das Komplettpaket „FAN – Fully automated Nagios“ (CentOS) für micht nicht interessant.
Hier ein Howto zur Installation von Nagios, Centreon, Check_MK und Nagvis. In naher Zukunft werde ich auch mal ein .OVF Template erstellen….
Vorraussetzungen:
-> Ubuntu 12.04 Server installiert.
Bevor wir anfangen noch obligatorisch die Updates machen:

apt-get update
apt-get upgrade
apt-get dist-upgrade

Notwendige Abhängigkeiten installieren:

apt-get install gcc make g++ lsb-release tofrodos apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libapache2-mod-python libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli apache2-suexec php-pear php-auth php5-mcrypt mcrypt libapache2-mod-suphp php5-snmp php5-ldap mysql-server rrdtool librrds-perl libconfig-inifiles-perl libcrypt-des-perl libgd-gd2-perl snmp snmpd libnet-snmp-perl libsnmp-perl libgd2-xpm libgd2-xpm-dev bsd-mailx postfix

GGf. Vmware Tools installieren (VMware Tools mounten):

mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
mount: blockorientiertes Gerät /dev/sr0 ist schreibgeschützt, wird eingehängt im Nur-Lese-Modus
tar xzfv /mnt/cdrom/VMwareTools-8.6.5-652272.tar.gz -C /tmp/
root@centreon:~# cd /tmp/vmware-tools-distrib/
./vmware-install.pl

Ich habe die VM-Tools mit Standardeinstellungen installiert. Anschließend Reboot:

shutdown -r now

GGf. Proxy im Wget eintragen:

vi /etc/wgetrc

Installation von Nagios:
Hier gibt es zwei Möglichkeiten. Entweder von Hand installieren, oder die fertigen Packete nutzen. Ich empfehle es von Hand zu installieren, da die Pakete oftmals nicht aktuell sind.
Also finger weg von: apt-get install nagios3 nagios-plugins
Nagios benutzer anlegen:

/usr/sbin/useradd -m -s /bin/bash nagios
passwd nagios

Gruppe anlegen:

/usr/sbin/groupadd nagios

Gruppe hinzufügen:

/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -G nagcmd nagios
/usr/sbin/usermod -G nagcmd www-data

Nagios herunterladen:

wget http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.4.1/nagios-3.4.1.tar.gz?r=http%3A%2F%2Fwww.nagios.org%2Fdownload%2Fcore%2Fthanks%2F&amp;ts=1340721679&amp;use_mirror=garr
mv nagios-3.4.1.tar.gz\?r\=http\:%2F%2Fwww.nagios.org%2Fdownload%2Fcore%2Fthanks%2F nagios-3.4.1.tar.gz
tar xzfv nagios-3.4.1.tar.gz
cd nagios/

Nagios Configurieren:

./configure --with-nagios-group=nagios --with-nagios-user=nagios --with-command-group=nagcmd
Creating sample config files in sample-config/ ...

[EXPAND Configuration Log]
*** Configuration summary for nagios 3.4.1 05-11-2012 ***:
General Options:
————————-
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Check result directory: ${prefix}/var/spool/checkresults
Init directory: /etc/init.d
Apache conf.d directory: /etc/apache2/conf.d
Mail program: /bin/mail
Host OS: linux-gnu
Web Interface Options:
————————
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP):
Review the options above for accuracy. If they look okay,
type ‚make all‘ to compile the main program and CGIs.
root@centreon:/tmp/nagios#
*** Compile finished ***[/EXPAND]
Nagios installieren:

make all
make install
make install-commandmode
make install-config
make install-init
make install-webconf

Nagiosadmin (für Webinterface anlegen):

htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
New password:
Re-type new password:
Adding password for user nagiosadmin

Autostart hinzufügen:

ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios

Nagios-Plugins installieren:

wget http://downloads.sourceforge.net/project/nagiosplug/nagiosplug/1.4.15/nagios-plugins-1.4.15.tar.gz?r=http%3A%2F%2Fwww.nagios.org%2Fdownload%2Fplugins%2F&amp;ts=1340722460&amp;use_mirror=dfn
mv nagios-plugins-1.4.15.tar.gz\?r\=http\:%2F%2Fwww.nagios.org%2Fdownload%2Fplugins%2F nagios-plugins-1.4.15.tar.gz
tar xzfv nagios-plugins-1.4.15.tar.gz
./configure
make
make install

Nagios starten:

/etc/init.d/nagios start

Mal die Webseite aufrufen: http://server/nagios
Benutzer: nagiosadmin
Prüfen ob Statusmap funktioniert.
Bei dem Fehler: The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
Nochmal ausführen:

apt-get install libgd2-xpm libgd2-xpm-dev
root@centreon:/tmp/nagios# make cgis
cp /usr/nagios-3.2.3/cgi/*.cgi /usr/local/nagios/sbin
chown nagios:nagios /usr/local/nagios/sbin/*.cgi

Nagios neustarten

/etc/init.d/nagios restart

ndoutils installieren:

wget http://downloads.sourceforge.net/project/nagios/ndoutils-1.x/ndoutils-1.5.2/ndoutils-1.5.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fnagios%2Ffiles%2Fndoutils-1.x%2Fndoutils-1.5.2%2F&amp;ts=1340723870&amp;use_mirror=garr
cd ndoutils-1.5.2/
./configure
make
make install

[EXPAND Setuplog]
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 -o nagios -g nagios ndo2db-3x /usr/local/nagios/bin/ndo2db
/usr/bin/install -c -m 755 -o nagios -g nagios ndomod-3x.o /usr/local/nagios/bin/ndomod.o
/usr/bin/install -c -m 774 -o nagios -g nagios file2sock /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios log2ndo /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios sockdebug /usr/local/nagios/bin
Hint: NDOUtils Installation against Nagios v3.x
completed.
If you want to install NDOUtils for Nagios v2.x
please type ‚make install-2x
Next step should be the database initialization/upgrade
cd into the db/ directory and either:
./installdb (for a new installation) or:
./upgradedb (for an existing one)
make[1]: Verlasse Verzeichnis ‚/tmp/ndoutils-1.5.2/src‘
Main NDOUtils components installed[/EXPAND]
So nun kann Centeron installiert werden. Beachtet das hier ggf. eine direkte Internetverbindung benötigt wird, da durch das Setup einige PEAR Komponenten aktualisiert werden.
Centreon installieren:

wget http://download.centreon.com/index.php?id=181
mv index.php\?id\=181 centreon.2.3.8.tar.gz
tar xzfv centreon.2.3.8.tar.gz
./install.sh -i

[EXPAND Centreon Setup]
Do you accept GPL license ?
[y/n], default to [n]:
> y
————————————————————————
Please choose what you want to install
————————————————————————
Do you want to install : Centreon Web Front
[y/n], default to [n]:
> y
Do you want to install : Centreon CentCore
[y/n], default to [n]:
> y
Do you want to install : Centreon Nagios Plugins
[y/n], default to [n]:
> y
Do you want to install : Centreon Snmp Traps process
[y/n], default to [n]:
> y
————————————————————————
Start CentWeb Installation
————————————————————————
Where is your Centreon directory?
default to [/usr/local/centreon]
>
Do you want me to create this directory ? [/usr/local/centreon]
[y/n], default to [n]:
> y
Path /usr/local/centreon OK
Where is your Centreon log directory
default to [/usr/local/centreon/log]
>
Do you want me to create this directory ? [/usr/local/centreon/log]
[y/n], default to [n]:
> y
Path /usr/local/centreon/log OK
Where is your Centreon etc directory
default to [/etc/centreon]
>
Do you want me to create this directory ? [/etc/centreon]
[y/n], default to [n]:
> y
Path /etc/centreon OK
Where is your Centreon generation_files directory?
default to [/usr/local/centreon]
>
Path /usr/local/centreon OK
Where is your Centreon variable library directory?
default to [/var/lib/centreon]
>
Do you want me to create this directory ? [/var/lib/centreon]
[y/n], default to [n]:
> y
Path /var/lib/centreon OK
Where is your CentPlugins Traps binary
default to [/usr/local/centreon/bin]
>
Do you want me to create this directory ? [/usr/local/centreon/bin]
[y/n], default to [n]:
> y
Path /usr/local/centreon/bin OK
Where is the RRD perl module installed [RRDs.pm]
default to [/usr/lib/perl5/RRDs.pm]
>
Path /usr/lib/perl5 OK
/usr/bin/rrdtool OK
Where is mail binary
default to [/usr/bin/mail]
> /usr/bin/mailx
/usr/bin/mailx OK
Where is PEAR [PEAR.php]
default to [/usr/share/php/PEAR.php]
>
Path /usr/share/php OK
Where is installed Nagios ?
default to [/usr/local/nagios]
>
Path /usr/local/nagios OK
Where is your nagios config directory
default to [/usr/local/nagios/etc]
>
Path /usr/local/nagios/etc OK
Where is your Nagios var directory ?
default to [/usr/local/nagios/var]
>
Path /usr/local/nagios/var OK
Where is your Nagios plugins (libexec) directory ?
default to [/usr/local/nagios/libexec]
>
Path /usr/local/nagios/libexec OK
Where is your nagios binary ?
default to [/usr/local/nagios/bin/nagios]
>
/usr/local/nagios/bin/nagios OK
Where is your Nagios image directory ?
default to [/usr/local/nagios/share/images/logos]
>
Path /usr/local/nagios/share/images/logos OK
Where is your nagiostats binary ?
default to [/usr/local/nagios/bin/nagiostats]
>
/usr/local/nagios/bin/nagiostats OK
p1_file : /usr/local/nagios/bin/p1.pl OK
/usr/bin/php OK
/usr/bin/perl OK
Finding Apache group : www-data
Finding Apache user : www-data
Finding Nagios user : nagios
Finding Nagios group : nagios
Where is your NDO ndomod binary ?
default to [/usr/sbin/ndomod.o]
> /usr/local/nagios/bin/ndomod.o
/usr/local/nagios/bin/ndomod.o OK
————————————————————————
Configure Sudo
————————————————————————
Where is sudo configuration file
default to [/etc/sudoers]
>
/etc/sudoers OK
Nagios init script OK
Your sudo is not configured
Do you want me to configure your sudo ? (WARNING)
[y/n], default to [n]:
> y
Configuring Sudo OK
————————————————————————
Configure Apache server
————————————————————————
Do you want to add Centreon Apache sub configuration file ?
[y/n], default to [n]:
> y
Create ‚/etc/apache2/conf.d/centreon.conf‘ OK
Configuring Apache OK
Do you want to reload your Apache ?
[y/n], default to [n]:
> y
Reloading Apache service OK
Preparing Centreon temporary files
Change right on /usr/local/centreon/log OK
Change right on /etc/centreon OK
Change right on /usr/local/nagios/share/images/logos OK
Install nagios documentation OK
Change macros for insertBaseConf.sql OK
Change macros for php files OK
Change right on /usr/local/nagios/etc OK
Copy CentWeb in system directory
Install CentWeb (web front of centreon) OK
Install libraries OK
Copying libinstall OK
Change macros for centreon.cron OK
Install Centreon cron.d file OK
Change macros for centAcl.php OK
Change macros for downtimeManager.php OK
Change macros for eventReportBuilder.pl OK
Change macros for dashboardBuilder.pl OK
Install cron directory OK
Change right for eventReportBuilder.pl OK
Change right for dashboardBuilder.pl OK
————————————————————————
Pear Modules
————————————————————————
Check PEAR modules
PEAR 1.4.9 1.9.4 OK
DB 1.7.6 NOK
DB_DataObject 1.8.4 NOK
DB_DataObject_FormBuilder 1.0.0RC4 NOK
MDB2 2.0.0 NOK
Date 1.4.6 NOK
HTML_Common 1.2.2 NOK
HTML_QuickForm 3.2.5 NOK
HTML_QuickForm_advmultiselect 1.1.0 NOK
HTML_Table 1.6.1 NOK
Archive_Tar 1.1 1.3.7 OK
Auth_SASL 1.0.1 NOK
Console_Getopt 1.2 1.3.0 OK
Net_SMTP 1.2.8 NOK
Net_Socket 1.0.1 NOK
Net_Traceroute 0.21 NOK
Net_Ping 2.4.1 NOK
Validate 0.6.2 NOK
XML_RPC 1.4.5 NOK
SOAP 0.10.1 NOK
Log 1.9.11 NOK
Do you want me to install/upgrade your PEAR modules
[y/n], default to [y]:
> y
Upgrading PEAR modules
Installing PEAR modules
DB 1.7.6 OK
DB_DataObject 1.8.4 1.10.0 OK
DB_DataObject_FormBuilder 1.0.0RC4 1.0.2 OK
MDB2 2.0.0 2.4.1 OK
HTML_QuickForm_advmultiselect 1.1.0 1.5.1 OK
HTML_Table 1.6.1 1.8.3 OK
Auth_SASL 1.0.1 1.0.6 OK
Net_SMTP 1.2.8 1.6.1 OK
Net_Traceroute 0.21 0.21.3 OK
Net_Ping 2.4.1 2.4.5 OK
Validate 0.6.2 0.8.5 OK
XML_RPC 1.4.5 1.5.5 OK
SOAP 0.10.1 0.13.0 OK
Log 1.9.11 1.12.7 OK
Check PEAR modules
PEAR 1.4.9 1.9.4 OK
DB 1.7.6 1.7.14 OK
DB_DataObject 1.8.4 1.10.0 OK
DB_DataObject_FormBuilder 1.0.0RC4 1.0.2 OK
MDB2 2.0.0 2.4.1 OK
Date 1.4.6 1.4.7 OK
HTML_Common 1.2.2 1.2.5 OK
HTML_QuickForm 3.2.5 3.2.13 OK
HTML_QuickForm_advmultiselect 1.1.0 1.5.1 OK
HTML_Table 1.6.1 1.8.3 OK
Archive_Tar 1.1 1.3.7 OK
Auth_SASL 1.0.1 1.0.6 OK
Console_Getopt 1.2 1.3.0 OK
Net_SMTP 1.2.8 1.6.1 OK
Net_Socket 1.0.1 1.0.10 OK
Net_Traceroute 0.21 0.21.3 OK
Net_Ping 2.4.1 2.4.5 OK
Validate 0.6.2 0.8.5 OK
XML_RPC 1.4.5 1.5.5 OK
SOAP 0.10.1 0.13.0 OK
Log 1.9.11 1.12.7 OK
All PEAR modules OK
————————————————————————
Centreon Post Install
————————————————————————
Create /usr/local/centreon/www/install/install.conf.php OK
Create /etc/centreon/instCentWeb.conf OK
————————————————————————
Start CentStorage Installation
————————————————————————
Where is your Centreon Run Dir directory?
default to [/var/run/centreon]
>
Do you want me to create this directory ? [/var/run/centreon]
[y/n], default to [n]:
> y
Path /var/run/centreon OK
Where is your CentStorage binary directory
default to [/usr/local/centreon/bin]
>
Path /usr/local/centreon/bin OK
Where is your CentStorage RRD directory
default to [/var/lib/centreon]
>
Path /var/lib/centreon OK
Finding Nagios group : nagios
Finding Nagios user : nagios
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved…
install www/install/createTablesCentstorage.sql OK
Creating Centreon Directory ‚/var/lib/centreon/status‘ OK
Creating Centreon Directory ‚/var/lib/centreon/metrics‘ OK
Change macros for centstorage binary OK
Install CentStorage binary OK
Install library for centstorage OK
Change right : /var/run/centreon OK
Change macros for centstorage init script OK
Do you want me to install CentStorage init script ?
[y/n], default to [n]:
> y
CentStorage init script installed OK
Do you want me to install CentStorage run level ?
[y/n], default to [n]:
> y
update-rc.d: warning: /etc/init.d/centstorage missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Adding system startup for /etc/init.d/centstorage …
/etc/rc0.d/K30centstorage -> ../init.d/centstorage
/etc/rc1.d/K30centstorage -> ../init.d/centstorage
/etc/rc6.d/K30centstorage -> ../init.d/centstorage
/etc/rc2.d/S40centstorage -> ../init.d/centstorage
/etc/rc3.d/S40centstorage -> ../init.d/centstorage
/etc/rc4.d/S40centstorage -> ../init.d/centstorage
/etc/rc5.d/S40centstorage -> ../init.d/centstorage
Configuration file /etc/centreon/conf.pm not found. Exiting.
CentStorage stop FAIL
Change macros for logAnalyser OK
Install logAnalyser OK
Change macros for nagiosPerfTrace OK
Install nagiosPerfTrace OK
Change macros for purgeLogs OK
Install purgeLogs OK
Change macros for purgeCentstorage OK
Install purgeCentstorage OK
Change macros for centreonPurge.sh OK
Install centreonPurge.sh OK
Change macros for centstorage.cron OK
Install CentStorage cron OK
Create /etc/centreon/instCentStorage.conf OK
————————————————————————
Start CentCore Installation
————————————————————————
Where is your CentCore binary directory
default to [/usr/local/centreon/bin]
>
Path /usr/local/centreon/bin OK
/usr/bin/ssh OK
/usr/bin/scp OK
Finding Nagios group : nagios
Finding Nagios user : nagios
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved…
Change CentCore Macro OK
Copy CentCore in binary directory OK
Change right : /var/run/centreon OK
Change right : /var/lib/centreon OK
Replace CentCore init script Macro OK
Do you want me to install CentCore init script ?
[y/n], default to [n]:
> y
CentCore init script installed OK
Do you want me to install CentCore run level ?
[y/n], default to [n]:
> y
update-rc.d: warning: /etc/init.d/centcore missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Adding system startup for /etc/init.d/centcore …
/etc/rc0.d/K30centcore -> ../init.d/centcore
/etc/rc1.d/K30centcore -> ../init.d/centcore
/etc/rc6.d/K30centcore -> ../init.d/centcore
/etc/rc2.d/S40centcore -> ../init.d/centcore
/etc/rc3.d/S40centcore -> ../init.d/centcore
/etc/rc4.d/S40centcore -> ../init.d/centcore
/etc/rc5.d/S40centcore -> ../init.d/centcore
Create /etc/centreon/instCentCore.conf OK
————————————————————————
Start CentPlugins Installation
————————————————————————
Where is your CentPlugins lib directory
default to [/var/lib/centreon/centplugins]
>
Do you want me to create this directory ? [/var/lib/centreon/centplugins]
[y/n], default to [n]:
> y
Path /var/lib/centreon/centplugins OK
Finding Nagios user : nagios
Finding Nagios group : nagios
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved…
Change macros for CentPlugins OK
Installing the plugins OK
Change right on centreon.conf OK
CentPlugins is installed
————————————————————————
Start CentPlugins Traps Installation
————————————————————————
Where is your SNMP configuration directory
default to [/etc/snmp]
>
/etc/snmp OK
Where is your SNMPTT binaries directory
default to [/usr/local/centreon/bin/]
>
/usr/local/centreon/bin/ OK
Finding Nagios group : nagios
Finding Apache user : www-data
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved…
Change macros for CentPluginsTraps OK
Installing the plugins Trap binaries OK
Change macros for snmptrapd.conf OK
Change macros for snmptt.ini OK
Install : snmptrapd.conf OK
Install : snmp.conf OK
Install : snmptt.ini OK
Install : snmptt OK
Install : snmpttconvertmib OK
Create /etc/centreon/instCentPlugins.conf OK
###############################################################################
# #
# Go to the URL : http://centreon.domain.info/centreon/ #
# to finish the setup #
# #
# Report bugs at http://forge.centreon.com #
# #
# Thanks for using Centreon. #
# ———————– #
# Contact : infos@centreon.com #
# http://www.centreon.com #
# #
###############################################################################[/EXPAND]
Nun die Webseite aufrufen und mit der Installation weitermachen:

http://centreon.domain.info/centreon/


Anschließend Neustart:

shutdown -r now

Nachträglich die LDAP-Authentifizierung über die Centreon Oberfläche einrichten:

Administration - &gt; Options -&gt; Options -&gt; Ldap

Wenn man nun noch Nagvis installieren will – gehts weiter.
Zuerst muss check_mk installiert werden:

wget http://mathias-kettner.de/download/check_mk-1.2.0p1.tar.gz
tar xzfv check_mk-1.2.0p1.tar.gz
cd check_mk-1.2.0p1
./setup.sh
Hier alles wieder mit Standart-Einstellungen installiert

[EXPAND check_MK Setup]
./setup.sh
Check_MK setup Version: 1.2.0p1
Welcome to Check_MK. This setup will install Check_MK into user defined
directories. If you run this script as root, installation paths below
/usr will be suggested. If you run this script as non-root user paths
in your home directory will be suggested. You may override the default
values or just hit enter to accept them.
Your answers will be saved to /home/centreon/.check_mk_setup.conf and will be
reused when you run the setup of this or a later version again. Please
delete that file if you want to delete your previous answers.
* Found running Nagios process, autodetected 18 settings.
1) Installation directories of check_mk
Executable programs
Directory where to install executable programs such as check_mk itself.
This directory should be in your search path ($PATH). Otherwise you
always have to specify the installation path when calling check_mk:
( default –> /usr/bin):
Check_MK configuration
Directory where check_mk looks for its main configuration file main.mk.
An example configuration file will be installed there if no main.mk is
present from a previous version:
( default –> /etc/check_mk):
Check_MK software
The base directory for the software installation of Check_MK. This
directory will get the subdirectories checks, modules, web, locale and
agents. Note: in previous versions it was possible to specify each of
those directories separately. This is no longer possible:
( default –> /usr/share/check_mk):
documentation
Some documentation about check_mk will be installed here. Please note,
however, that most of check_mk’s documentation is available only online at
http://mathias-kettner.de/check_mk.html:
( default –> /usr/share/doc/check_mk):
check manuals
Directory for manuals for the various checks. The manuals can be viewed
with check_mk -M <CHECKNAME>:
( default –> /usr/share/doc/check_mk/checks):
working directory of check_mk
check_mk will create caches files, automatically created checks and
other files into this directory. The setup will create several subdirectories
and makes them writable by the Nagios process:
( default –> /var/lib/check_mk):
 
2) Configuration of Linux/UNIX Agents
extensions for agents
This directory will not be created on the server. It will be hardcoded
into the Linux and UNIX agents. The agent will look for extensions in the
subdirectories plugins/ and local/ of that directory:
( default –> /usr/lib/check_mk_agent):
configuration dir for agents
This directory will not be created on the server. It will be hardcoded
into the Linux and UNIX agents. The agent will look for its configuration
files here (currently only the logwatch extension needs a configuration file):
( default –> /etc/check_mk):
 
3) Integration with Nagios
Name of Nagios user
The working directory for check_mk contains several subdirectories
that need to be writable by the Nagios user (which is running check_mk
in check mode). Please specify the user that should own those
directories:
( autodetected –> nagios):
User of Apache process
Check_MK WATO (Web Administration Tool) needs a sudo configuration,
such that Apache can run certain commands as root. If you specify
the correct user of the apache process here, then we can create a valid
sudo configuration for you later::
( autodetected –> www-data):
Common group of Nagios+Apache
Check_mk creates files and directories while running as nagios.
Some of those need to be writable by the user that is running the webserver.
Therefore a group is needed in which both Nagios and the webserver are
members (every valid Nagios installation uses such a group to allow
the web server access to Nagios‘ command pipe)::
( autodetected –> nagcmd):
Nagios binary
The complete path to the Nagios executable. This is needed by the
option -R/–restart in order to do a configuration check.:
( autodetected –> /usr/local/nagios/bin/nagios):
Nagios main configuration file
Path to the main configuration file of Nagios. That file is always
named ’nagios.cfg‘. The default path when compiling Nagios yourself
is /usr/local/nagios/etc/nagios.cfg. The path to this file is needed
for the check_mk option -R/–restart:
( autodetected –> /usr/local/nagios/etc/nagios.cfg):
Nagios object directory
Nagios‘ object definitions for hosts, services and contacts are
usually stored in various files with the extension .cfg. These files
are located in a directory that is configured in nagios.cfg with the
directive ‚cfg_dir‘. Please specify the path to that directory
(If the autodetection can find your configuration
file but does not find at least one cfg_dir directive, then it will
add one to your configuration file for your conveniance):
( autodetected –> /usr/local/nagios/etc/check_mk.d):
Nagios startskript
The complete path to the Nagios startskript is used by the option
-R/–restart to restart Nagios.:
( autodetected –> /etc/init.d/nagios):
Nagios command pipe
Complete path to the Nagios command pipe. check_mk needs write access
to this pipe in order to operate:
( autodetected –> /usr/local/nagios/var/rw/nagios.cmd):
Check results directory
Complete path to the directory where Nagios stores its check results.
Using that directory instead of the command pipe is faster.:
( default –> /usr/local/nagios/var/spool/checkresults):
Nagios status file
The web pages of check_mk need to read the file ’status.dat‘, which is
regularily created by Nagios. The path to that status file is usually
configured in nagios.cfg with the parameter ’status_file‘. If
that parameter is missing, a compiled-in default value is used. On
FHS-conforming installations, that file usually is in /var/lib/nagios
or /var/log/nagios. If you’ve compiled Nagios yourself, that file
might be found below /usr/local/nagios:
( autodetected –> /usr/local/nagios/var/status.log):
Path to check_icmp
check_mk ships a Nagios configuration file with several host and
service templates. Some host templates need check_icmp as host check.
That check plugin is contained in the standard Nagios plugins.
Please specify the complete path (dir + filename) of check_icmp:
( autodetected –> /usr/local/nagios/libexec/check_icmp):
 
4) Integration with Apache
URL Prefix for Web addons
Usually the Multisite GUI is available at /check_mk/ and PNP4Nagios
is located at /pnp4nagios/. In some cases you might want to define some
prefix in order to be able to run more instances of Nagios on one host.
If you say /test/ here, for example, then Multisite will be located
at /test/check_mk/. Please do not forget the trailing slash.:
( default –> /):
Apache config dir
Check_mk ships several web pages implemented in Python with Apache
mod_python. That module needs an apache configuration section which
will be installed by this setup. Please specify the path to a directory
where Apache reads in configuration files.:
( autodetected –> /etc/apache2/conf.d):
HTTP authentication file
Check_mk’s web pages should be secured from unauthorized access via
HTTP authenticaion – just as Nagios. The configuration file for Apache
that will be installed contains a valid configuration for HTTP basic
auth. The most conveniant way for you is to use the same user file as
for Nagios. Please enter your htpasswd file to use here:
( autodetected –> /usr/local/nagios/etc/htpasswd.users):
HTTP AuthName
Check_mk’s Apache configuration file will need an AuthName. That
string will be displayed to the user when asking for the password.
You should use the same AuthName as for Nagios. Otherwise the user will
have to log in twice:
( autodetected –> Nagios Access):
 
5) Integration with PNP4Nagios 0.6
PNP4Nagios templates
Check_MK ships templates for PNP4Nagios for most of its checks.
Those templates make the history graphs look nice. PNP4Nagios
expects such templates in the directory pnp/templates in your
document root for static web pages:
( default –> /usr/share/check_mk/pnp-templates):
 
6) Check_MK Livestatus Module
compile livestatus module
This version of Check_mk ships a completely new and experimental
Nagios event broker module that provides direct access to Nagios
internal data structures. This module is called the Check_MK Livestatus
Module. It aims to supersede status.dat and also NDO. Currenty it
is completely experimental and might even crash your Nagios process.
Nevertheless – The Livestatus Module does not only allow extremely
fast access to the status of your services and hosts, it does also
provide live data (which status.dat does not). Also – unlike NDO –
Livestatus does not cost you even measurable CPU performance, does
not need any disk space and also needs no configuration.
Please answer ‚yes‘, if you want to compile and integrate the
Livestatus module into your Nagios. You need ‚make‘ and the GNU
C++ compiler installed in order to do this:
( default –> yes):
check_mk’s binary modules
Directory for architecture dependent binary libraries and plugins
of check_mk:
( default –> /usr/lib/check_mk):
Unix socket for Livestatus
The Livestatus Module provides Nagios status data via a unix
socket. This is similar to the Nagios command pipe, but allows
bidirectional communication. Please enter the path to that pipe.
It is recommended to put it into the same directory as Nagios‘
command pipe:
( default –> /usr/local/nagios/var/rw/live):
Backends for other systems
Directory where to put backends and configuration examples for
other systems. Currently this is only Nagvis, but other might follow
later.:
( default –> /usr/share/check_mk/livestatus):
———————————————————————-
You have chosen the following directories:
Executable programs /usr/bin
Check_MK configuration /etc/check_mk
Check_MK software /usr/share/check_mk
documentation /usr/share/doc/check_mk
check manuals /usr/share/doc/check_mk/checks
working directory of check_mk /var/lib/check_mk
extensions for agents /usr/lib/check_mk_agent
configuration dir for agents /etc/check_mk
Name of Nagios user nagios
User of Apache process www-data
Common group of Nagios+Apache nagcmd
Nagios binary /usr/local/nagios/bin/nagios
Nagios main configuration file /usr/local/nagios/etc/nagios.cfg
Nagios object directory /usr/local/nagios/etc/check_mk.d
Nagios startskript /etc/init.d/nagios
Nagios command pipe /usr/local/nagios/var/rw/nagios.cmd
Check results directory /usr/local/nagios/var/spool/checkresults
Nagios status file /usr/local/nagios/var/status.log
Path to check_icmp /usr/local/nagios/libexec/check_icmp
URL Prefix for Web addons /
Apache config dir /etc/apache2/conf.d
HTTP authentication file /usr/local/nagios/etc/htpasswd.users
HTTP AuthName Nagios Access
PNP4Nagios templates /usr/share/check_mk/pnp-templates
compile livestatus module yes
check_mk’s binary modules /usr/lib/check_mk
Unix socket for Livestatus /usr/local/nagios/var/rw/live
Backends for other systems /usr/share/check_mk/livestatus
Proceed with installation (y/n)? y
(Compiling MK Livestatus…………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………..)
Installation completed successfully.
Please restart Nagios and Apache in order to update/active check_mk’s web pages.
You can access the new Multisite GUI at http://localhost/check_mk/[/EXPAND]
Apache & Nagios neustarten:

service apache2 restart
service nagios3 restart

Prüfen ob Check_MK richtig funktioniert:

http://centreon.domain.info/check_mk/

Ich hatte hier schon öfters den Fehler das der Socket nicht funktioniert
Abhilfe hat folgendes gebracht:

/var/lib/nagios/
chmod 777 rw/ -R
vi /etc/group
Der nagios Gruppe noch www-data hinzufügen.

Nagvis Abhängigkeiten:

apt-get install graphviz graphviz-dev php5-gd php5-mysql php5-cli php5-common sqlite3 php5-sqlite
service apache2 restart

Nagivs installieren:

wget http://downloads.sourceforge.net/project/nagvis/NagVis%201.6/nagvis-1.6.6.tar.gz?r=http%3A%2F%2Fwww.nagvis.org%2Fdownloads&amp;ts=1340725577&amp;use_mirror=ignum
mv nagvis-1.6.6.tar.gz\?r\=http\:%2F%2Fwww.nagvis.org%2Fdownloads nagvis-1.6.6.tar.gz
tar xzfv nagvis-1.6.6.tar.gz
cd nagvis-1.6.6/
./install.sh

[EXPAND Navis Setup]
+——————————————————————————+
| Welcome to NagVis Installer 1.6.6 |
+——————————————————————————+
| This script is built to facilitate the NagVis installation and update |
| procedure for you. The installer has been tested on the following systems: |
| – Debian Etch, Hardy (4.0, 5.0) |
| – Ubuntu Hardy, Intrepid, Jaunty, Karmic, Lucid (8.04 to 10.04) |
| – SuSE Linux Enterprise Server 10 and 11 |
| |
| Similar distributions to the ones mentioned above should work as well. |
| That (hopefully) includes RedHat, Fedora, CentOS, OpenSuSE |
| |
| If you experience any problems using these or other distributions, please |
| report that to the NagVis team. |
+——————————————————————————+
| Do you want to proceed? [y]:
+——————————————————————————+
| Starting installation of NagVis 1.6.6 |
+——————————————————————————+
| OS : Ubuntu 12.04 LTS |
| |
+— Checking for tools ——————————————————-+
| Using packet manager /usr/bin/dpkg found |
| |
+— Checking paths ———————————————————–+
| Please enter the path to the nagios base directory [/usr/local/nagios]:
| nagios path /usr/local/nagios found |
| Please enter the path to NagVis base [/usr/local/nagvis]:
| |
+— Checking prerequisites —————————————————+
| PHP 5.3 found |
| PHP Module: gd 5.3 found |
| PHP Module: mbstring compiled_in found |
| PHP Module: gettext compiled_in found |
| PHP Module: session compiled_in found |
| PHP Module: xml compiled_in found |
| PHP Module: pdo compiled_in found |
| Apache mod_php found |
| Checking Backends. (Available: mklivestatus,ndo2db,ido2db,merlinmy) |
| Do you want to use backend mklivestatus? [y]:
| Do you want to use backend ndo2db? [n]:
| Do you want to use backend ido2db? [n]:
| Do you want to use backend merlinmy? [n]:
| Livestatus Socket (/usr/local/nagios/var/rw/live) MISSING |
| Valid socket formats are: tcp:127.0.0.1:7668 or unix:/path/to/live |
| Please enter your MKLivestatus socket: unix:/var/lib/nagios/rw/live
| Invalid socket format. Take a look above for valid formats. |
| PHP Module: sockets compiled_in found |
| Graphviz 2.26 found |
| Graphviz Module dot 2.26.3 found |
| Graphviz Module neato 2.26.3 found |
| Graphviz Module twopi 2.26.3 found |
| Graphviz Module circo 2.26.3 found |
| Graphviz Module fdp 2.26.3 found |
| SQLite 3.7 found |
| |
+— Trying to detect Apache settings —————————————–+
| Please enter the web path to NagVis [/nagvis]:
| Please enter the name of the web-server user [www-data]:
| Please enter the name of the web-server group [www-data]:
| create Apache config file [y]:
| |
+— Checking for existing NagVis ———————————————+
| |
+——————————————————————————+
| Summary |
+——————————————————————————+
| NagVis home will be: /usr/local/nagvis |
| Owner of NagVis files will be: www-data |
| Group of NagVis files will be: www-data |
| Path to Apache config dir is: /etc/apache2/conf.d |
| Apache config will be created: yes |
| |
| Installation mode: install |
| |
| Do you really want to continue? [y]:
+——————————————————————————+
| Starting installation |
+——————————————————————————+
| Creating directory /usr/local/nagvis… done |
| Creating directory /usr/local/nagvis/var… done |
| Creating directory /usr/local/nagvis/var/tmpl/cache… done |
| Creating directory /usr/local/nagvis/var/tmpl/compile… done |
| Creating directory /usr/local/nagvis/share/var… done |
| Copying files to /usr/local/nagvis… done |
| Creating directory /usr/local/nagvis/etc/profiles… done |
| Creating main configuration file… done |
| Adding MKLivestatus Backend… done |
| Adding webserver group to file_group… done |
| Creating web configuration file… done |
| Setting permissions for web configuration file… done |
| |
| |
| |
+— Setting permissions… —————————————————+
| /usr/local/nagvis/etc/nagvis.ini.php-sample done |
| /usr/local/nagvis/etc done |
| /usr/local/nagvis/etc/maps done |
| /usr/local/nagvis/etc/maps/* done |
| /usr/local/nagvis/etc/automaps done |
| /usr/local/nagvis/etc/automaps/* done |
| /usr/local/nagvis/etc/profiles done |
| /usr/local/nagvis/share/userfiles/images/maps done |
| /usr/local/nagvis/share/userfiles/images/maps/* done |
| /usr/local/nagvis/share/userfiles/images/shapes done |
| /usr/local/nagvis/share/userfiles/images/shapes/* done |
| /usr/local/nagvis/var done |
| /usr/local/nagvis/var/* done |
| /usr/local/nagvis/var/tmpl done |
| /usr/local/nagvis/var/tmpl/cache done |
| /usr/local/nagvis/var/tmpl/compile done |
| /usr/local/nagvis/share/var done |
| |
+——————————————————————————+
| Installation complete |
| |
| You can safely remove this source directory. |
| |
| For later update/upgrade you may use this command to have a faster update: |
| ./install.sh -n /usr/local/nagios -p /usr/local/nagvis -l „unix:/var/lib/nagios/rw/live“ -b mklivestatus -u www-data -g www-data -w /etc/apache2/conf.d -a y
| |
| What to do next? |
| – Read the documentation |
| – Maybe you want to edit the main configuration file? |
| Its location is: /usr/local/nagvis/etc/nagvis.ini.php |
| – Configure NagVis via browser |
| <http://localhost/nagvis/config.php> |
| – Initial admin credentials: |
| Username: admin |
| Password: admin |
+——————————————————————————+[/EXPAND]
Dateien für Troubleshooting:
Nagios Logfile:

/usr/local/nagios/var/nagios.log
/usr/local/nagios/var/status.log

Centreon Logfiles:

/usr/local/centreon/log

Nagvis Configfile:

/usr/local/nagvis/etc/nagvis.ini.php

MKLivestatus socket:

unix:/var/lib/nagios/rw/live

Pfad zu ndomod.o

/usr/local/nagios/bin/ndomod.o

Pfad zu Nagios Plugins:

/usr/local/nagios/libexec