Cook: nagios 3.5.1 ================================================================================ QA: checking package receipt... Checking build dependencies... Installing (pkg/local): libpcre-8.42-i486 Installing (pkg/local): util-linux-smartcols-2.33.1-i486 Installing (pkg/local): util-linux-uuid-2.33.1-i486 Installing (pkg/local): util-linux-blkid-2.33.1-i486 Installing (pkg/local): util-linux-mount-2.33.1-i486 Installing (pkg/local): glib-2.64.3-i486 Installing (pkg/local): libharfbuzz-1.8.4-i486 Installing (pkg/local): libpng-1.6.36-i486 Installing (pkg/local): freetype-2.10.2-i486 Installing (pkg/local): libxml2-2.9.9-i486 Installing (pkg/local): fontconfig-2.13.1-i486 Installing (pkg/local): libjpeg-turbo-2.0.1-i486 Installing (pkg/local): libwebp-1.0.2-i486 Installing (pkg/local): libtiff-4.0.10-i486 Installing (pkg/local): libxau-1.0.8-i486 Installing (pkg/local): libxdmcp-1.1.2-i486 Installing (pkg/local): libxcb-1.13.1-i486 Installing (pkg/local): libx11-1.6.7-i486 Installing (pkg/local): libxpm-3.5.12-i486 Installing (pkg/local): libgd-2.2.5-i486 Installing (pkg/local): bzip2-dev-1.0.8-i486 Installing (pkg/local): pixman-0.36.0-i486 Installing (pkg/local): libcairo-1.16.0-i486 Installing (pkg/local): harfbuzz-1.8.4-i486 Installing (pkg/local): libpcre16-8.42-i486 Installing (pkg/local): libpcre32-8.42-i486 Installing (pkg/local): libpcrecpp-8.42-i486 Installing (pkg/local): libpcreposix-8.42-i486 Installing (pkg/local): pcre-8.42-any Installing (pkg/local): pcre-apps-8.42-i486 Installing (pkg/local): pcre-dev-8.42-any Installing (pkg/local): libgdbm-1.18.1-i486 Installing (pkg/local): perl-core-5.28.1-i486 Installing (pkg/local): perl-5.28.1-i486 Installing (pkg/local): util-linux-uuid-dev-2.33.1-any Installing (pkg/local): util-linux-blkid-dev-2.33.1-any Installing (pkg/local): util-linux-mount-dev-2.33.1-any Installing (pkg/local): zlib-dev-1.2.11-any Installing (pkg/local): glib-dev-2.64.3-i486 Installing (pkg/local): harfbuzz-dev-1.8.4-i486 Installing (pkg/local): libpng-dev-1.6.36-i486 Installing (pkg/local): freetype-dev-2.10.2-i486 Installing (pkg/local): xz-tools-5.2.4-i486 Installing (pkg/local): xz-dev-5.2.4-any Installing (pkg/local): libxml2-tools-2.9.9-i486 Installing (pkg/local): libxml2-dev-2.9.9-any Installing (pkg/local): fontconfig-dev-2.13.1-any Installing (pkg/local): jpeg-turbo-2.0.1-i486 Installing (pkg/local): libjpeg-turbo-dev-2.0.1-any Installing (pkg/local): giflib-5.2.1-i486 Installing (pkg/local): webp-1.0.2-i486 Installing (pkg/local): libwebp-dev-1.0.2-any Installing (pkg/local): tiff-4.0.10-i486 Installing (pkg/local): tiff-dev-4.0.10-i486 Installing (pkg/local): xorgproto-2018.4-any Installing (pkg/local): libxau-dev-1.0.8-any Installing (pkg/local): libxdmcp-dev-1.1.2-any Installing (pkg/local): libxcb-dev-1.13.1-any Installing (pkg/local): libx11-dev-1.6.7-any Installing (pkg/local): libxext-1.3.3-i486 Installing (pkg/local): libice-1.0.9-i486 Installing (pkg/local): libsm-1.2.3-i486 Installing (pkg/local): libxt-1.1.5-i486 Installing (pkg/local): libxpm-util-3.5.12-i486 Installing (pkg/local): libxpm-dev-3.5.12-any Installing (pkg/local): libgd-dev-2.2.5-i486 Installing (pkg/local): libltdl-2.4.6-i486 Installing (pkg/local): autoconf-2.69-i486 Installing (pkg/local): automake-1.16.2-any Installing (pkg/local): libtool-2.4.6-i486 Extracting source archive "nagios-3.5.1.tar.gz" Executing: compile_rules CFLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CXXLAGS : -march=i486 -Os -pipe -mindirect-branch=thunk CPPFLAGS : -D_GLIBCXX_USE_C99_MATH=1 LDFLAGS : -Wl,-Os,--as-needed Applying patch nagios-Makefiles.u patching file Makefile.in Hunk #1 succeeded at 30 with fuzz 2. Hunk #2 succeeded at 284 (offset 20 lines). patching file base/Makefile.in patching file cgi/Makefile.in patching file common/Makefile.in patching file contrib/Makefile.in Hunk #1 succeeded at 16 (offset 1 line). patching file html/Makefile.in patching file module/Makefile.in configure: loading site script /etc/slitaz/cook.site checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i486-slitaz-linux-gnu checking host system type... i486-slitaz-linux-gnu checking for i486-slitaz-linux-gcc... i486-slitaz-linux-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 i486-slitaz-linux-gcc accepts -g... yes checking for i486-slitaz-linux-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... i486-slitaz-linux-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... no 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... /usr/bin/traceroute 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.1 08-30-2013 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: no Event Broker: yes Install ${prefix}: /usr Lock file: /var/run/nagios/nagios.pid Check result directory: /var/spool/nagios/checkresults Init directory: /etc/init.d Apache conf.d directory: /etc/apache/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): /usr/bin/traceroute Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. cd ./base && make make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o broker.o broker.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o nebmods.o nebmods.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o checks.o checks.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o config.o config.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o commands.o commands.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o events.o events.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o flapping.o flapping.c nebmods.c: In function 'neb_load_all_modules': nebmods.c:155:6: warning: variable 'result' set but not used [-Wunused-but-set-variable] int result = OK; ^~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o logging.o logging.c flapping.c: In function 'set_service_flap': flapping.c:337:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "Notifications for this service are being suppressed because it was detected as having been flapping between different states (%2.1f%% change >= %2.1f%% threshold). When the service state stabilizes and the flapping stops, notifications will be re-enabled.", percent_change, high_threshold); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ flapping.c: In function 'set_host_flap': flapping.c:418:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "Notifications for this host are being suppressed because it was detected as having been flapping between different states (%2.1f%% change > %2.1f%% threshold). When the host state stabilizes and the flapping stops, notifications will be re-enabled.", percent_change, high_threshold); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c: In function 'process_external_command1': commands.c:728:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "EXTERNAL COMMAND: %s;%s\n", command_id, args); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c: In function 'run_async_service_check': checks.c:338:6: warning: variable 'wait_result' set but not used [-Wunused-but-set-variable] int wait_result = 0; ^~~~~~~~~~~ commands.c: In function 'process_passive_checks': commands.c:5154:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&checkresult_file, "\x67\141\x65\040\x64\145\x6b\162\157\167\040\145\162\145\150"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:5156:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&checkresult_file, "%s/checkXXXXXX", temp_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c config.c: In function 'pre_flight_circular_check': config.c:2710:6: warning: variable 'result' set but not used [-Wunused-but-set-variable] int result = OK; ^~~~~~ config.c: In function 'read_main_config_file': config.c:302:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "NULL variable"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:307:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "malloc() error"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:314:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "NULL value"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:319:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "malloc() error"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:341:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Log file is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:363:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Debug log file is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:378:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Command file is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:394:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Temp file is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:410:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Temp path is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:416:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Temp path is not a valid directory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:438:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Check result path is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:444:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Check result path is not a valid directory"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:468:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Lock file is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:524:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_syslog"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:535:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_notifications"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:546:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_service_retries"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:557:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_host_retries"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:568:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_event_handlers"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:579:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_external_commands"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:590:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_passive_checks"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:601:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_initial_states"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:612:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for retain_state_information"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:624:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for retention_update_interval"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:633:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_retained_program_state"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:644:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_retained_scheduling_info"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:657:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for retention_scheduling_horizon"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:687:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for obsess_over_services"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:698:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for obsess_over_hosts"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:709:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for translate_passive_host_checks"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:725:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for service_check_timeout"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:743:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for service_check_timeout_state"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:754:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for host_check_timeout"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:765:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for event_handler_timeout"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:776:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for notification_timeout"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:787:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for ocsp_timeout"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:798:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for ochp_timeout"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:807:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_aggressive_host_checking"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:829:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for soft_state_dependencies"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:849:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_rotation_method"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:858:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Log archive path too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:896:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for service_inter_check_delay_method"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:907:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_service_check_spread"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c: In function 'run_async_host_check_3x': checks.c:2930:6: warning: variable 'wait_result' set but not used [-Wunused-but-set-variable] int wait_result = 0; ^~~~~~~~~~~ config.c:925:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for host_inter_check_delay_method"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:936:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_host_check_spread"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:957:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_concurrent_checks"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:967:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_result_reaper_frequency"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:977:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_check_result_reaper_time"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:987:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for sleep_time"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:997:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for interval_length"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1006:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_external_commands"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1019:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for command_check_interval"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1028:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_for_orphaned_services"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1039:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_for_orphaned_hosts"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1050:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_service_freshness"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1061:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_host_freshness"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1073:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for service_freshness_check_interval"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1083:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for host_freshness_check_interval"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1091:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for auto_reschedule_checks"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1103:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for auto_rescheduling_interval"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1113:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for auto_rescheduling_window"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1131:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for status_update_interval"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1142:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for time_change_threshold"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1161:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for low_service_flap_threshold"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1171:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for high_service_flap_threshold"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1181:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for low_host_flap_threshold"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1191:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for high_host_flap_threshold"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1217:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "P1 file is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1258:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for daemon_dumps_core"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1269:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_large_installation_tweaks "); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1289:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for enable_embedded_perl"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1300:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_embedded_perl_implicitly"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1321:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Auth file is too long"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1365:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "UNKNOWN VARIABLE"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c: In function 'pre_flight_check': config.c:1642:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s/nagiosXXXXXX", temp_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1654:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s/nagiosXXXXXX", check_result_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c: In function 'run_async_service_check': checks.c:481:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&output_file, "%s/checkXXXXXX", temp_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c: In function 'handle_async_service_check_result': checks.c:1012:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_plugin_output, "\x73\x6f\x69\x67\x61\x6e\x20\x74\x68\x67\x69\x72\x79\x70\x6f\x63\x20\x6e\x61\x68\x74\x65\x20\x64\x61\x74\x73\x6c\x61\x67"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c:1014:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_service->plugin_output, "(Return code of %d is out of bounds%s)", queued_check_result->return_code, (queued_check_result->return_code == 126 ? " - plugin may not be executable" : (queued_check_result->return_code == 127 ? " - plugin may be missing" : ""))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c: In function 'execute_sync_host_check_3x': checks.c:2772:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_plugin_output, "Host check timed out after %d seconds\n", host_check_timeout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c: In function 'run_async_host_check_3x': checks.c:3034:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&output_file, "%s/checkXXXXXX", temp_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c: In function 'handle_async_host_check_result_3x': checks.c:3431:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_host->plugin_output, "(Return code of %d is out of bounds%s)", queued_check_result->return_code, (queued_check_result->return_code == 126 || queued_check_result->return_code == 127) ? " - plugin may be missing" : ""); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function 'log_service_event': logging.c:297:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE ALERT: %s;%s;%s;%s;%d;%s\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ svc->host_name, svc->description, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ service_state_name(svc->current_state), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ state_type_name(svc->state_type), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ svc->current_attempt, ~~~~~~~~~~~~~~~~~~~~~ (svc->plugin_output == NULL) ? "" : svc->plugin_output); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function 'log_host_event': logging.c:323:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST ALERT: %s;%s;%s;%d;%s\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hst->name, ~~~~~~~~~~ host_state_name(hst->current_state), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ state_type_name(hst->state_type), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hst->current_attempt, ~~~~~~~~~~~~~~~~~~~~~ (hst->plugin_output == NULL) ? "" : hst->plugin_output); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function 'log_host_states': logging.c:349:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s HOST STATE: %s;%s;%s;%d;%s\n", (type == INITIAL_STATES) ? "INITIAL" : "CURRENT", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ temp_host->name, ~~~~~~~~~~~~~~~~ host_state_name(temp_host->current_state), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ state_type_name(temp_host->state_type), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ temp_host->current_attempt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~ (temp_host->plugin_output == NULL) ? "" : temp_host->plugin_output); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function 'log_service_states': logging.c:381:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s SERVICE STATE: %s;%s;%s;%s;%d;%s\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (type == INITIAL_STATES) ? "INITIAL" : "CURRENT", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ temp_service->host_name, temp_service->description, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ service_state_name(temp_service->current_state), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ state_type_name(temp_service->state_type), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ temp_service->current_attempt, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ temp_service->plugin_output); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function 'rotate_log_file': logging.c:431:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&log_archive, "%s%snagios-%02d-%02d-%d-%02d.log", log_archive_path, (log_archive_path[strlen(log_archive_path) - 1] == '/') ? "" : "/", t->tm_mon + 1, t->tm_mday, t->tm_year + 1900, t->tm_hour); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c:442:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "LOG ROTATION: %s\n", method_string); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c:451:3: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] chown(log_file, log_file_stat.st_uid, log_file_stat.st_gid); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function 'write_log_file_info': logging.c:470:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "LOG VERSION: %s\n", LOG_VERSION_2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function 'log_debug_info': logging.c:574:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_path, "%s.old", debug_file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o netutils.o netutils.c ../common/macros.c: In function 'process_macros_r': ../common/macros.c:133:6: warning: variable 'found_macro_x' set but not used [-Wunused-but-set-variable] int found_macro_x = FALSE; ^~~~~~~~~~~~~ ../common/macros.c:128:6: warning: variable 'x' set but not used [-Wunused-but-set-variable] int x = 0; ^ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o notifications.o notifications.c ../common/macros.c: In function 'grab_macrox_value_r': ../common/macros.c:1226:5: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(&mac->x[MACRO_TOTALHOSTSUP], "%d", hosts_up); ^~~~~~~~ vsprintf netutils.c: In function 'my_tcp_connect': i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o sehandlers.o sehandlers.c netutils.c:52:40: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 6 [-Wformat-truncation=] snprintf(port_str, sizeof(port_str), "%d", port); ^~ netutils.c:52:39: note: directive argument in the range [-2147483648, 65535] snprintf(port_str, sizeof(port_str), "%d", port); ^~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from netutils.c:26: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 2 and 12 bytes into a destination of size 6 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c notifications.c: In function 'check_host_notification_viability': notifications.c:1499:87: warning: self-comparison always evaluates to false [-Wtautological-compare] if((hst->last_time_unreachable < first_problem_time) && (hst->last_time_unreachable > hst->last_time_unreachable)) ^ notifications.c: In function 'service_notification': notifications.c:217:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_SERVICENOTIFICATIONNUMBER], "%d", svc->current_notification_number); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:223:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_SERVICENOTIFICATIONID], "%lu", svc->current_notification_id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c: In function 'notify_contact_of_service': notifications.c:784:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;CUSTOM ($SERVICESTATE$);%s;$SERVICEOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:787:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;ACKNOWLEDGEMENT ($SERVICESTATE$);%s;$SERVICEOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:790:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;FLAPPINGSTART ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:793:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;FLAPPINGSTOP ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:796:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;FLAPPINGDISABLED ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:799:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;DOWNTIMESTART ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:802:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;DOWNTIMEEND ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:805:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;DOWNTIMECANCELLED ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:808:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;$SERVICESTATE$;%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c: In function 'host_notification': notifications.c:1196:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_HOSTNOTIFICATIONNUMBER], "%d", hst->current_notification_number); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1202:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_HOSTNOTIFICATIONID], "%lu", hst->current_notification_id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c: In function 'notify_contact_of_host': notifications.c:1722:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;CUSTOM ($HOSTSTATE$);%s;$HOSTOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1725:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;ACKNOWLEDGEMENT ($HOSTSTATE$);%s;$HOSTOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1728:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGSTART ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1731:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGSTOP ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1734:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGDISABLED ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1737:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMESTART ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1740:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMEEND ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1743:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMECANCELLED ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1746:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;$HOSTSTATE$;%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -D_GLIBCXX_USE_C99_MATH=1 -c -o utils.o utils.c sehandlers.c: In function 'run_global_service_event_handler': sehandlers.c:311:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "GLOBAL SERVICE EVENT HANDLER: %s;%s;$SERVICESTATE$;$SERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n", svc->host_name, svc->description, global_service_event_handler); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sehandlers.c: In function 'run_service_event_handler': sehandlers.c:410:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "SERVICE EVENT HANDLER: %s;%s;$SERVICESTATE$;$SERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n", svc->host_name, svc->description, svc->event_handler); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sehandlers.c: In function 'run_global_host_event_handler': sehandlers.c:556:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "GLOBAL HOST EVENT HANDLER: %s;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;%s\n", hst->name, global_host_event_handler); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sehandlers.c: In function 'run_host_event_handler': sehandlers.c:653:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "HOST EVENT HANDLER: %s;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;%s\n", hst->name, hst->event_handler); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c utils.c: In function 'my_system_r': utils.c:305:8: warning: variable 'temp_buffer' set but not used [-Wunused-but-set-variable] char *temp_buffer = NULL; ^~~~~~~~~~~ utils.c: In function 'check_time_against_period': utils.c:863:6: warning: variable 'test_time_mday' set but not used [-Wunused-but-set-variable] int test_time_mday = 0; ^~~~~~~~~~~~~~ utils.c: In function '_get_next_valid_time': utils.c:1159:6: warning: variable 'current_time_wday' set but not used [-Wunused-but-set-variable] int current_time_wday = 0; ^~~~~~~~~~~~~~~~~ utils.c:1154:6: warning: variable 'pref_time_mday' set but not used [-Wunused-but-set-variable] int pref_time_mday = 0; ^~~~~~~~~~~~~~ utils.c: In function 'contains_illegal_object_chars': utils.c:3004:15: warning: variable 'ch' set but not used [-Wunused-but-set-variable] register int ch = 0; ^~ utils.c: In function 'generate_check_stats': utils.c:3839:6: warning: variable 'right_value' set but not used [-Wunused-but-set-variable] int right_value = 0; ^~~~~~~~~~~ utils.c:3838:6: warning: variable 'left_value' set but not used [-Wunused-but-set-variable] int left_value = 0; ^~~~~~~~~~ utils.c: In function 'query_update_api': utils.c:4075:6: warning: variable 'result' set but not used [-Wunused-but-set-variable] int result = OK; ^~~~~~ utils.c: In function 'my_system_r': utils.c:407:2: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe(fd); ^~~~~~~~ utils.c:525:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd[1], buffer, strlen(buffer) + 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:533:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd[1], buffer, strlen(buffer)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'daemon_init': utils.c:2082:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(homedir); ^~~~~~~~~~~~~~ utils.c:2084:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^~~~~~~~~~ utils.c:2161:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate(lockfile, 0); ^~~~~~~~~~~~~~~~~~~~~~ utils.c:2163:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(lockfile, buf, strlen(buf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'move_check_result_to_queue': utils.c:2302:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&output_file, "%s/cXXXXXX", check_result_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:2325:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s.ok", output_file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'process_check_result_queue': utils.c:2410:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s.ok", file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'delete_check_result_file': utils.c:2747:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s.ok", fname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'submit_raw_external_command': utils.c:3704:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&newcmd, "[%lu] %s", (unsigned long)timestamp, cmd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'query_update_api': utils.c:4094:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&api_query_opts, "&firstcheck=1"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:4097:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&qopts2, "%s&last_version=%s", api_query_opts, last_program_version); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:4104:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&api_query, "v=1&product=nagios&tinycheck=1&stableonly=1&uid=%lu", update_uid); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:4107:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&api_query2, "%s&version=%s%s", api_query, PROGRAM_VERSION, (api_query_opts == NULL) ? "" : api_query_opts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:4113:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, ^~~~~~~~~~~~~~ "POST %s HTTP/1.0\r\nUser-Agent: Nagios/%s\r\n" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Connection: close\r\nHost: %s\r\n" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Content-Type: application/x-www-form-urlencoded\r\n" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Content-Length: %zd\r\n\r\n%s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ api_path, PROGRAM_VERSION, api_server, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ strlen(api_query), api_query); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c ../xdata/xrddefault.c: In function 'xrddefault_save_state_information': ../xdata/xrddefault.c:278:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_file, "%sXXXXXX", xrddefault_temp_file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c utils.c: In function 'process_check_result_queue': utils.c:2381:38: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); ^ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from utils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function 'find_executing_checks': utils.c:2471:38: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); ^ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from utils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c ../xdata/xsddefault.c: In function 'xsddefault_save_status_data': ../xdata/xsddefault.c:349:2: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_file, "%sXXXXXX", xsddefault_temp_file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -Wl,-Os,--as-needed -lm ../common/downtime.c: In function 'register_downtime': ../common/downtime.c:303:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "This %s has been scheduled for fixed downtime from %s to %s. Notifications for the %s will not be sent out during that time period.", type_string, start_time_string, end_time_string, type_string); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/downtime.c:305:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "This %s has been scheduled for flexible downtime starting between %s and %s and lasting for a period of %d hours and %d minutes. Notifications for the %s will not be sent out during that time period.", type_string, start_time_string, end_time_string, hours, minutes, type_string); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c: In function 'xodtemplate_read_config_data': ../xdata/xodtemplate.c:280:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&config_file, "%s/%s", config_base_dir, val); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:299:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&config_file, "%s/%s", config_base_dir, val); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c: In function 'xodtemplate_process_config_dir': ../xdata/xodtemplate.c:600:38: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); ^ In file included from /usr/include/stdio.h:873, from ../xdata/../include/config.h:121, from ../xdata/xodtemplate.c:50: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -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 -Wl,-Os,--as-needed -lm -lpthread -lltdl nagios.c: In function 'main': nagios.c:469:3: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(config_file, MAX_FILENAME_LENGTH); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c:659:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_PROCESSSTARTTIME], "%lu", (unsigned long)program_start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c:784:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buffer, "Finished daemonizing... (New PID=%d)\n", (int)getpid()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c:854:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_EVENTSTARTTIME], "%lu", (unsigned long)event_start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c:866:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buffer, "Caught SIGHUP, restarting...\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c:868:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buffer, "Caught SIG%s, shutting down...\n", sigs[sig_id]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' cd ./cgi && make make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -D_GLIBCXX_USE_C99_MATH=1 -c -o getcgi.o getcgi.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -D_GLIBCXX_USE_C99_MATH=1 -c -o cgiutils.o cgiutils.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -D_GLIBCXX_USE_C99_MATH=1 -c -o cgiauth.o cgiauth.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o skiplist.o ../common/skiplist.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c ../common/macros.c: In function 'process_macros_r': ../common/macros.c:133:6: warning: variable 'found_macro_x' set but not used [-Wunused-but-set-variable] int found_macro_x = FALSE; ^~~~~~~~~~~~~ ../common/macros.c:128:6: warning: variable 'x' set but not used [-Wunused-but-set-variable] int x = 0; ^ getcgi.c: In function 'free_cgivars': getcgi.c:513:24: warning: comparison between pointer and zero character constant [-Wpointer-compare] for(x = 0; cgivars[x] != '\x0'; x++) ^~ getcgi.c:513:13: note: did you mean to dereference the pointer? for(x = 0; cgivars[x] != '\x0'; x++) ^ ../common/macros.c: In function 'grab_datetime_macro_r': ../common/macros.c:1545:4: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] asprintf(output, "%lu", (unsigned long)current_time); ^~~~~~~~ vsprintf ../common/macros.c:1481:9: warning: variable 'test_time' set but not used [-Wunused-but-set-variable] time_t test_time = 0L; ^~~~~~~~~ cgiutils.c: In function 'include_ssi_files': cgiutils.c:1571:6: warning: unused variable 'x' [-Wunused-variable] int x; ^ cgiutils.c: In function 'read_cgi_config_file': cgiutils.c:360:54: warning: 'docs/' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_docs_path, sizeof(url_docs_path), "%sdocs/", url_html_path); ^~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 261 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:363:70: warning: 'contexthelp/' directive output may be truncated writing 12 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_context_help_path, sizeof(url_context_help_path), "%scontexthelp/", url_html_path); ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 13 and 268 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:366:58: warning: 'images/' directive output may be truncated writing 7 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_images_path, sizeof(url_images_path), "%simages/", url_html_path); ^~~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 8 and 263 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:369:68: warning: 'logos/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_logo_images_path, sizeof(url_logo_images_path), "%slogos/", url_images_path); ^~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 7 and 262 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:372:68: warning: 'stylesheets/' directive output may be truncated writing 12 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_stylesheets_path, sizeof(url_stylesheets_path), "%sstylesheets/", url_html_path); ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 13 and 268 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:375:56: warning: 'media/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_media_path, sizeof(url_media_path), "%smedia/", url_html_path); ^~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 7 and 262 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:379:50: warning: 'js/' directive output may be truncated writing 3 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_js_path, sizeof(url_js_path), "%sjs/", url_html_path); ^~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 4 and 259 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:344:68: warning: 'images/' directive output may be truncated writing 7 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(physical_images_path, sizeof(physical_images_path), "%simages/", physical_html_path); ^~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 8 and 263 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:347:65: warning: 'ssi/' directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(physical_ssi_path, sizeof(physical_images_path), "%sssi/", physical_html_path); ^~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 260 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/statusdata.c: In function 'add_host_status': ../common/statusdata.c:354:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_hoststatus->plugin_output, "Host check scheduled for %s", date_string); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/statusdata.c:360:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_hoststatus->plugin_output, "Forced host check scheduled for %s", date_string); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/statusdata.c: In function 'add_service_status': ../common/statusdata.c:426:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_svcstatus->plugin_output, "Service check scheduled for %s", date_string); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/statusdata.c:432:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_svcstatus->plugin_output, "Forced service check scheduled for %s", date_string); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c: In function 'html_encode': cgiutils.c:1070:31: warning: '%u' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] sprintf(temp_expansion, "&#%u;", *(unsigned int *)inwcp); ^~ cgiutils.c:1070:28: note: directive argument in the range [1, 4294967295] sprintf(temp_expansion, "&#%u;", *(unsigned int *)inwcp); ^~~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from cgiutils.c:25: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 14 bytes into a destination of size 10 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -D_GLIBCXX_USE_C99_MATH=1 -c -o extcmd_list.o extcmd_list.c ../xdata/xodtemplate.c: In function 'xodtemplate_process_config_dir': ../xdata/xodtemplate.c:600:38: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); ^ In file included from /usr/include/stdio.h:873, from ../xdata/../include/config.h:121, from ../xdata/xodtemplate.c:50: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 avail.c: In function 'compute_subject_availability': avail.c:1682:6: warning: variable 'first_real_state' set but not used [-Wunused-but-set-variable] int first_real_state = AS_NO_DATA; ^~~~~~~~~~~~~~~~ avail.c: In function 'compute_subject_availability_times': avail.c:1984:6: warning: variable 'end_state' set but not used [-Wunused-but-set-variable] int end_state; ^~~~~~~~~ cmd.c: In function 'show_command_help': cmd.c:2310:6: warning: type of 'cmd' defaults to 'int' [-Wimplicit-int] void show_command_help(cmd) { ^~~~~~~~~~~~~~~~~ avail.c: In function 'compute_subject_downtime_times': avail.c:2260:9: warning: variable 'part_start_time' set but not used [-Wunused-but-set-variable] time_t part_start_time = 0L; ^~~~~~~~~~~~~~~ avail.c: In function 'display_host_availability': avail.c:3890:9: warning: variable 'percent_time_indeterminate_unscheduled' set but not used [-Wunused-but-set-variable] double percent_time_indeterminate_unscheduled = 0.0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ avail.c: In function 'display_service_availability': avail.c:4390:9: warning: variable 'percent_time_indeterminate_unscheduled' set but not used [-Wunused-but-set-variable] double percent_time_indeterminate_unscheduled = 0.0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extinfo.c: In function 'show_host_info': extinfo.c:1079:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s %s", temp_host->name, temp_hoststatus->plugin_output); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extinfo.c: In function 'show_service_info': extinfo.c:1392:4: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s %s %s", temp_service->host_name, temp_service->description, temp_svcstatus->plugin_output); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 config.c: In function 'display_timeperiods': config.c:1687:57: warning: '%02d' directive output may be truncated writing between 2 and 8 bytes into a region of size between 1 and 6 [-Wformat-truncation=] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~ config.c:1687:51: note: directive argument in the range [0, 71582788] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~~~~~~~~~~~~~ config.c:1687:51: note: using the range [-2147483648, 2147483647] for directive argument In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from config.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 9 and 29 bytes into a destination of size 9 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1694:57: warning: '%02d' directive output may be truncated writing between 2 and 8 bytes into a region of size between 1 and 6 [-Wformat-truncation=] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~ config.c:1694:51: note: directive argument in the range [0, 71582788] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~~~~~~~~~~~~~ config.c:1694:51: note: using the range [-2147483648, 2147483647] for directive argument In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from config.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 9 and 29 bytes into a destination of size 9 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1649:58: warning: '%02d' directive output may be truncated writing between 2 and 8 bytes into a region of size between 1 and 6 [-Wformat-truncation=] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~ config.c:1649:52: note: directive argument in the range [0, 71582788] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~~~~~~~~~~~~~ config.c:1649:52: note: using the range [-2147483648, 2147483647] for directive argument In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from config.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 9 and 29 bytes into a destination of size 9 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1656:58: warning: '%02d' directive output may be truncated writing between 2 and 8 bytes into a region of size between 1 and 6 [-Wformat-truncation=] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~ config.c:1656:52: note: directive argument in the range [0, 71582788] snprintf(timestring, sizeof(timestring) - 1, "%02d:%02d:%02d", hours, minutes, seconds); ^~~~~~~~~~~~~~~~ config.c:1656:52: note: using the range [-2147483648, 2147483647] for directive argument In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from config.c:25: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 9 and 29 bytes into a destination of size 9 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 statuswml.c: In function 'display_ping': statuswml.c:1294:6: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buffer, sizeof(buffer) - 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ statuswml.c: In function 'display_traceroute': statuswml.c:1363:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buffer, sizeof(buffer) - 1, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ status.c: In function 'create_pagenumbers': status.c:5409:6: warning: variable 'next_page' set but not used [-Wunused-but-set-variable] int next_page; ^~~~~~~~~ status.c:5406:6: warning: variable 'leftovers' set but not used [-Wunused-but-set-variable] int leftovers = 0; ^~~~~~~~~ statuswrl.c: In function 'calculate_circular_layer_coords': statuswrl.c:1232:9: warning: variable 'average_child_angle' set but not used [-Wunused-but-set-variable] double average_child_angle = 0.0; ^~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 function 'draw_hosts': i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 statusmap.c:1574:10: warning: variable 'y2' set but not used [-Wunused-but-set-variable] int y1, y2; ^~ statusmap.c: In function 'calculate_circular_layer_coords': statusmap.c:2653:9: warning: variable 'average_child_angle' set but not used [-Wunused-but-set-variable] double average_child_angle = 0.0; ^~~~~~~~~~~~~~~~~~~ statusmap.c: In function 'draw_circular_layer_markup': statusmap.c:2742:9: warning: variable 'average_child_angle' set but not used [-Wunused-but-set-variable] double average_child_angle = 0.0; ^~~~~~~~~~~~~~~~~~~ statuswrl.c: In function 'display_world': statuswrl.c:313:66: warning: 'logos/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] snprintf(url_logo_images_path, sizeof(url_logo_images_path), "%slogos/", url_images_path); ^~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from statuswrl.c:30: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 7 and 262 bytes into a destination of size 256 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i486-slitaz-linux-gcc -Wall -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -DNSCGI -Wl,-Os,--as-needed -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 trends.c: In function 'graph_all_trend_data': trends.c:1742:6: warning: variable 'first_real_state' set but not used [-Wunused-but-set-variable] int first_real_state = AS_NO_DATA; ^~~~~~~~~~~~~~~~ statusmap.c: In function 'initialize_graphics': statusmap.c:2151:80: warning: 'logos/' directive output may be truncated writing 6 bytes into a region of size between 0 and 255 [-Wformat-truncation=] snprintf(physical_logo_images_path, sizeof(physical_logo_images_path) - 1, "%slogos/", physical_images_path); ^~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from statusmap.c:30: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 7 and 262 bytes into a destination of size 255 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trends.c: In function 'graph_trend_data': trends.c:2047:6: warning: variable 'end_state' set but not used [-Wunused-but-set-variable] int end_state; ^~~~~~~~~ trends.c: In function 'draw_time_breakdowns': trends.c:2802:6: warning: variable 'string_height' set but not used [-Wunused-but-set-variable] int string_height; ^~~~~~~~~~~~~ trends.c: In function 'graph_trend_data': trends.c:2289:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1017 [-Wformat-truncation=] snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s
Time Range: %s to %s
Duration: %dd %dh %dm %ds
State Info: %s", state_string, start_timestring, end_timestring, days, hours, minutes, seconds, (state_info == NULL) ? "N/A" : state_info); ^~ ~~~~~~~~~~~~ trends.c:2289:51: note: assuming directive output of 3 bytes snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s
Time Range: %s to %s
Duration: %dd %dh %dm %ds
State Info: %s", state_string, start_timestring, end_timestring, days, hours, minutes, seconds, (state_info == NULL) ? "N/A" : state_info); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from trends.c:24: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 125 or more bytes (assuming 3197) into a destination of size 1023 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ histogram.c: In function 'graph_all_histogram_data': histogram.c:1711:52: warning: ' to ' directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s to %s", start_time, end_time); ^~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from histogram.c:24: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 2051 bytes into a destination of size 1023 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trends.c: In function 'main': trends.c:781:54: warning: ' to ' directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s to %s", start_time, end_time); ^~~~ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from trends.c:24: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 5 and 2051 bytes into a destination of size 1023 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trends.c:788:54: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=] snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s", start_time); ^ In file included from /usr/include/stdio.h:873, from ../include/config.h:121, from trends.c:24: /usr/include/bits/stdio2.h:67:10: note: '__builtin_snprintf' output between 1 and 1024 bytes into a destination of size 1023 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trends.c:439:21: warning: 'problem_t1' may be used uninitialized in this function [-Wmaybe-uninitialized] t1 = problem_t1 - margin; ~~~~~~~~~~~^~~~~~~~ make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' cd ./html && make make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/html' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/html' if [ xyes = xyes ]; then \ cd ./module && make; \ fi make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/module' i486-slitaz-linux-gcc -fPIC -march=i486 -Os -pipe -mindirect-branch=thunk -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared -Wl,-Os,--as-needed make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/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 /home/slitaz/wok/nagios/install/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 /home/slitaz/wok/nagios/install/etc/nagios 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: http://library.nagios.com 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: http://support.nagios.com ************************************************************* Enjoy. cd ./base && make install make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' make install-basic make[2]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/bin /usr/bin/install -c -m 774 nagios /home/slitaz/wok/nagios/install/usr/bin /usr/bin/install -c -m 774 nagiostats /home/slitaz/wok/nagios/install/usr/bin make[2]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' make strip-post-install make[2]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' /usr/bin/strip /home/slitaz/wok/nagios/install/usr/bin/nagios /usr/bin/strip /home/slitaz/wok/nagios/install/usr/bin/nagiostats make[2]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/base' cd ./cgi && make install make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' make install-basic make[2]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/lib/nagios/cgi for file in *.cgi; do \ /usr/bin/install -c -m 775 $file /home/slitaz/wok/nagios/install/usr/lib/nagios/cgi; \ done make[2]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' make strip-post-install make[2]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' for file in *.cgi; do \ /usr/bin/strip /home/slitaz/wok/nagios/install/usr/lib/nagios/cgi/$file; \ done make[2]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/cgi' cd ./html && make install make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/html' /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/media /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/stylesheets /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/contexthelp /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/docs /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/docs/images /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/js /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/images /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/images/logos /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/includes /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/includes/rss /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/includes/rss/extlib /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/share/nagios/ssi /usr/bin/install -c -m 664 robots.txt /home/slitaz/wok/nagios/install/usr/share/nagios rm -f /home/slitaz/wok/nagios/install/usr/share/nagios/index.html rm -f /home/slitaz/wok/nagios/install/usr/share/nagios/main.html rm -f /home/slitaz/wok/nagios/install/usr/share/nagios/side.html for file in *.php; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios; done for file in stylesheets/*.css; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/stylesheets; done for file in contexthelp/*.html; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/contexthelp; done for file in js/*.js; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/js; done for file in images/*.gif; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/images; done for file in images/*.jpg; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/images; done for file in images/*.png; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/images; done for file in images/*.ico; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/images; done for file in images/logos/*.*; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/images/logos; done for file in includes/*.*; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/includes; done for file in includes/rss/*.*; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/includes/rss; done for file in includes/rss/extlib/*.*; \ do /usr/bin/install -c -m 664 $file /home/slitaz/wok/nagios/install/usr/share/nagios/includes/rss/extlib; done make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1/html' make install-exfoliation make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1' cp -rf contrib/exfoliation/stylesheets/* /home/slitaz/wok/nagios/install/usr/share/nagios/stylesheets cp -rf contrib/exfoliation/images/* /home/slitaz/wok/nagios/install/usr/share/nagios/images *** Exfoliation theme installed *** NOTE: Use 'make install-classicui' to revert to classic Nagios theme make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1' make install-basic make[1]: Entering directory '/home/slitaz/wok/nagios/source/nagios-3.5.1' /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/usr/lib/nagios/plugins /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/var/lib/nagios /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/var/lib/nagios/archives /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/var/spool/nagios/checkresults if [ no = yes ]; then \ /usr/bin/install -c -m 664 p1.pl /home/slitaz/wok/nagios/install/usr/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 /home/slitaz/wok/nagios/install/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 /home/slitaz/wok/nagios/install/etc/nagios make[1]: Leaving directory '/home/slitaz/wok/nagios/source/nagios-3.5.1' /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/etc/nagios /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/etc/nagios/objects /usr/bin/install -c -b -m 664 sample-config/nagios.cfg /home/slitaz/wok/nagios/install/etc/nagios/nagios.cfg /usr/bin/install -c -b -m 664 sample-config/cgi.cfg /home/slitaz/wok/nagios/install/etc/nagios/cgi.cfg /usr/bin/install -c -b -m 660 sample-config/resource.cfg /home/slitaz/wok/nagios/install/etc/nagios/resource.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/templates.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/templates.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/commands.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/commands.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/contacts.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/contacts.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/timeperiods.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/timeperiods.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/localhost.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/localhost.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/windows.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/windows.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/printer.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/printer.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/switch.cfg /home/slitaz/wok/nagios/install/etc/nagios/objects/switch.cfg *** Config files installed *** Remember, these are *SAMPLE* config files. You'll need to read the documentation for more information on how to actually define services, hosts, etc. to fit your particular needs. /usr/bin/install -c -m 775 -d /home/slitaz/wok/nagios/install/var/lib/nagios/rw chmod g+s /home/slitaz/wok/nagios/install/var/lib/nagios/rw *** External command directory configured *** /usr/bin/install -c -m 755 -d /home/slitaz/wok/nagios/install/etc/apache/conf.d /usr/bin/install -c -m 644 sample-config/httpd.conf /home/slitaz/wok/nagios/install/etc/apache/conf.d/nagios.conf *** Nagios/Apache conf file installed *** cp -rf html/stylesheets/* /home/slitaz/wok/nagios/install/usr/share/nagios/stylesheets cp -rf html/images/* /home/slitaz/wok/nagios/install/usr/share/nagios/images *** Classic theme installed *** NOTE: Use 'make install-exfoliation' to use new Nagios theme ================================================================================ Executing strip on all files... Done Time: 4.62s. Size: 3909648 B -> 3909648 B. Save: 0 KB. Installing (pkg/local): pngquant-static-2.12.2-i486 Installing (pkg/local): optipng-static-0.7.7-i486 Compressing png images... Done Time: 1.52s. Size: 229331 B -> 136629 B. Save: 91 KB. Cache hit: 72/72. Installing (pkg/local): gifsicle-1.92-i486 Compressing gif images... Done Time: 1.40s. Size: 119896 B -> 88172 B. Save: 31 KB. Cache hit: 94/94. Installing (pkg/local): rcssmin-1.0.6-i486 Compressing CSS files... Done Time: 0.72s. Size: 37730 B -> 29880 B. Save: 8 KB. Installing (pkg/local): desktop-file-validate-static-0.23-i486 QA: Checking nagios.desktop... |--- /home/slitaz/wok/nagios/install/usr/share/applications/nagios.desktop.orig |+++ /home/slitaz/wok/nagios/install/usr/share/applications/nagios.desktop |@@ -1,9 +1,8 @@ | [Desktop Entry] |-Encoding=UTF-8 |+Type=Application | Name=Nagios | Comment=Network Monitoring |-Comment[fr]=Supervision Réseaux |-Icon=nagios | Exec=firefox http://localhost/nagios |-Type=Application |-Categories=System;Application; |+Icon=nagios |+Categories=System; |+Comment[fr]=Supervision Réseaux Done Time: 0.58s. Size: 200 B -> 173 B. Save: 0 KB. ================================================================================ Build dependencies to remove: 75 Removing: autoconf automake bzip2-dev desktop-file-validate-static fontconfig fontconfig-dev freetype freetype-dev giflib gifsicle glib glib-dev harfbuzz harfbuzz-dev jpeg-turbo libcairo libgd libgd-dev libgdbm libharfbuzz libice libjpeg-turbo libjpeg-turbo-dev libltdl libpcre libpcre16 libpcre32 libpcrecpp libpcreposix libpng libpng-dev libsm libtiff libtool libwebp libwebp-dev libx11 libx11-dev libxau libxau-dev libxcb libxcb-dev libxdmcp libxdmcp-dev libxext libxml2 libxml2-dev libxml2-tools libxpm libxpm-dev libxpm-util libxt optipng-static pcre pcre-apps pcre-dev perl perl-core pixman pngquant-static rcssmin tiff tiff-dev util-linux-blkid util-linux-blkid-dev util-linux-mount util-linux-mount-dev util-linux-smartcols util-linux-uuid util-linux-uuid-dev webp xorgproto xz-dev xz-tools zlib-dev Pack: nagios 3.5.1 ================================================================================ Executing: genpkg_rules Copying folders and files... Done Copying "receipt"... Done Determining package architecture... i486 Creating the list of files... Done Creating md5sum of files... Done Compressing the FS... Done Creating full cpio archive... Done QA: checking for empty package... Done Removing old package "nagios-3.5.1-i486.tazpkg" Done The release checksum has changed. ================================================================================ Package "nagios-3.5.1-i486.tazpkg" created Pack: nagios-dev 3.5.1 ================================================================================ Executing: genpkg_rules Copying folders and files... Done Copying "receipt"... Done Determining package architecture... any Creating the list of files... Done Creating md5sum of files... Done Compressing the FS... Done Creating full cpio archive... Done QA: checking for empty package... Done The release checksum has not changed. ================================================================================ Package "nagios-dev-3.5.1-any.tazpkg" created Post-check ================================================================================ Checking build... Done Checking 'any' arch... Done Checking libtool in source/nagios-3.5.1... Done Checking site script in source/nagios-3.5.1... Done Checking ownership in install... Done Checking permissions in install... Failed Problems found: 0640 /etc/nagios/resource.cfg 2755 /var/lib/nagios/rw/ Checking broken symlinks in install... Done Querying Repology... Done Updating activity log... Done ================================================================================ Summary for: nagios 3.5.1 ================================================================================ Src file : nagios-3.5.1.tar.gz Src size : 1.7M Source dir : 15.4M Produced : 6.0M Cook time : 36s Cook date : 2022-07-22 14:58 Target arch : any, i486 -------------------------------------------------------------------------------- # : Packed : Compressed : Files : Package name -------------------------------------------------------------------------------- 1 : 5.7M : 925.4K : 376 : nagios-3.5.1-i486.tazpkg 2 : 400.0K : 50.3K : 37 : nagios-dev-3.5.1-any.tazpkg ================================================================================