Re: [Nagios-users] NRPE: Unable to read output (after upgrading sudo to 1.7.2p1-6.el5_5)

2010-05-19 Thread Luc I. Suryo

1) do : uname -n
the output must match the host defined, in your case ds2
JUST in case put a space between NOPASSWD: and /usr/

2) make sure nagios has a correct/auth shell (/etc/shells)

3) add the following lines in the sudo file
Cmnd_Alias  LIST=   /usr/bin/sudo -l
ALL ALL =   NOPASSWD: LIST
then as root : su - nagios 
once you are nagios do a : sudo -l 
and maybe a : sudo /usr/lib/nagios/plugins/check_ldap_fd -w 250 -c 500


not much... 

-ls

Ben O'Hara boh...@gmail.com
   wrote at Wed, May 19, 2010 at 10:35:56PM +0200:

 I found the same problem with sudo after an update.
 
 Seems the comment line in the sudoers file causes a synax with
 #comment, you need a space, so # comment works ok.
 
 Ben
 
 On Wed, May 19, 2010 at 5:48 PM, Yungwei Chen yung...@resolvity.com wrote:
  Hi,
 
         I have been using a check_ldap_fd command on a nagios client without 
  any problem. That command requires superuser permission.
         After upgrading sudo to 1.7.2p1-6.el5_5, the command stops working.
 
         Running the following command on my nagios server always shows the 
  following:
         [TEST:r...@serv1 ~]# /usr/lib/nagios/plugins/check_nrpe -H 
  192.168.12.2 -c check_ldap_fd
         NRPE: Unable to read output
 
         This is the command defined in /etc/nagios/nrpe.cfg on the nagios 
  client:
         command[check_ldap_fd]=/usr/bin/sudo 
  /usr/lib/nagios/plugins/check_ldap_fd -w 250 -c 500
 
         I also made the following changes to /etc/sudoers on the nagios 
  client in order to make the command work:
         #Defaults    requiretty
         nagios ds2 = NOPASSWD:/usr/lib/nagios/plugins/check_ldap_fd
 
         Any ideas? Thanks.
 

--

___
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] Error while configuring NRPE on solaris

2009-05-29 Thread Luc I. Suryo
fyi

I have been using nagios and nrpe 9-10 years now; sparc and x86, started back 
with solaris 7
and now soalris 10, zero error mix solaris, aix, hpux, linux.
The server has always been Solaris (sparc or x86), use inetd/xinetd/deamon mode
again zero error

The one 'problem' i have seen people complain about is ssl and nrpe, read the 
manual and it should pretty
clear what todo, 99.9% is almost the use not having doing some RTFM thingy :)
The other one is tcp-wrapper and nrpe, nrpe has a access control buildt-in
so I never understood one would need to use tcp-wrapper :)

-ls


 
 From: N Patil
 To: Eric Pearce
 Cc: Nagios Users Mailinglist
 Sent: Thursday, May 28, 2009 9:13 PM
 Subject: Re: [Nagios-users] Error while configuring NRPE on solaris
 
 Thanks Eric,
 I have followed the same article but it dint help. This problem is 
 something which occured at the end, i mean while testing connectivity.
 
 Thanks,
 Nilesh
 
 May 28 19:15:27 solaris10.remotehost.com inetd[24241]: [ID 702911 
 daemon.error] Failed to set credentials for the inetd_start method of 
  instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)
 
 I'm just guessing, but do you have a home directory for the nagios user 
 (with owner and group set to nagios)?
 The chdir error might come from this.
 -e

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
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] ldconfig

2007-10-16 Thread Luc I. Suryo

 I still  having this error:
 # CFLAGS=-I/usr/local/include -I/usr/sfw/include
 LDFLAGS=-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib 
 -L/usr/sfw/lib#
 # export CFLAGS
 # export LDFLAGS
 # echo $LDFLAGS
 -s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib
 # echo $CFLAGS
 -I/usr/local/include -I/usr/sfw/include
 #
 ./configure --prefix=$NAGIOSHOME --with-nagios-user=nagios 
 --with-nagios-grp=nagios\
   --with-perlcache --enable-embedded-perl --with-gd-inc=/usr/local/include\
   --with-gd-lib=/usr/local/lib
 
 checking for main in -liconv... yes
 checking for gdImagePng in -lgd (order 1)...
  no
 checking for gdImagePng in -lgd (order 2)... no
 checking for gdImagePng in -lgd (order 3)... no
 checking for gdImagePng in -lgd (order 4)... no
 ...

nope not what i said :-)


CFLAGS=-I/usr/local/include -I/usr/sfw/include\
LDFLAGS=-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib\
./configure --prefix=$NAGIOSHOME --with-nagios-user=nagios 
--with-nagios-grp=nagios\
--with-perlcache --enable-embedded-perl --with-gd-inc=/usr/local/include\
--with-gd-lib=/usr/local/lib

or CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure ...

and check what the config.log file reports

good luck

-ls


 CC=gcc \
 CFLAGS=-I/usr/local/include -Ixxx \
 LDFLAGS=-s -R/usr/local/lib:/ -L/usr/local/lib -L \
 ./configure --your-option
 
 and i would advice to use Sun's compiler (studio 12) instead of GCC
 also replace the xxx with our location for the include files and yyy
 with the one for the libraries
 
 something like
 CFLAGS=-I/usr/local/include -I/usr/sfw/include
 LDFLAGS=-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib
 
 make sense? my sparc systems are currently not available for 'testing',
 I do have a Solaris x86 server (Sun brand) that is use for compiling
 packages...
 
 
 
 Live Great [EMAIL PROTECTED]
wrote at Mon, Oct 15, 2007 at 07:48:07PM -0700:
 
  Hi,
  
  I found that I don't have the libiconv and gd library.
  After I installed it, ./configure runs better, but still complain gd lib 
  not found.
  I used  --with-gd-lib and --with-gd-inc with /usr/local/lib and 
  /usr/local/include in the commandline, but still complain gd  not found.
  I have added /usr/local/include and /usr/local/lib in the /etc/ld.so.conf 
  file, but I can't find ldconfig command in the system.
  Do I need to run ldconfig? and where can I download this tool for Sun 5.10?
  
  Thanks
  
  
  - Original Message 
  From: Live Great [EMAIL PROTECTED]
  To: nagios-users@lists.sourceforge.net
  Sent: Tuesday, October 16, 2007 12:12:05 PM
  Subject: Re: [Nagios-users] Nagios-3.x Solaris 9 Build Problem
  
  Hi,
  
  I am running Sun 5.10 on Sparc.
  I got the following error while executing ./configure for Nagios.
  
  
  configure:1794: gcc --version /dev/null 5
  ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
  ./configure: line 1795: 19871 Killed  $CC --version
  configure:1797: $? = 137
  configure:1799: gcc -v /dev/null 5
  ld.so..1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
  ./configure: line 1800: 19875 Killed  $CC
   -v
  configure:1802: $? = 137
  configure:1804: gcc -V /dev/null 5
  ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
  ./configure: line 1805: 19879 Killed  $CC -V
  configure:1807: $? = 137
  configure:1830: checking for C compiler default output file name
  configure:1833: gccconftest.c  5
  ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory
  ./configure: line 1834: 19889 Killed  $CC $CFLAGS $CPPFLAGS 
  $LDFLAGS conftest.$ac_ext $LIBS 15
  configure:1836: $? = 137
  
  What development packages I need to download in order to fix this error?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
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] Unable to run make successfully fornagios-plugins-1.4.5

2006-12-15 Thread Luc I. Suryo

  
  Hi: When I run make, I get the following error. I looked through the
 FAQ,
  couldn't find any pointers. I am compiling this on Solaris 2.9 and
 have
  make 3.81 and gcc 3.4.6
  =
 
 [chop]
 
  gcc: unrecognized option `-Xa'
  gcc: language arch=v8 not recognized
  gcc: check_mysql.c: linker input file unused because linking not done
  mv: cannot access .deps/check_mysql-check_mysql.Tpo
  *** Error code 2
  make: Fatal error: Command failed for target
 `check_mysql-check_mysql.o'
 
 Not sure I can help but googling for gcc: language arch=v8 not
 recognized shows this to be a pretty common issue when compiling mysql
 apps (DBD::Mysql comes up a lot). Perhaps there'll be some answers
 there. What configure options did you pass? Did you use --with-mysql= to
 give it the path to the mysql_config bin directory? Do you happen to
 have multiple versions of mysql installed? Finally, do you see the same
 error after running a 'make distclean; ./configure...; make' cycle
 again?

check if you have set any of the following enviroment variables
CC / CFLAGS / CXX / CXXFLAGS / LDFLAGS

the arch=v8 flags is a typical Sun compiler/linker flags to tell the
compiler/linker to compile the source for a Ultra Sparc CPU

you have couple options ; 

use studio 11 from Sun (is free)

or

reconfigure with the following setup

CC=gcc CFLAGS=-O CXX=g++ CXXFLAGS=-O LDFLAGS=-s \
./configure 

now with the CFLAGS and CXXFLAGS you might want to add
-I -I... so it finds the include files
and in the LDFLAFS add
-R... -R... -L... -L... to find the library during
link time and executing time


(NB: there is a Solaris 10 package available at ftp.patriots.net, I
think it would be compatible fro Solaris 9)

good luck and hope this might help...


-ls


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] Monitore Postfix queue

2006-05-16 Thread Luc I. Suryo


fyi: i used a perl script that couple people created sometime ago
(Subhendu Ghosh/Carlos Canau/Benjamin Schmid) if you want too i can
email it to you... 

