Page 2 of 3

Re: check_by_ssh

Posted: Fri Feb 07, 2014 3:30 pm
by sreinhardt
It should have been installed as a part of XI, but let's make sure you have the openssl dev package

Code: Select all

rpm -qa | grep openssl

Re: check_by_ssh

Posted: Tue Feb 11, 2014 8:02 am
by opensys
[root@srvnagios ~]# rpm -qa | grep openssl
openssl-devel-1.0.1e-16.el6_5.1.i686
openssl-1.0.1e-16.el6_5.1.i686
[root@srvnagios ~]#

sreinhardt wrote:It should have been installed as a part of XI, but let's make sure you have the openssl dev package

Code: Select all

rpm -qa | grep openssl

Re: check_by_ssh

Posted: Tue Feb 11, 2014 11:29 am
by abrist
Well, for some reason you do not have it. Lets download the nagios-plugins tarball, build it, and then copy it to libexec:

Code: Select all

cd /tmp
wget https://github.com/nagios-plugins/nagios-plugins/archive/master.zip
unzip master.zip
cd nagios-plugins-master
./tools/setup
./configure
make all
cp plugins/check_by_ssh /usr/local/nagios/libexec

Re: check_by_ssh

Posted: Thu Feb 13, 2014 2:30 pm
by opensys
Tanks for replay. Now i have this error

[root@srvnagios nagios-plugins-master]# ./tools/setup
which: no gnumake in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Found GNU Make at /usr/bin/gmake ... good.
./tools/setup: line 30: aclocal: command not found
./tools/setup: line 32: autoheader: command not found
./tools/setup: line 33: automake: command not found
./tools/setup: line 34: autoconf: command not found
[root@srvnagios nagios-plugins-master]#


abrist wrote:Well, for some reason you do not have it. Lets download the nagios-plugins tarball, build it, and then copy it to libexec:

Code: Select all

cd /tmp
wget https://github.com/nagios-plugins/nagios-plugins/archive/master.zip
unzip master.zip
cd nagios-plugins-master
./tools/setup
./configure
make all
cp plugins/check_by_ssh /usr/local/nagios/libexec

Re: check_by_ssh

Posted: Thu Feb 13, 2014 2:39 pm
by tmcdonald
yum -y install automake

Re: check_by_ssh

Posted: Thu Feb 13, 2014 6:56 pm
by opensys
tmcdonald wrote:yum -y install automake
Thank you again. I followed the procedure. Here the latest messages off make al command. Some plugins were compiled but not the check_by_ssh

make[2]: Leaving directory `/tmp/nagios-plugins-master/plugins-root'
Making all in po
make[2]: Entering directory `/tmp/nagios-plugins-master/po'
test ! -f ./nagios-plugins.pot || \
test -z "fr.gmo de.gmo" || make fr.gmo de.gmo
make[3]: Entering directory `/tmp/nagios-plugins-master/po'
rm -f fr.gmo && : -c --statistics -o fr.gmo fr.po
mv: cannot stat `t-fr.gmo': No such file or directory
make[3]: *** [fr.gmo] Error 1
make[3]: Leaving directory `/tmp/nagios-plugins-master/po'
make[2]: *** [stamp-po] Error 2
make[2]: Leaving directory `/tmp/nagios-plugins-master/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagios-plugins-master'
make: *** [all] Error 2

----------------

Here Files in /tmp/nagios-plugins-master/plugins

