Page 4 of 5

Re: CONNECTION REFUSED

Posted: Tue Jan 22, 2013 5:42 pm
by slansing
Ahh I think we had better do the safe thing and just completely update your plugins, this will not remove any pre-configured settings just give us a fresh version of the plugins package. To do so please do the following:

Code: Select all

service nagios stop

cd ~/downloads

wget http://sourceforge.net/projects/nagiosplug/files/nagiosplug/1.4.16/nagios-plugins-1.4.16.tar.gz/download?utm_expid=65835818-0&utm_referrer=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fnagiosplug%2Ffiles%2Fnagiosplug%2F1.4.16%2F

cd nagios-plugins-1.4.16

tar -xzf nagios-plugins-1.4.16.tar.gz

Compile and install the plugins.


./configure --with-nagios-user=nagios --with-nagios-group=nagios

make

make install

service nagios start
Then try again. Where did you install Nagios from? This seems to be a very un-standard installation.

Re: CONNECTION REFUSED

Posted: Tue Jan 22, 2013 5:50 pm
by brianweeks22
would it help if i sent you everythign under my /etc/nagios directory from the nagios server?

again, I am new to nagios, and still learning utilization, as well as configuration (was set-up before my arrival)


Thanks

Re: CONNECTION REFUSED

Posted: Tue Jan 22, 2013 5:59 pm
by brianweeks22
ok.. I will execute your suggestion a little later tonight then update you

Fingers crossed

Thanks again for all of your help

Brian

Re: CONNECTION REFUSED

Posted: Tue Jan 22, 2013 6:02 pm
by slansing
Sounds good let me know what happens I will be able to reply in the morning when I am back in, we have certainly ran into some walls today!

Re: CONNECTION REFUSED

