config.status: error: cannot find input file: `Makefile.in '

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Eudes87
Posts: 30
Joined: Wed Oct 09, 2019 8:37 am

config.status: error: cannot find input file: `Makefile.in '

Post by Eudes87 »

Hello friends,
Initially sorry for my english.
I'm new to Nagios, and I'm just trying to install the NRPE plugin on the nagios server to get information from windows machines.

After running or downloading NRPE while trying to follow the installation (https://github.com/NagiosEnterprises/nrpe or https://assets.nagios.com/downloads/nag ... e/NRPE.pdf) encountering the difficulty .

I was having the same error on the post: https://support.nagios.com/forum/viewto ... =7&t=41604
Following a user recommendation and installing libssl-dev, I am now encountering another error.

After executing "./configure" in the NRPE folder, follow the return:
config.status: error: cannot find input file: `Makefile.in '

Following complete return:

Code: Select all

root@security2:~/dados/nrpe-master# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking what the operating system is ... linux
checking what the distribution type is ... debian
checking what init system is being used ... systemd
checking what inetd is being used ... systemd
checking for which paths to use ... default
checking for which init file to use ... default-service
checking for which inetd files to use ... default-socket
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 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 for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
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 paths.h usability... yes
checking paths.h presence... yes
checking for paths.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 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 size of int... 4
checking size of short... 2
checking size of long... 8
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for struct sockaddr_storage... yes
checking for seteuid... yes
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 getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... no
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for strtok_r... yes
checking for initgroups... yes
checking for closesocket... no
checking for sigaction... yes
checking for scandir... yes
checking for socklen_t... yes
checking for type of socket size... size_t
checking for Kerberos include files... configure: WARNING: could not find include files
checking for pkg-config... pkg-config
checking whether compiling and linking against SSL works... yes
checking for openssl... /usr/bin/openssl

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
....................+........................................................+................................................................................................................................................................................................................................................................+......................................................................................................................................................................................................................................+...............................................................+....................................................................................................................................................................................................................................+...................................................................................................................................................................................................................................+.....................................................................................+...............................................+................................................+...............................................................................................+...............................................................................................................................................+............................................+..................................+......+..................................................................................................+...........................................+................................................................................................................................................+............................................................................................................................................................................+....+............................................................................................+.............................................................................+....................................................................................................+.......+...................................................................................................................................................................................................................................................................................................+................................................................................................................+.................+.........+..........................................................................................................................................................+........................+.......................................................................+................+................................................................................................................................................+.....................................................................................+.............................................................+......................................................................................+.......+...........................................................................................................................................+.....................................+...............................................................................................+...............+...+..............................+..............+.....................+.................................................................................................................................+......+..........................................+.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................+................................................+.....................................................................................+...........................................................+.......................................+..................+................................................................................................................................+..........................+.........................................................................................+..+................+.........+.............................................................+.........................+....................................................................................................+................................................................................+.........................................+....................+..............................................................................................................................................................................+...........................................................................+.......................................................+.........................................................................................................................................................+...........+................................................+.............................................................................................................................................................................................................................+............................................................................................................................................................+.......................+.........................................................+..................+.................+..........+...................................................................+............................................................................................................................................++*++*++*++*
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
I am using Ubuntu 18.04.3 LTS
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: config.status: error: cannot find input file: `Makefile.

Post by benjaminsmith »

Hello @Eudes87,

If you'd like to monitor Windows systems, I would recommend installing NCPA ( Nagios Cross Platform Agent ) on those devices. Please see the documentation below.

NCPA Agent Installation Instructions

Otherwise, you can use the check_nrpe plugin to communicate with NSClient running on the Windows systems. Have you compiled the Nagios Plugins on this server? This package contains wide range of monitoring plugins and includes check_nrpe.

Nagios Plugins - Installing Nagios Plugins From Source
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Eudes87
Posts: 30
Joined: Wed Oct 09, 2019 8:37 am

Re: config.status: error: cannot find input file: `Makefile.

Post by Eudes87 »

benjaminsmith wrote:Hello @Eudes87,

If you'd like to monitor Windows systems, I would recommend installing NCPA ( Nagios Cross Platform Agent ) on those devices. Please see the documentation below.

NCPA Agent Installation Instructions

Otherwise, you can use the check_nrpe plugin to communicate with NSClient running on the Windows systems. Have you compiled the Nagios Plugins on this server? This package contains wide range of monitoring plugins and includes check_nrpe.

Nagios Plugins - Installing Nagios Plugins From Source
Thanks for the brief return.

Install nagios-plugins-2.2.1.tar.gz, but it didn't bring check_nrpe, it brought the following plugins:

Code: Select all

root@security2:/usr/local/nagios/libexec# ls -1
check_apt
check_breeze
check_by_ssh
check_clamd
check_cluster
check_dhcp
check_dig
check_disk
check_disk_smb
check_dns
check_dummy
check_file_age
check_flexlm
check_ftp
check_http
check_icmp
check_ide_smart
check_ifoperstatus
check_ifstatus
check_imap
check_ircd
check_load
check_log
check_mailq
check_mrtg
check_mrtgtraf
check_nagios
check_nntp
check_nt
check_ntp
check_ntp_peer
check_ntp_time
check_nwstat
check_oracle
check_overcr
check_ping
check_pop
check_port.pl
check_procs
check_real
check_rpc
check_sensors
check_smtp
check_ssh
check_swap
check_tcp
check_time
check_udp
check_ups
check_uptime
check_users
check_wave
eventhandlers
negate
urlize
utils.pm
utils.sh
It was using or check_nt and was working normally, but after a few days could no longer monitor because the messages in the image below, after several attempts to resolve this, is already possible NSClient installed on machines that can be used, used by check_nrpe .

Image

Can you tell me the plugin download link that contains check_nrpe and the installation procedure?
Since it is not related to the beginning, it was not possible to install the downloaded plug-in for NRPE.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: config.status: error: cannot find input file: `Makefile.

Post by benjaminsmith »

Hello @Eude87,

Sorry about the confusion, I've since learned to get the check_nrpe plugin, you'll need to download the nrpe source code but follow the instructions at the end of this page to install check_nrpe plugin only.
Install check_nrpe Plugin Only

The steps above install the NRPE agent and plugin. In some circumstances you may want to only install the check_nrpe plugin, usually required on your Nagios server.

Follow the steps above in this order:

Prerequisites
Downloading the Source
Then execute these commands:

cd /tmp/nrpe/
./configure
make check_nrpe
make install-plugin
NRPE - How To Install NRPE v3 From Source

Let me know if you're able to get it installed successfully.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Eudes87
Posts: 30
Joined: Wed Oct 09, 2019 8:37 am

Re: config.status: error: cannot find input file: `Makefile.

Post by Eudes87 »

benjaminsmith wrote:Hello @Eude87,

Sorry about the confusion, I've since learned to get the check_nrpe plugin, you'll need to download the nrpe source code but follow the instructions at the end of this page to install check_nrpe plugin only.
Install check_nrpe Plugin Only

The steps above install the NRPE agent and plugin. In some circumstances you may want to only install the check_nrpe plugin, usually required on your Nagios server.

Follow the steps above in this order:

Prerequisites
Downloading the Source
Then execute these commands:

cd /tmp/nrpe/
./configure
make check_nrpe
make install-plugin
NRPE - How To Install NRPE v3 From Source

Let me know if you're able to get it installed successfully.
@benjaminsmith
https://support.nagios.com/kb/article.php?id=515
https://i.imgur.com/fLHIhY1.jpg

exchange.nagios.org/
https://i.imgur.com/PsAx42V.jpg

Could you please tell me the direct download link for the plug-in check_nrpe is right? Otherwise can you enter the correct one?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: config.status: error: cannot find input file: `Makefile.

Post by scottwilkerson »

Code: Select all

cd /tmp
rm -rf nrpe*
wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.2.1.tar.gz
tar xzf nrpe.tar.gz
cd /tmp/nrpe/
./configure
make check_nrpe
make install-plugin
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Eudes87
Posts: 30
Joined: Wed Oct 09, 2019 8:37 am

Re: config.status: error: cannot find input file: `Makefile.

Post by Eudes87 »

scottwilkerson wrote:

Code: Select all

cd /tmp
rm -rf nrpe*
wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.2.1.tar.gz
tar xzf nrpe.tar.gz
cd /tmp/nrpe/
./configure
make check_nrpe
make install-plugin
@scottwilkerson
It went well until "make check_nrpe". OK
After "make install-plugin", the error of the image below occurred:
Image
Can you help me with this?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: config.status: error: cannot find input file: `Makefile.

Post by scottwilkerson »

Hmm, I don't speak/read whatever language is being displayed in the error so I don't know what the error is saying..

Can you show the output of

Code: Select all

ls -l /root/dados/nrpe-nrpe-3.2.1/src
ls -l /usr/local/nagios/libexec/check_nrpe
ls -dl /usr/local/nagios/libexec
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Eudes87
Posts: 30
Joined: Wed Oct 09, 2019 8:37 am

Re: config.status: error: cannot find input file: `Makefile.

Post by Eudes87 »

scottwilkerson wrote:Hmm, I don't speak/read whatever language is being displayed in the error so I don't know what the error is saying..
/usr/bin/install: Could not get state of 'check_nrpe': nonexistent file or directory.
scottwilkerson wrote: Can you show the output of

Code: Select all

ls -l /root/dados/nrpe-nrpe-3.2.1/src
ls -l /usr/local/nagios/libexec/check_nrpe
ls -dl /usr/local/nagios/libexec
# ls -l /root/dados/nrpe-3.2.1/src
total 212
-rw-rw-r-- 1 root root 20494 set 1 2017 acl.c
-rw-rw-r-- 1 root root 48763 set 1 2017 check_nrpe.c
-rw-r--r-- 1 root root 2610 out 24 10:09 Makefile
-rw-rw-r-- 1 root root 2550 set 1 2017 Makefile.in
-rw-rw-r-- 1 root root 79342 set 1 2017 nrpe.c
-rw-rw-r-- 1 root root 34422 set 1 2017 snprintf.c
-rw-rw-r-- 1 root root 15049 set 1 2017 utils.c

# ls -l /usr/local/nagios/libexec/check_nrpe
ls: could not access '/usr/local/nagios/libexec/check_nrpe': Nonexistent file or directory

# ls -dl /usr/local/nagios/libexec
drwxrwxr-x 3 nagios nagios 4096 out 22 20:31 /usr/local/nagios/libexec
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: config.status: error: cannot find input file: `Makefile.

Post by scottwilkerson »

What was the output when you ran

Code: Select all

make check_nrpe
because it doesn't look like that happened
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked