Re: [Nagios-users] check_command issue
Mrutyunjaya Dash schrieb am 17.02.2006 14:34: Hi, Now I am trying to use the nrpe to monitor the remote host. I have downloaded the plugin 1.4 version of nagios and nrpe 2.3. After the entire configuration according to the README file, I am getting the following error for the below command on the nagios host. ./check_nrpe -H bng-build1 -n -p 5666 -c check_disk CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages In the /etc/nrpe.cfg file of remote host has the following entry for check_disk command[check_disk]=/opt/nagios/libexec/check_disk -w 20 -c 10 -p /dev/da0s1a But where as, the plugin commands like check_disk, check_procs, etc are working fine on the remote host side. #/opt/nagios/libexec/check_disk -w 20 -c 10 -p /dev/da0s1a DISK OK - free space: / 877 MB (87%);| /=130MB;987;997;0;1007 Regards, Mrutyunjaya Dash -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 9:12 AM To: Mrutyunjaya Dash Subject: Re: [Nagios-users] check_command issue Hi, for unix boxes better use check_by_ssh commands.you can see many post in nagios forum. hope it will help you. Thanks regards ** Vinay Sharma Information Systems and Solutions-Associates Advanex Inc (www.advanex.co.jp) Fon : 813-3822-5863 Fax : 813-5815-7881 Email : [EMAIL PROTECTED] Mrutyunjaya Dash宛先: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: t 件名: Re: [Nagios-users] check_command issue 2006/02/17 12:39 Hi Vinay, Thank you very much for your reply. But I have the requirement to monitor UNIX systems. For this do I need to install nsclient or nrpe? Regards, Mrutyunjaya Dash -- Sent from my BlackBerry Wireless Handheld -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Mrutyunjaya Dash [EMAIL PROTECTED] Sent: Thu Feb 16 16:47:10 2006 Subject: Re: [Nagios-users] check_command issue try to setup NSCLIENT on windows boxes which one you want to monitor.nsclient will perform cery good.and you will get good result. Thanks regards ** Vinay Sharma Information Systems and Solutions-Associates Advanex Inc (www.advanex.co.jp) Fon : 813-3822-5863 Fax : 813-5815-7881 Email : [EMAIL PROTECTED] Mrutyunjaya Dash [EMAIL PROTECTED] 宛先: nagios-users@lists.sourceforge.net 送信者: cc: [EMAIL PROTECTED]件名: [Nagios-users] check_command issue ceforge.net 2006/02/16 23:30 Hi All, We got the installation of nagios 2.0b5 with plugin 1.4.2. I have installed and configured nagios very recently. Now I have just added few servers for monitoring certain srevices. But for all the servers I am seeing the same information on the nagios screen. Below is the information of one particular server. O 02-16-2006 0d 0h1 OK - load average: 0.00, K 19:55:39 25m 41s / 0.00, 0.00 4 bng-admi n1 Current Load O 02-16-2006 0d 0h1 USERS OK - 2 users K 19:56:54 22m 6s / currently logged in
[Nagios-users] check_mysql compile issue - x86_64
Hi I seems to be having an issue compiling the check_mysql plugin on a x86_64 box. I have MySQL installed and running and my compile line looks like... ./configure --prefix=/opt/nagios-2.0 --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/cgi-bin --with-mysql=/opt/mysql however as you can see from the error below mysql libs are not found configure:9368: checking for mysql_init in -lmysqlclient configure:9398: gcc -o conftest -g -O2 -I/opt/mysql/include -L. conftest.c -lmysqlclient -L/opt/mysql/lib/mysql -lz 5 /usr/bin/ld: cannot find -lmysqlclient | char mysql_init (); | mysql_init (); configure:9436: checking for mysql_close in -lmysqlclient configure:9466: gcc -o conftest -g -O2 -I/opt/mysql/include -L. conftest.c -lmysqlclient 5 /usr/bin/ld: cannot find -lmysqlclient | char mysql_close (); | mysql_close (); configure:10217: WARNING: Skipping mysql plugin configure:10219: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS). ac_cv_lib_mysqlclient_mysql_close=no ac_cv_lib_mysqlclient_mysql_init=no however $ ls -l /opt/mysql/lib/ total 6160 -rw-rw-r-- 1 8972 8972 11790 Sep 2 23:55 libdbug.a -rw-r--r-- 1 8972 8972 57872 Feb 28 2005 libmygcc.a -rw-rw-r-- 1 8972 8972 312020 Sep 2 23:55 libmysqlclient.a -rw-rw-r-- 1 8972 8972 321234 Sep 2 23:54 libmysqlclient_r.a -rw-rw-r-- 1 8972 8972 5201886 Sep 3 00:05 libmysqld.a -rw-r--r-- 1 8972 89721685 Sep 2 23:38 libmysql.imp -rw-rw-r-- 1 8972 8972 112282 Sep 2 23:55 libmystrings.a -rw-rw-r-- 1 8972 8972 241102 Sep 2 23:55 libmysys.a any ideas?? this is using mysql 4.0.26 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_mysql compile issue - x86_64
It's not the *best* solution but a work around to this is to manually edit the configure file before doing your ./configure as the configure file has /usr/lib hard-coded and won't figure out /usr/lib64 without some help *note* all this is from a Red Hat point of view, may require some modification for your build find MYSQLLIBDIR=$MYSQL/lib chage it to MYSQLLIBDIR=$MYSQL/lib64 hmmm mine looked a bit different but the process was similar - however it seems that now it is not happy about the version configure:9368: checking for mysql_init in -lmysqlclient configure:9398: gcc -o conftest -g -O2 -I/opt/mysql/include -L. conftest.c -lmysqlclient -L/opt/mysql/lib -lz 5 /usr/bin/ld: skipping incompatible /opt/mysql/lib/libmysqlclient.a when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient | char mysql_init (); | mysql_init (); configure:9436: checking for mysql_close in -lmysqlclient configure:9466: gcc -o conftest -g -O2 -I/opt/mysql/include -L. conftest.c -lmysqlclient 5 /usr/bin/ld: cannot find -lmysqlclient | char mysql_close (); | mysql_close (); configure:10217: WARNING: Skipping mysql plugin this is on a CentOS 4.2 box (RHEL4) - it can now find the lib but any ideas on the version issue? thanks --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] check_command issue
Hi, I am not getting any information regarding check_by_ssh implementation, how can we use this check_by_shh to monitor remote host? Regards, Dash -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Werner Flamme Sent: Friday, February 17, 2006 7:21 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_command issue Mrutyunjaya Dash schrieb am 17.02.2006 14:34: Hi, Now I am trying to use the nrpe to monitor the remote host. I have downloaded the plugin 1.4 version of nagios and nrpe 2.3. After the entire configuration according to the README file, I am getting the following error for the below command on the nagios host. ./check_nrpe -H bng-build1 -n -p 5666 -c check_disk CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages In the /etc/nrpe.cfg file of remote host has the following entry for check_disk command[check_disk]=/opt/nagios/libexec/check_disk -w 20 -c 10 -p /dev/da0s1a But where as, the plugin commands like check_disk, check_procs, etc are working fine on the remote host side. #/opt/nagios/libexec/check_disk -w 20 -c 10 -p /dev/da0s1a DISK OK - free space: / 877 MB (87%);| /=130MB;987;997;0;1007 Regards, Mrutyunjaya Dash -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 9:12 AM To: Mrutyunjaya Dash Subject: Re: [Nagios-users] check_command issue Hi, for unix boxes better use check_by_ssh commands.you can see many post in nagios forum. hope it will help you. Thanks regards ** Vinay Sharma Information Systems and Solutions-Associates Advanex Inc (www.advanex.co.jp) Fon : 813-3822-5863 Fax : 813-5815-7881 Email : [EMAIL PROTECTED] Mrutyunjaya Dash宛先: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: t 件名: Re: [Nagios-users] check_command issue 2006/02/17 12:39 Hi Vinay, Thank you very much for your reply. But I have the requirement to monitor UNIX systems. For this do I need to install nsclient or nrpe? Regards, Mrutyunjaya Dash -- Sent from my BlackBerry Wireless Handheld -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Mrutyunjaya Dash [EMAIL PROTECTED] Sent: Thu Feb 16 16:47:10 2006 Subject: Re: [Nagios-users] check_command issue try to setup NSCLIENT on windows boxes which one you want to monitor.nsclient will perform cery good.and you will get good result. Thanks regards ** Vinay Sharma Information Systems and Solutions-Associates Advanex Inc (www.advanex.co.jp) Fon : 813-3822-5863 Fax : 813-5815-7881 Email : [EMAIL PROTECTED] Mrutyunjaya Dash [EMAIL PROTECTED] 宛先: nagios-users@lists.sourceforge.net 送信者: cc: [EMAIL PROTECTED]件名: [Nagios-users] check_command issue ceforge.net 2006/02/16 23:30 Hi All, We got the installation of nagios 2.0b5 with plugin 1.4.2. I have installed and configured nagios very recently. Now I have just added few servers for monitoring certain srevices. But for all the servers I am seeing the same information on the nagios screen. Below is the information of one particular server. O 02-16-2006 0d 0h
[Nagios-users] Important Message from the Accredo Health Email Gateway
In order to protect our employees, patients, partners and computer systems, Accredo Health, Inc. places restrictions on email passing between our network and the Internet. In compliance with that policy, a message addressed to you has been automatically blocked by the gateway due to decomposition errors. The message details are as follows: From: Mrutyunjaya Dash [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Nagios-users] check_command issue Date: 02/17/06, 09:15:23 The message is currently being held in a quarantine area, and may be released for delivery provided there is a legitimate business need. In order to ensure that the message is appropriate for delivery, the Email Gateway admin staff will need to open and manually inspect the message and any associated attachments. To request that the message be released, please reply to this message, include this notice, and explain why you need the email to be released to you. Please send any questions or comments to [EMAIL PROTECTED] --- Message ID: 6FEB370B2583878384-01 ---
Re: [Nagios-users] check_mysql compile issue - x86_64
this is on a CentOS 4.2 box (RHEL4) - it can now find the lib but any ideas on the version issue? Slightly off topic but... Why are you building this from source? It's already been built and packaged in rpm form for use on RHEL/CentOS. I run these packages on centos regularly with no problem at all. http://dag.wieers.com/packages/nagios-plugins/ http://dag.wieers.com/packages/nagios/ If nothing else, take a look at the spec file to see how dag handles the builds for x86_64. -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nagios with tripwire
Hello everyone Has anyone used Nagios to monitor tripwire events? If someone has done this and could point me in the right direction, that would be great. Thank you for your time Dany Allard This message is intended only for the addressee and may contain personal, privileged or confidential information. If you have received this message in error, please notify the sender immediately and delete or destroy this message without making copies or opening any attachments. Any further distribution, duplication or disclosure is prohibited. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NDOUtils 1.3.1: Compilation error
Hallo, yesterday, I compiled NDOUtils 1.3.1 on a SUSE 10.0 (32Bit) Box and everything works fine. Today, I try the same on a 64Bit SUSE 10.0 Server and I got the following error. /tmp/ndoutils-1.3.1$ make cd ./src/; make ; cd .. make[1]: Entering directory `/tmp/ndoutils-1.3.1/src' gcc -g -O2 -DHAVE_CONFIG_H -c -o io.o io.c ... make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src' make ndomod-2x.o make[2]: Entering directory `/tmp/ndoutils-1.3.1/src' gcc -fPIC -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c io.o utils.o -shared -lnsl /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-su se-linux/bin/ld: io.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC io.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [ndomod-2x.o] Error 1 make[1]: *** [ndomod] Error 2 make[2]: Leaving directory `/tmp/ndoutils-1.3.1/src' Is there something I have to change on the 64Bit Box ? Regards, Andreas -- DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert: GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios with tripwire
On Fri, 17 Feb 2006, Dany Allard wrote: Hello everyone Has anyone used Nagios to monitor tripwire events? If someone has done this and could point me in the right direction, that would be great. Dany, It's been a while since I used tripwire but I don't recall it generating any events, per se. If you have tripwire setup, and you'd like to incorporate changes of summed files, you could certainly write a plugin to do so and represent a change of some file, say /etc/passwd, as a CRITICAL within Nagios. You could probably also hook up Nagios and send it passive service checks out of the cronjob running tripwire in verify mode. Let me know if this is what you had in mind. It sounds to me like it could be done but I'm unaware of any existing plugins in this space at the moment. Thanks. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_nrpe 2.0 and simple shell scripting
Dear list, im expieriencing a strange behaviour with check_nrpe in conjunction with a simple shell script. The script does nothing exceptionally. The script should check the files which hang around in the postfic mailq. Sure for this purpose exists a special plugin called check_mailq, but this plugin just calls the program mailq. Supposed we have 20k mails in there the command needs a lot of time to comlete. Its faster to count the files in active and deferred to get the whole queue. Unfortunately each time i use something like the example among, the script just return exit code 3, unkonw... ACTIVE=`find /var/spool/postfix/active/ -type f | wc -l` .. if [ $AMOUNT -ge 0 ]; then .. Writing the output from find to a tmp file doesnt work too /usr/bin/find /var/spool/postfix/active/ -type f /tmp/active ACTIVE=`cat /tmp/active| wc -l` The general functionality has been verified with statical values. Any ideas? Regards Frank -- religion kill humans! --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_nrpe 2.0 and simple shell scripting
Hi Marc, +++ Marc Powell [Fri, Feb 17, 2006 at 08:40:48PM CET]: Typically mail queues are only readable by root. Have you modified permissions on the queue directory, the script or are you using sudo to run it successfully as a non-root user? The mailq command typically has the required permissions and that's why it's used by check_mailq. Sorry i forgot to mention. Yes i have tried running the nrpe daemon as root and also setting the script suid even starting the daemon directly as root or from inetd. Are you exiting with the proper output and exit code that nagios requires? See the Developer Guidelines at http://nagiosplug.sf.net if you haven't already. I know the site, the return codes are used as decribed. As to why your script always exits with code 3, we can't tell you since My mistake the return code isnt 3 its 0 see the log... we didn't write the script and you didn't post enough of it to tell anything really useful. If that's not what it should be exiting with, then change the script to return the proper exit code. Query from the monitoring host. Its not the first time that i am using nrpe, other scripts (perl and shell) works as expected. ./check_nrpe -H 10.0.33.180 -c mail CHECK_NRPE: Error receiving data from daemon. The nrpe.cfg on the client which should be checked contains the following line. command[mail]=/path/to/script/mail The script is executable and the daemon is started from inetd. Inetd.conf calls the deamon as root (testing only). The script runs fine if executed from the shell. Debugging enabled shows me: Feb 17 21:04:14 x nrpe[5777]: Added command[mail]=/path/to/script/mail Feb 17 21:04:14 x nrpe[5777]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Feb 17 21:04:14 x nrpe[5777]: Handling the connection... Feb 17 21:04:14 x nrpe[5777]: Host is asking for command 'mail' to be run... Feb 17 21:04:14 x nrpe[5777]: Running command: /path/to/script/mail Feb 17 21:04:15 x nrpe[5777]: Command completed with return code 0 and output: 0 The script looks like this one (its not the original script but the error can be reproduced with it) #!/bin/bash # 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN ACTIVE=`find /var/spool/postfix/active/ -type f | wc -l` DEFERRED=`find /var/spool/postfix/active/ -type f | wc -l` AMOUNT=`expr $ACTIVE + $DEFERRED` THRESHOLD_WARNING=1 THRESHOLD_CRITICAL=15000 if [ $AMOUNT -ge 0 ]; then if [ $AMOUNT -lt $THRESHOLD_WARNING ]; then echo $AMOUNT exit 0 fi fi if [ $AMOUNT -gt $THRESHOLD_WARNING ]; then if [ $AMOUNT -lt $THRESHOLD_CRITICAL ]; then echo $AMOUNT exit 1 fi fi if [ $AMOUNT -gt $THRESHOLD_CRITICAL ]; then echo $AMOUNT exit 2 fi echo unknown; exit 3 xx:# ./mail 9986 xx:# echo $? 0 Regards Frank -- We belong to here where no one cares and no one loves. No light and no air to live in a place called hate, the city of fear. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null