Posted: Tue Jan 22, 2013 6:05 pm
by brianweeks22
ranlib libnagiosplug.a
make[3]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
Making all in tests
make[3]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
Making all in plugins
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/plugins'
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT check_apt.o -MD -MP -MF .deps/check_apt.Tpo -c -o ch eck_apt.o check_apt.c
mv -f .deps/check_apt.Tpo .deps/check_apt.Po
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o ut ils.c
mv -f .deps/utils.Tpo .deps/utils.Po
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT runcmd.o -MD -MP -MF .deps/runcmd.Tpo -c -o runcmd.o runcmd.c
mv -f .deps/runcmd.Tpo .deps/runcmd.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.16"' -g -O2 -L. -o check_apt check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.16\" -g -O2 -o check_apt check_apt.o utils.o runcmd.o -L/tmp/downloa ds/nagios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT check_cluster.o -MD -MP -MF .deps/check_cluster.Tpo -c -o check_cluster.o check_cluster.c
mv -f .deps/check_cluster.Tpo .deps/check_cluster.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.16"' -g -O2 -L. -o check_cluster check_cl uster.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.16\" -g -O2 -o check_cluster check_cluster.o utils.o -L/tmp/download s/nagios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT check_disk.o -MD -MP -MF .deps/check_disk.Tpo -c -o check_disk.o check_disk.c
mv -f .deps/check_disk.Tpo .deps/check_disk.Po
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT popen.o -MD -MP -MF .deps/popen.Tpo -c -o popen.o po pen.c
mv -f .deps/popen.Tpo .deps/popen.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.16"' -g -O2 -L. -o check_disk check_disk. o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.16\" -g -O2 -o check_disk check_disk.o utils.o popen.o -L/tmp/downlo ads/nagios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT check_dummy.o -MD -MP -MF .deps/check_dummy.Tpo -c - o check_dummy.o check_dummy.c
mv -f .deps/check_dummy.Tpo .deps/check_dummy.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -DNP_VERSION='"1.4.16"' -g -O2 -L. -o check_dummy check_dumm y.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
libtool: link: gcc -DNP_VERSION=\"1.4.16\" -g -O2 -o check_dummy check_dummy.o utils.o -L/tmp/downloads/na gios-plugins-1.4.16/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lpthread -ldl
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c: In function âprocess_argumentsâ:
check_http.c:312: error: âssl_versionâ undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16'
make: *** [all] Error 2
[root@rodan nagios-plugins-1.4.16]# make install
Making install in gl
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
make install-recursive
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
make[3]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
make[4]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
if test yes = no; then \
case 'linux-gnu' in \
darwin[56]*) \
need_charset_alias=true ;; \
darwin* | cygwin* | mingw* | pw32* | cegcc*) \
need_charset_alias=false ;; \
*) \
need_charset_alias=true ;; \
esac ; \
else \
need_charset_alias=false ; \
fi ; \
if $need_charset_alias; then \
/bin/sh ../build-aux/mkinstalldirs /usr/local/nagios/lib ; \
fi ; \
if test -f /usr/local/nagios/lib/charset.alias; then \
sed -f ref-add.sed /usr/local/nagios/lib/charset.alias > /usr/local/nagios/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /usr/local/nagios/lib/charset.tmp /usr/local/nagios/lib/charset.alias ; \
rm -f /usr/local/nagios/lib/charset.tmp ; \
else \
if $need_charset_alias; then \
sed -f ref-add.sed charset.alias > /usr/local/nagios/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /usr/local/nagios/lib/charset.tmp /usr/local/nagios/lib/charset.ali as ; \
rm -f /usr/local/nagios/lib/charset.tmp ; \
fi ; \
fi
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
make[3]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
Making install in tap
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/tap'
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/tap'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/nagios/include" || /bin/mkdir -p "/usr/local/nagios/include"
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/tap'
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/tap'
Making install in lib
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
Making install in .
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
make[3]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
Making install in tests
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
make[3]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
Making install in plugins
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/plugins'
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.16"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c: In function âprocess_argumentsâ:
check_http.c:312: error: âssl_versionâ undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)
make[1]: *** [check_http.o] Error 1
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/plugins'
make: *** [install-recursive] Error 1
[root@rodan nagios-plugins-1.4.16]# make clean
Making clean in po
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/po'
rm -f remove-potcdate.sed
rm -f stamp-poT
rm -f core core.* nagios-plugins.po nagios-plugins.1po nagios-plugins.2po *.new.po
rm -fr *.o
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/po'
Making clean in plugins-root
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/plugins-root'
rm -rf .libs _libs
rm -f NP-VERSION-FILE
rm -f check_dhcp check_icmp
rm -f *.o
rm -f *.lo
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/plugins-root'
Making clean in plugins-scripts
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/plugins-scripts'
test -z "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" || rm -f check_ breeze check_disk_smb check_flexlm check_ircd check_log check_oracle check_rpc check_sensors check_wave che ck_ifstatus check_ifoperstatus check_mailq check_file_age utils.sh utils.pm
rm -rf .libs _libs
rm -f NP-VERSION-FILE
rm -f *.lo
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/plugins-scripts'
Making clean in plugins
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/plugins'
rm -f 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_ti me check_ntp_time check_ups check_users negate urlize check_ide_smart check_procs check_nagios check_dns ch eck_fping check_by_ssh check_swap check_dig check_nt
rm -rf .libs _libs
rm -f check_ftp check_imap check_nntp check_pop check_udp check_clamd
rm -f NP-VERSION-FILE
rm -f *.o
rm -f *.lo
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/plugins'
Making clean in lib
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
Making clean in tests
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib/tests'
Making clean in .
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
rm -rf .libs _libs
test -z "libnagiosplug.a" || rm -f libnagiosplug.a
rm -f *.o
rm -f *.lo
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/lib'
Making clean in tap
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/tap'
rm -rf .libs _libs
test -z "" || rm -f
rm -f *.o
rm -f *.lo
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/tap'
Making clean in gl
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
Making clean in .
make[2]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
test -z "configmake.h configmake.h-t charset.alias ref-add.sed ref-del.sed" || rm -f configmake.h configmak e.h-t charset.alias ref-add.sed ref-del.sed
rm -rf .libs _libs
test -z "libgnu.a" || rm -f libgnu.a
test -z "" || rm -f
rm -f *.o
test -z "core *.stackdump alloca.h alloca.h-t arg-nonnull.h arg-nonnull.h-t arpa/inet.h arpa/inet.h-t c++de fs.h c++defs.h-t errno.h errno.h-t fcntl.h fcntl.h-t float.h float.h-t getopt.h getopt.h-t langinfo.h langi nfo.h-t locale.h locale.h-t math.h math.h-t netdb.h netdb.h-t netinet/in.h netinet/in.h-t stdbool.h stdbool .h-t stddef.h stddef.h-t stdint.h stdint.h-t stdio.h stdio.h-t stdlib.h stdlib.h-t string.h string.h-t sys/ socket.h sys/socket.h-t sys/stat.h sys/stat.h-t time.h time.h-t unistd.h unistd.h-t warn-on-use.h warn-on-u se.h-t wchar.h wchar.h-t wctype.h wctype.h-t" || rm -f core *.stackdump alloca.h alloca.h-t arg-nonnull.h a rg-nonnull.h-t arpa/inet.h arpa/inet.h-t c++defs.h c++defs.h-t errno.h errno.h-t fcntl.h fcntl.h-t float.h float.h-t getopt.h getopt.h-t langinfo.h langinfo.h-t locale.h locale.h-t math.h math.h-t netdb.h netdb.h-t netinet/in.h netinet/in.h-t stdbool.h stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t stdio.h stdio.h- t stdlib.h stdlib.h-t string.h string.h-t sys/socket.h sys/socket.h-t sys/stat.h sys/stat.h-t time.h time.h -t unistd.h unistd.h-t warn-on-use.h warn-on-use.h-t wchar.h wchar.h-t wctype.h wctype.h-t
rm -f *.lo
rmdir arpa
rmdir sys
make[2]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16/gl'
Making clean in .
make[1]: Entering directory `/tmp/downloads/nagios-plugins-1.4.16'
rm -rf .libs _libs
rm -f *.lo
make[1]: Leaving directory `/tmp/downloads/nagios-plugins-1.4.16'
[root@rodan nagios-plugins-1.4.16]# cd
[root@rodan ~]# ls
1.html 2.html anaconda-ks.cfg bin etc install.log install.log.syslog nagios_check_dellperc.tgz ts typescript
[root@rodan ~]# cd /usr
[root@rodan usr]# cd local
[root@rodan local]# ls
bin etc games include lib libexec man nagios sbin share src
[root@rodan local]# cd nagios/
[root@rodan nagios]# ls
etc include libexec
[root@rodan nagios]# cd libexec/
[root@rodan libexec]# ls
check_mssql_health check_proc_meminfo
[root@rodan libexec]# wget http://sourceforge.net/projects/nagiosp ... F1.4.16%2F