/tmp/nagios-plugins-master/plugins
[root@srvnagios plugins]# ls
check_apt check_dummy.c check_ldap.c check_nagios.o check_overcr.c check_smtp.o check_ups popen.h
check_apt.c check_dummy.o check_ldap.o check_nntp check_overcr.o check_snmp check_ups.c popen.o
check_apt.o check_fping check_load check_nntps check_pgsql check_snmp.c check_ups.o runcmd.c
check_by_ssh.c check_fping.c check_load.c check_nt check_pgsql.c check_snmp.o check_users runcmd.h
check_clamd check_fping.o check_load.o check_nt.c check_pgsql.o check_spop check_users.c runcmd.o
check_cluster check_ftp check_mrtg check_nt.o check_ping check_ssh check_users.o sslutils.c
check_cluster.c check_game.c check_mrtg.c check_ntp check_ping.c check_ssh.c common.h sslutils.o
check_cluster.o check_hpjd check_mrtg.o check_ntp.c check_ping.o check_ssh.o libnpcommon.a t
check_dbi.c check_hpjd.c check_mrtgtraf check_ntp.o check_pop check_ssmtp Makefile tests
check_dig check_hpjd.o check_mrtgtraf.c check_ntp_peer check_procs check_swap Makefile.am urlize
check_dig.c check_http check_mrtgtraf.o check_ntp_peer.c check_procs.c check_swap.c Makefile.in urlize.c
check_dig.o check_http.c check_mysql check_ntp_peer.o check_procs.o check_swap.o negate urlize.o
check_disk check_http.o check_mysql.c check_ntp_time check_radius.c check_tcp negate.c utils.c
check_disk.c check_ide_smart check_mysql-check_mysql.o check_ntp_time.c check_real check_tcp.c negate.o utils.h
check_disk.o check_ide_smart.c check_mysql_query check_ntp_time.o check_real.c check_tcp.o netutils.c utils.o
check_dns check_ide_smart.o check_mysql_query.c check_nwstat check_real.o check_time netutils.h
check_dns.c check_imap check_mysql_query-check_mysql_query.o check_nwstat.c check_simap check_time.c netutils.o
check_dns.o check_jabber check_nagios check_nwstat.o check_smtp check_time.o NP-VERSION-FILE
check_dummy check_ldap check_nagios.c

Re: check_by_ssh

Posted: Fri Feb 14, 2014 10:44 am
by abrist
opensys wrote:make[3]: *** [fr.gmo] Error 1
make[3]: Leaving directory `/tmp/nagios-plugins-master/po'
make[2]: *** [stamp-po] Error 2
make[2]: Leaving directory `/tmp/nagios-plugins-master/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagios-plugins-master'
make: *** [all] Error 2
You may have an issue with gettext:

Code: Select all

yum install gettext -y
Then:

Code: Select all

./configure
make clean
make all

Re: check_by_ssh

Posted: Fri Feb 14, 2014 12:56 pm
by opensys
Apparently no errors, but unfortunately the plugin check_by_ssh continued without compiling.

Re: check_by_ssh

Posted: Fri Feb 14, 2014 1:01 pm
by abrist
Lets run a grep on the configure and compile:

Code: Select all

./configure | grep ssh
make clean
make all | grep ssh
Post the output of the greps.

Re: check_by_ssh

Posted: Fri Feb 14, 2014 1:14 pm
by opensys
abrist wrote:Lets run a grep on the configure and compile:

Code: Select all

./configure | grep ssh
make clean
make all | grep ssh
Post the output of the greps.
[root@srvnagios nagios-plugins-master]# ./configure | grep ssh
configure: WARNING: Skipping dbi plugin
configure: WARNING: install DBI libs to compile this plugin (see REQUIREMENTS).
configure: WARNING: Skipping radius plugin
configure: WARNING: install radius libs to compile this plugin (see REQUIREMENTS ).
configure: WARNING: Get lmstat from Globetrotter Software to monitor flexlm licenses
configure: WARNING: Get smbclient from Samba.org to monitor SMB shares
configure: WARNING: Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin
checking for ssh... no
configure: WARNING: Get ssh in order to make check_by_ssh plugin
configure: WARNING: Could not find qmail-qstat or eqivalent

-------------------

[root@srvnagios nagios-plugins-master]# make all | grep ssh
NP_VERSION = 1.5.git
sslutils.c: In function ânp_net_ssl_init_with_hostname_version_and_certâ:
sslutils.c:55: warning: assignment discards qualifiers from pointer target type
sslutils.c:58: warning: assignment discards qualifiers from pointer target type
sslutils.c:65: warning: assignment discards qualifiers from pointer target type
sslutils.c:69: warning: assignment discards qualifiers from pointer target type
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/usr/include -DNP_VERSION='"1.5.git"' -g -O2 -MT check_ssh.o -MD -MP -MF .deps/check_ssh.Tpo -c -o check_ssh.o check_ssh.c
mv -f .deps/check_ssh.Tpo .deps/check_ssh.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.5.git"' -g -O2 -L. -o check_ssh check_ssh.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.5.git\" -g -O2 -o check_ssh check_ssh.o -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lpthread -ldl
check_hpjd.c: In function âprocess_argumentsâ:
check_hpjd.c:349: warning: assignment makes pointer from integer without a cast
check_hpjd.c:383: warning: assignment makes pointer from integer without a cast
NP_VERSION = 1.5.git
NP_VERSION = 1.5.git