[Eisfair_dev] [eisfair-1] nagios-objects testing 0.1.6 released
Ansgar Püster
ansgar.puester at netcologne.de
Sa Mär 4 16:28:12 CET 2017
Hallo,
in ca. einer Stunde steht eine neue Version des Paketes
nagios-objects auf Pack-Eis zur Verfügung.
In diesem Release habe ich insbesondere dir Prüfungen auf
Ebene der Eisfair-1 Konfigurationsebene erweitert.
Rückmeldungen bitte hier in der Newsgroup.
Gruß,
Ansgar
Änderungen seit Version 0.1.5
0.1.6 2017-03-04 Ansgar Puester
=================================
- added check for nagios-service
When using Eisfair Configuration Editor (ECE):
If NAGIOS_SERVICE_#_HOSTGROUP_N='0' and NAGIOS_SERVICE_#_HOST_N='0'
the following error will be displayed:
error "Neither HOSTGROUP nor HOST configured for service #"
- Two new command definitions have been added
check_nrpe_non_SSL and check_nrpe_SSL
Both can handle a port argument and a check argument
as NAGIOS_SERVICE_#_CHECK_OPTION, e.g.
NAGIOS_SERVICE_#_CHECK_OPTION='!5667!check_eis'
to use nrpe port 5667 and execute command check_eis.
check_nrpe_non_SSL uses no SSL connection.
check_nrpe_SSL uses SSL connection.
- changed NAGIOS_TIMEPERIOD_3_ALIAS for
NAGIOS_TIMEPERIOD_3_NAME='non-workhours'
from
NAGIOS_TIMEPERIOD_3_ALIAS='Regelmaessige Arbeitszeit'
to
NAGIOS_TIMEPERIOD_3_ALIAS='Regelmaessige Freizeit'
- changed /var/install/config.d/nagios-command.sh
call nagios-service.sh, because NAGIOS_COMMAND_#_PERFDATA
may have been changed
NAGIOS_COMMAND_#_PERFDATA is used in nagios-service.sh
- changed /var/install/config.d/nagios-templates-update.sh
Added two group headers.
- added missing svn Id-Tag to some ECE dialog files in
/var/install/dialog.d/
- ECE dialogs NAGIOS_HOST.sh, NAGIOS_HOST_PARENTS.sh and
NAGIOS_SERVICE_DESCRIPTION.sh now work without temporary files
(Peter Baeumer)
- ECE dialogs NAGIOS_HOST.sh and NAGIOS_HOST_PARENTS.sh
have been enhanced to show the description of host definitions
- When configuring services using the ECE dialog, you get additional
help: "Select a command" dialog shows the number of necessary
arguments
E.g.:
+-----------[ Select a command ]-----------+
¦ Value ¦ Description ¦ ¦
¦--------------------+-------------+-------¦
¦check-host-alive ¦No Arguments ¦ ¦
¦check_ping ¦2 Arguments ¦ ¦
+------------------------------------------+
- When changing nagios services a warning will be displayed
if the used command accepts a different number of arguments
than the service offers.
E.g.
Service 'SSH' command 'check_ssh' possible arguments=1 available
arguments=0
This is not an error, but should be checked.
Some commands have optional arguments.
- ECE dialog NAGIOS_COMMAND.sh optimized.
Unnecessary call of awk removed.
Attention: user defined plugins will only be listet
if they start with check.
- ECE dialog NAGIOS_SERVICE_DESCRIPTION.sh corrected.
Dialog now uses the service_description lines from nrpe configurations
and /etc/config.d/nagios-service (NOT the generated file
/etc/nagios/objects_eis/services/service.cfg).
- new enhanced nagioslib
nagioslib is used by several shell scripts.
Procedure check_duplicates() now shows a progress bar.
E.g.
checking duplicates in NAGIOS_COMMAND_#_NAME ...
55% [===========================> ] 20 / 36
- changed order of entries in menu
"Nagios Configuration (Eisfair style)"
- changed order of calls in script
/var/install/config.d/nagios-objects.sh
- enhanced checks of nagios objects defintion in
nagios-host.sh
nagios-hostgroup.sh
nagios-command.sh
nagios-service.sh
nagios-servicegroup.sh
nagios-contactgroup.sh
nagios-contacts.sh
nagios-timeperiod.sh
nagios-templates.sh
e.g. NAGIOS_HOST_#_NAME will be checked inside configuration file
/etc/config.d nagios-host an in configuration files that refer
to NAGIOS_HOST_#_NAME
checking duplicates in NAGIOS_HOST_#_NAME ...
100% [==================================================>] 8 / 8
checking nagios-host (NAGIOS_HOST_#_PARENTS)
checking nagios-hostgroup (NAGIOS_HOSTGROUP_#_MEMLIST_#_MEMBERS)
checking nagios-service (NAGIOS_SERVICE_#_HOST_#_NAME)
checking nagios-servicegroup (NAGIOS_SERVICEGROUP_#_MEMLISTE_#_MEMBERS)
Error messsages will appear like this
error: NAGIOS_HOST_8_PARENTS 'tp-lunk' is invalid
or
error: NAGIOS_HOSTGROUP_1_MEMLIST_3_MEMBERS 'eisvirt23' is invalid
- new menu entry
"Generate & Check Nagios Configuration"
The whole configuration will be generated and checked.
Nagios will be restartet if all checks where O.K.
Mehr Informationen über die Mailingliste Eisfair_dev