Re: CONNECTION REFUSED

Posted: Wed Jan 23, 2013 3:01 pm
by brianweeks22
Good Afternoon,

I am back on if you are available?


Thanks

Brian

Re: CONNECTION REFUSED

Posted: Wed Jan 23, 2013 3:40 pm
by slansing
Alright looks like we will have to take another step back and attempt to update Nagios Core as a whole, your configuration files will remain intact, please follow this guide and let me know what happens, if you run into any errors that halt the installation please show me:

http://nagios.sourceforge.net/docs/3_0/upgrading.html

Re: CONNECTION REFUSED

Posted: Thu Jan 31, 2013 3:34 pm
by brianweeks22
THANK YOU for the file.. but as you stated, no success!

I have been pulling my hair out over this issue, and would probably have been better off simply standing up a new nagios server.

That said.. Would you have time (at your convenience) to remote into the box and take a look? possibly you may see something that is incorrect that is not jumping out to me?

If not, I completely understand, but this is starting to become more frustrating each day?

again, if not I may just stand up a new nagios server, but wanted to ask

Thank You Again!

Brian

Re: CONNECTION REFUSED

Posted: Thu Jan 31, 2013 3:47 pm
by slansing
Unfortunately remote support is only available if you have purchased a support contract which includes email support. And then if we have exhausted other alternatives we will initiate the remote support session. I believe there may be several other underlying issues with the current installation you are running on that may peek their heads out if this were to be resolved, that being said it may be advisable for you to build a new Nagios system "including plugins", from source, on Cent OS. This way everyone on the support side knows the directory paths you would be using, all the documentation is also standardized for RHEL based distro's specifically CENTOS and RHEL itself.

We can continue to work on this issue if you would like but it may be faster to back up your config files, then import them to a new installation, the installation itself is very fast.

Re: CONNECTION REFUSED

Posted: Mon Feb 11, 2013 2:37 pm
by brianweeks22
Thanks, Slansing.

Current installation is a Physical RedHat server.. I just created a VM w/the same distro of Linux running on it.. The ONLY changes that I have made so far was to provide the VM with an IP address (which I will change to the existing nagios IP once all files are transfered)..

from here.. what is my best solution? Should I just copy the files over? or should I resintall nagios and import some configurations from existing nagios server?

What files should I import into the new nagios server? (again, nagios is not install on the new server, just linux only)..

If you think that I should do a fresh install, could you please provide instructions. (redhat 6.2 minimal).

Thank You

Brian