nagios-plugins cfg files not created
nagios-plugins cfg files not created
Installed from source multiple times and still have no .cfg files for plugins. Anyone experience this issue before?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: nagios-plugins cfg files not created
What kind of config are you looking for? The plugins package does not contain additional configurations, and as far as I know anything like this would come with your nagios core installation.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: nagios-plugins cfg files not created
Here's a snippet from another install. These config files are missing on the problematic install:
/etc/nagios-plugins/config/ldap.cfg
/etc/nagios-plugins/config/ping.cfg
/etc/nagios-plugins/config/mail.cfg
/etc/nagios-plugins/config/mysql.cfg
/etc/nagios-plugins/config/ifstatus.cfg
/etc/nagios-plugins/config/http.cfg
/etc/nagios-plugins/config/dummy.cfg
/etc/nagios-plugins/config/nt.cfg
/etc/nagios-plugins/config/procs.cfg
/etc/nagios-plugins/config/flexlm.cfg
/etc/nagios-plugins/config/breeze.cfg
/etc/nagios-plugins/config/ntp.cfg
/etc/nagios-plugins/config/pgsql.cfg
/etc/nagios-plugins/config/hppjd.cfg
/etc/nagios-plugins/config/mrtg.cfg
/etc/nagios-plugins/config/apt.cfg
/etc/nagios-plugins/config/telnet.cfg
/etc/nagios-plugins/config/ftp.cfg
/etc/nagios-plugins/config/fping.cfg
/etc/nagios-plugins/config/disk-smb.cfg
/etc/nagios-plugins/config/news.cfg
/etc/nagios-plugins/config/real.cfg
/etc/nagios-plugins/config/dns.cfg
/etc/nagios-plugins/config/tcp_udp.cfg
/etc/nagios-plugins/config/rpc-nfs.cfg
/etc/nagios-plugins/config/backup-exec.cfg
/etc/nagios-plugins/config/users.cfg
/etc/nagios-plugins/config/radius.cfg
/etc/nagios-plugins/config/disk.cfg
/etc/nagios-plugins/config/dhcp.cfg
/etc/nagios-plugins/config/snmp.cfg
/etc/nagios-plugins/config/load.cfg
/etc/nagios-plugins/config/mailq.cfg
/etc/nagios-plugins/config/netware.cfg
/etc/nagios-plugins/config/nrpe.cfg
/etc/nagios-plugins/config/games.cfg
/etc/nagios-plugins/config/ssh.cfg
/etc/nagios-plugins/config/ldap.cfg
/etc/nagios-plugins/config/ping.cfg
/etc/nagios-plugins/config/mail.cfg
/etc/nagios-plugins/config/mysql.cfg
/etc/nagios-plugins/config/ifstatus.cfg
/etc/nagios-plugins/config/http.cfg
/etc/nagios-plugins/config/dummy.cfg
/etc/nagios-plugins/config/nt.cfg
/etc/nagios-plugins/config/procs.cfg
/etc/nagios-plugins/config/flexlm.cfg
/etc/nagios-plugins/config/breeze.cfg
/etc/nagios-plugins/config/ntp.cfg
/etc/nagios-plugins/config/pgsql.cfg
/etc/nagios-plugins/config/hppjd.cfg
/etc/nagios-plugins/config/mrtg.cfg
/etc/nagios-plugins/config/apt.cfg
/etc/nagios-plugins/config/telnet.cfg
/etc/nagios-plugins/config/ftp.cfg
/etc/nagios-plugins/config/fping.cfg
/etc/nagios-plugins/config/disk-smb.cfg
/etc/nagios-plugins/config/news.cfg
/etc/nagios-plugins/config/real.cfg
/etc/nagios-plugins/config/dns.cfg
/etc/nagios-plugins/config/tcp_udp.cfg
/etc/nagios-plugins/config/rpc-nfs.cfg
/etc/nagios-plugins/config/backup-exec.cfg
/etc/nagios-plugins/config/users.cfg
/etc/nagios-plugins/config/radius.cfg
/etc/nagios-plugins/config/disk.cfg
/etc/nagios-plugins/config/dhcp.cfg
/etc/nagios-plugins/config/snmp.cfg
/etc/nagios-plugins/config/load.cfg
/etc/nagios-plugins/config/mailq.cfg
/etc/nagios-plugins/config/netware.cfg
/etc/nagios-plugins/config/nrpe.cfg
/etc/nagios-plugins/config/games.cfg
/etc/nagios-plugins/config/ssh.cfg
Re: nagios-plugins cfg files not created
Was this other install done on the same OS? Was it installed from source or repo?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: nagios-plugins cfg files not created
I too am having this trouble. Did you ever get resolution on this? I know it is an old thread but it matches my problem to the t. I tried installing from source as well as yum. Centos 6.8 system.
Re: nagios-plugins cfg files not created
The OP has not logged in since April of 2014, so I doubt he is going to see this.
What steps did you take to perform the install? Can you post the exact commands/steps?
What steps did you take to perform the install? Can you post the exact commands/steps?
Former Nagios employee
Re: nagios-plugins cfg files not created
Take a look at this page - https://assets.nagios.com/downloads/nag ... Source.pdf
Specifically the part about plugins, you'll need to compile them from the /tmp/ directory.
Specifically the part about plugins, you'll need to compile them from the /tmp/ directory.
Former Nagios Employee
Re: nagios-plugins cfg files not created
So the fact that I compiled them from a diff directory (I chose /root/download), will break this process?
Re: nagios-plugins cfg files not created
It shouldn't matter. Did you run 'make' and 'make install'? Did your compiler fail during the process? I just tested this on a blank machine as an example, and it worked fine.
Now, I can see the plugins were created -
As @tmcdonald mentioned -
Code: Select all
[root@localhost nagioslogserver]# cd /root
[root@localhost ~]# mkdir downloads
[root@localhost ~]# cd downloads
[root@localhost downloads]# wget https://nagios-plugins.org/download/nagios-plugins-2.1.2.tar.gz#_ga=1.4390131.136716657.1444063497
--2016-10-10 16:46:25-- https://nagios-plugins.org/download/nagios-plugins-2.1.2.tar.gz
Resolving nagios-plugins.org... 72.14.186.43
Connecting to nagios-plugins.org|72.14.186.43|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2695301 (2.6M) [application/x-gzip]
Saving to: “nagios-plugins-2.1.2.tar.gz”
100%[==========================================================================================>] 2,695,301 2.73M/s in 0.9s
2016-10-10 16:46:26 (2.73 MB/s) - “nagios-plugins-2.1.2.tar.gz” saved [2695301/2695301]
[root@localhost downloads]# tar zxf nagios-plugins-2.1.2.tar.gz
[root@localhost downloads]# cd nagios-plugins-2.1.2
[root@localhost nagios-plugins-2.1.2]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
...
...
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
--with-apt-get-command:
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-ipv6: yes
--with-mysql: no
--with-openssl: no
--with-gnutls: no
--enable-extra-opts: yes
--with-perl: /usr/bin/perl
--enable-perl-modules: no
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
--enable-libtap: no
Code: Select all
[root@localhost nagios-plugins-2.1.2]# make
make all-recursive
make[1]: Entering directory `/root/downloads/nagios-plugins-2.1.2'
Making all in gl
make[2]: Entering directory `/root/downloads/nagios-plugins-2.1.2/gl'
...
...
make[2]: Entering directory `/root/downloads/nagios-plugins-2.1.2/plugins'
test -z "/usr/local/nagios/libexec" || /bin/mkdir -p "/usr/local/nagios/libexec"
/bin/sh ../libtool --mode=install /usr/bin/install -c check_apt check_cluster check_disk check_dummy check_http check_load check_mrtg check_mrtgtraf check_ntp check_ntp_peer check_nwstat check_overcr check_ping check_real check_smtp check_ssh check_tcp check_time check_ntp_time check_ups check_users negate urlize check_ide_smart check_uptime check_procs check_nagios check_hpjd check_snmp check_swap check_nt '/usr/local/nagios/libexec'
libtool: install: /usr/bin/install -c check_apt /usr/local/nagios/libexec/check_apt
libtool: install: /usr/bin/install -c check_cluster /usr/local/nagios/libexec/check_cluster
libtool: install: /usr/bin/install -c check_disk /usr/local/nagios/libexec/check_disk
libtool: install: /usr/bin/install -c check_dummy /usr/local/nagios/libexec/check_dummy
libtool: install: /usr/bin/install -c check_http /usr/local/nagios/libexec/check_http
libtool: install: /usr/bin/install -c check_load /usr/local/nagios/libexec/check_load
libtool: install: /usr/bin/install -c check_mrtg /usr/local/nagios/libexec/check_mrtg
libtool: install: /usr/bin/install -c check_mrtgtraf /usr/local/nagios/libexec/check_mrtgtraf
libtool: install: /usr/bin/install -c check_ntp /usr/local/nagios/libexec/check_ntp
libtool: install: /usr/bin/install -c check_ntp_peer /usr/local/nagios/libexec/check_ntp_peer
libtool: install: /usr/bin/install -c check_nwstat /usr/local/nagios/libexec/check_nwstat
libtool: install: /usr/bin/install -c check_overcr /usr/local/nagios/libexec/check_overcr
libtool: install: /usr/bin/install -c check_ping /usr/local/nagios/libexec/check_ping
libtool: install: /usr/bin/install -c check_real /usr/local/nagios/libexec/check_real
libtool: install: /usr/bin/install -c check_smtp /usr/local/nagios/libexec/check_smtp
libtool: install: /usr/bin/install -c check_ssh /usr/local/nagios/libexec/check_ssh
libtool: install: /usr/bin/install -c check_tcp /usr/local/nagios/libexec/check_tcp
libtool: install: /usr/bin/install -c check_time /usr/local/nagios/libexec/check_time
libtool: install: /usr/bin/install -c check_ntp_time /usr/local/nagios/libexec/check_ntp_time
libtool: install: /usr/bin/install -c check_ups /usr/local/nagios/libexec/check_ups
libtool: install: /usr/bin/install -c check_users /usr/local/nagios/libexec/check_users
libtool: install: /usr/bin/install -c negate /usr/local/nagios/libexec/negate
libtool: install: /usr/bin/install -c urlize /usr/local/nagios/libexec/urlize
libtool: install: /usr/bin/install -c check_ide_smart /usr/local/nagios/libexec/check_ide_smart
libtool: install: /usr/bin/install -c check_uptime /usr/local/nagios/libexec/check_uptime
libtool: install: /usr/bin/install -c check_procs /usr/local/nagios/libexec/check_procs
libtool: install: /usr/bin/install -c check_nagios /usr/local/nagios/libexec/check_nagios
libtool: install: /usr/bin/install -c check_hpjd /usr/local/nagios/libexec/check_hpjd
libtool: install: /usr/bin/install -c check_snmp /usr/local/nagios/libexec/check_snmp
libtool: install: /usr/bin/install -c check_swap /usr/local/nagios/libexec/check_swap
libtool: install: /usr/bin/install -c check_nt /usr/local/nagios/libexec/check_nt
make install-exec-hook
make[3]: Entering directory `/root/downloads/nagios-plugins-2.1.2/plugins'
cd /usr/local/nagios/libexec && \
for i in check_ftp check_imap check_nntp check_pop check_udp check_clamd ; do rm -f $i; ln -s check_tcp $i ; done ;\
if [ -x check_ldap ] ; then rm -f check_ldaps ; ln -s check_ldap check_ldaps ; fi
make[3]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/plugins'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/plugins'
make[1]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/plugins'
Making install in plugins-scripts
make[1]: Entering directory `/root/downloads/nagios-plugins-2.1.2/plugins-scripts'
make[2]: Entering directory `/root/downloads/nagios-plugins-2.1.2/plugins-scripts'
test -z "/usr/local/nagios/libexec" || /bin/mkdir -p "/usr/local/nagios/libexec"
/usr/bin/install -c check_breeze check_disk_smb check_flexlm check_ircd check_log check_oracle check_rpc check_sensors check_wave check_ifstatus check_ifoperstatus check_mailq check_file_age utils.sh utils.pm '/usr/local/nagios/libexec'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/plugins-scripts'
make[1]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/plugins-scripts'
Making install in plugins-root
make[1]: Entering directory `/root/downloads/nagios-plugins-2.1.2/plugins-root'
make[2]: Entering directory `/root/downloads/nagios-plugins-2.1.2/plugins-root'
/usr/bin/install -c check_dhcp /usr/local/nagios/libexec/check_dhcp
chown root /usr/local/nagios/libexec/check_dhcp
chmod ug=rx,u+s /usr/local/nagios/libexec/check_dhcp
/usr/bin/install -c check_icmp /usr/local/nagios/libexec/check_icmp
chown root /usr/local/nagios/libexec/check_icmp
chmod ug=rx,u+s /usr/local/nagios/libexec/check_icmp
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/plugins-root'
make[1]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/plugins-root'
Making install in po
make[1]: Entering directory `/root/downloads/nagios-plugins-2.1.2/po'
/bin/mkdir -p /usr/local/nagios/share
installing fr.gmo as /usr/local/nagios/share/locale/fr/LC_MESSAGES/nagios-plugins.mo
installing de.gmo as /usr/local/nagios/share/locale/de/LC_MESSAGES/nagios-plugins.mo
if test "nagios-plugins" = "gettext-tools"; then \
/bin/mkdir -p /usr/local/nagios/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin Makevars.template; do \
/usr/bin/install -c -m 644 ./$file \
/usr/local/nagios/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /usr/local/nagios/share/gettext/po/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory `/root/downloads/nagios-plugins-2.1.2/po'
make[1]: Entering directory `/root/downloads/nagios-plugins-2.1.2'
make[2]: Entering directory `/root/downloads/nagios-plugins-2.1.2'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/downloads/nagios-plugins-2.1.2'
make[1]: Leaving directory `/root/downloads/nagios-plugins-2.1.2'
Code: Select all
[root@localhost nagios-plugins-2.1.2]# ls -al /usr/local/nagios/libexec/
total 5760
drwxr-xr-x 2 root root 4096 Oct 10 16:48 .
drwxr-xr-x 5 root root 4096 Oct 10 16:48 ..
-rwxr-xr-x 1 root root 181791 Oct 10 16:48 check_apt
-rwxr-xr-x 1 root root 2346 Oct 10 16:48 check_breeze
lrwxrwxrwx 1 root root 9 Oct 10 16:48 check_clamd -> check_tcp
-rwxr-xr-x 1 root root 140470 Oct 10 16:48 check_cluster
-r-sr-xr-x 1 root root 181022 Oct 10 16:48 check_dhcp
-rwxr-xr-x 1 root root 196017 Oct 10 16:48 check_disk
tmcdonald wrote:What steps did you take to perform the install? Can you post the exact commands/steps?
Former Nagios Employee
Re: nagios-plugins cfg files not created
I have those. If you refer to the 3rd post, that is what is missing. I have the executables but lack the .cfg files. What you posted is not the issue here. And to answer your question, I followed the pdf that was mentioned to the t (minus where I downloaded and compiled from which I wouldn't think mattered).
It doesn't really matter at this point as I found out that I could define the commands I need in the same .cfg file that define the services (or put them wherever I want for that matter). Its just that all of the documentation out there shows .cfg files in the directory of the 3rd post.
Thank you for trying to help.
It doesn't really matter at this point as I found out that I could define the commands I need in the same .cfg file that define the services (or put them wherever I want for that matter). Its just that all of the documentation out there shows .cfg files in the directory of the 3rd post.
Thank you for trying to help.