-ls


 
 Most likely a permission error.. try this:
 # su - postfix -s /bin/sh
 # /path/to/check_mailq -v -w 500 -c 800 -M postfix
 
 Not is permission... I'm running as root (as postfix don't works too) :(
 
 Again, check_mailq uses use lib  nagios/plugins;, you might need to 
 change to /directory/of/utils.pm and execute the check.
 
 Yes, is everything OK... I think that my personal postfix package is a lot 
 of different from what plugin want, because in a normal postfix of debian 
 the scrips works :-)
 
 Anyway, the fast way is use wc on queue directory, I'll do this... the 
 output says one or two emails more than real, but to 20.000 its ok ;)
-


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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] Compile nagios-2.3.1 on Solaris 8

2006-05-16 Thread Luc I. Suryo

  
  I've a problem compiling the new 2.3.1 on Solaris 8 with 
  SUN Studio 11 and gcc-3.4.3
  
  compiling cgi/getcgi.c fails with the error that INT_MAX is
  undefined.
 
 Yes, same here.  I am not sure of what INT_MAX is supposed to be.

1. ok i checked sys/types.h and indeed it depend on KERNEL being defined..
so what I *think* should happend is to check against iso/limits_iso.h
if exist add that in the include/config.h file.. done by the
configuration script...

2. also lost of redefined of RTLD_NOW and RTLD_GLOBAL
these are already defined in /usr/include/dlfcn.h...

3. the module directry fails, it could be ignored (the xampel helloworld
module) i will need more time to check what's up with that,
otherwise it compiled just fine

tested on Solaris 8/sparc Sun Studio 10


-ls


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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] Monitoring solaris server without installing any plugin

2006-02-23 Thread Luc I. Suryo


 Hi i have a similar problem where no matter how i try and compile on
 either sol8 or sol9 (sparc) using the software from sunfreeware (gcc,
 openssl etc etc), i just cannot get NRPE ssl handshakes to work via
 inetd... I've tried everything, and triple-checked everything countless
 times, but always get the Failed to complete ssl handshake message..
 
 Can anyone give me any insight, or has seen this issue before? ...I
 would use snmp instead, but i'm pretty clueless on snmp and it's not set
 up in nagios (yet), and i have no clue what mibs or whatever i would
 need etc... Any help/pointers there are appreciated as well on the snmp
 stuff - i see there are countless ways to do snmp on nagios.org - what
 works best for most out there etc?
 
I have mine work just fine, sparc 8, 9  10. But I do use an older
version of nrpe 

./check_nrpe_ssl  -h

NRPE Plugin for Nagios
Copyright (c) 1999-2003 Ethan Galstad ([EMAIL PROTECTED])
Version: 2.0
Last Modified: 09-08-2003
License: GPL with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required


The thing is to generate your own cert. unless you want to use the one
that came with teh sources..

my inetd.conf (i have ssl nrpe and none ssl nrpe configured)
if you have tcp-wrapper remember to configure hosts.allow

# Nagios agent
nrpestream  tcp nowait  sys /usr/sbin/tcpd /usr/local/sbin/nrpe -i 
-c /usr/local/etc/nagios/nrpe.cfg
snrpe   stream  tcp nowait  sys /usr/sbin/tcpd /usr/local/sbin/nrpe_ssl 
-i -c /usr/local/etc/nagios/nrpe.cfg

5711 = none ssl
5712 = ssl

./check_nrpe_ssl -H localhost -p 5711 -c check_root_disk 
CHECK_NRPE: Socket timeout after 10 seconds.

now to the ssl port

 ./check_nrpe_ssl -H localhost -p 5712 -c check_root_disk 
DISK OK [3945564 kB (65%) free on /]


as you can see it works...

I can sent you th ebinary if you want to but it does depends on the
correct openssl libraries!


hope this may help a bit :)

-ls


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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] Monitoring solaris

2006-02-22 Thread Luc I. Suryo
 
 Has anyone got any recommendations for packages choices for solaris
 (2.6, 8 and 9).
 
 I need to use packages as most/none of these hosts do not have a
 complier suite.
 
 I am planning on running nagios with nrpe and nsca to then submit data
 to our server (running 2.x on linux).
 


one thing: Studio 11 is free.. so that could help (or use gcc)

We have well over 100 systems (8, 9 and couple 10, most sparcs but also
couple x86s) and all are being monitored with nrpe/nagios

make sure that if you do use nrpe with ssl support that the key use by
the server is the same as used by the client (hard-code compiled...),
our server is also a sparc system..


we have several own build script that works pretty well, but one is the
one we built to monitor : memory and swap, the oen with nagios did not
work well so we buil one our own.. we are still running version 1.2 with
the 1.3.1 plugins and no plan to upgrade yet... it works so :)



-ls


---
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