[Eisfair_dev] [eisfair-1] nagios-objects testing 0.1.7 released
Ansgar Püster
ansgar.puester at netcologne.de
Do Mär 9 15:38:33 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.
Danke an Jürgen für die Vorabtests.
Rückmeldungen bitte hier in der Newsgroup.
Gruß,
Ansgar
Änderungen seit Version 0.1.5
0.1.7 2017-03-09 Ansgar Puester
=================================
- Bug fix in /var/install/include/nagioslib.
Check duplicates only if counter variable > 0.
(error reported by Juergen Edner)
- Enhancement in /var/install/dialog.d/NAGIOS_SERVICE_DESCRIPTION.sh.
Don't show duplicate NAGIOS_SERVICE_#_SERVICE_DESCRIPTION
- Bug fix in /var/install/config.d/nagios-service.sh.
Don't check duplicates in NAGIOS_SERVICE_#_SERVICE_DESCRIPTION
variables.
(error reported by Juergen Edner)
Changed method of counting variables in NAGIOS_SERVICE_#_CHECK_OPTION.
Ignore trailing exclamation mark.
Don't count escaped exclamation marks.
- When checking possible and available arguments in
command and service description (see below) the check will
be done as follows:
If the number of arguments possible in the command definition
is greater than the number of available arguments in the
service definition, a warning will be displayed.
The command has optional arguments.
If the number of arguments possible in the command definition
is smaler than the number of available arguments in the
service definition, an error will be displayed.
The service tries to use more arguments than possible.
Examples:
NAGIOS_COMMAND_17_NAME='check_ssh'
NAGIOS_COMMAND_17_COMMAND='check_ssh'
NAGIOS_COMMAND_17_OPTION='-H $HOSTADDRESS$ $ARG1$'
=> possible arguments 1
NAGIOS_SERVICE_7_SERVICE_DESCRIPTION='SSH'
NAGIOS_SERVICE_7_CHECK_COMMAND='check_ssh
NAGIOS_SERVICE_7_CHECK_OPTION=''
=> available arguments 0
A warning will be displayed.
Service 'SSH' command 'check_ssh' possible arguments=1 available
arguments=0
NAGIOS_COMMAND_17_NAME='check_ssh'
NAGIOS_COMMAND_17_COMMAND='check_ssh'
NAGIOS_COMMAND_17_OPTION='-H $HOSTADDRESS$ $ARG1$'
=> possible arguments 1
NAGIOS_SERVICE_7_SERVICE_DESCRIPTION='SSH'
NAGIOS_SERVICE_7_CHECK_COMMAND='check_ssh
NAGIOS_SERVICE_7_CHECK_OPTION='!-p 22!-6'
=> available arguments 2
An error message (red) will be displayed.
Service 'SSH' command 'check_ssh' possible arguments=1 available
arguments=2
- Added configuration variable NAGIOS_OBJECTS_SHOW_ARG_WARNINGS.
When NAGIOS_OBJECTS_SHOW_ARG_WARNINGS is set to no,
no warnings concerning possible and available arguments
will be displayed.
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