[Nagiosplug-help] Solaris plugin stuff...

Volker.Aust at premiere.de Volker.Aust at premiere.de
Wed Dec 4 23:29:03 CET 2002


I have compiled NRPE with gcc 3.2 on Solaris9 Sparc (v100) and it works
since a few weeks (one v100 and one v880) without any problems.

<snip>

NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
Version: 1.5
Last Modified: 06-03-2002
License: GPL

Usage: /usr/local/nagios/bin/nrpe <-i | -d> <config_file>

Options:
  -i      Run as a service under inetd or xinetd
  -d      Run as a standalone daemon

Notes:
This program is designed to process requests from the check_nrpe
plugin on the host(s) running Nagios.  It can run as a service
under inetd or xinetd (read the docs for info on this), or as a
standalone daemon. Once a request is received from an authorized
host, NRPE will execute the command/plugin (as defined in the
config file) and return the plugin output and return code to the
check_nrpe plugin.

</snip>

To your check_javaproc.pl question: Solaris /usr/bin/ps did not have the
parameter w, but /usr/ucb/ps has this feature. I have hacked
check_javaproc.pl, but have not extensive test it.

<snip>

1c1
< #!/usr/bin/perl -w
---
> #!/usr/local/bin/perl -w
31c31,32
< use lib "utils.pm" ;
---
> #use lib "utils.pm" ;
> use lib "/usr/local/nagios/libexec13b2/" ;
209c210,218
< 	@output=`ps -AHo \"\%a\" -ww`;
---
> 	#@output=`ps -AHo \"\%a\" -ww`;
> 	# for solaris
> 	@output=`/usr/ucb/ps -axww`;
> 
> 	# remove stuff before command
> 	foreach (@output) {
> 		s/^.*\d:\d\d //;
> 		#print $_ if (/java/); ### debug
> 	}

</snip>

-vol

> -----Original Message-----
> From: Michael Feld [mailto:michael.nagiosplughelp at incamail.com]
> Sent: Wednesday, December 04, 2002 9:02 PM
> To: nagiosplug-help at lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] Solaris plugin stuff...
> 
> 
> Thanks, but the current and only available version of nrpe 
> does not work on solaris sparc.  If you can compile it and 
> get it to work, please let me know, but I'm quite sure it 
> doesn't work, at least not being compiled with gcc 3.x.
> 
> Subhendu indicated he'd be working on the sparc versions 
> pending receipt of some sparc boxes and I was just checking 
> to see if he'd had a chance.
> 
>  Michael
> 
> 
> > -----Original Message-----
> > From: Bryan Liles <lilesb at ijet.com>
> > Sent: Wed Dec 04 12:37:31 EST 2002
> > To: Michael Feld <michael.nagiosplughelp at incamail.com>
> > Subject: Re: [Nagiosplug-help] Solaris plugin stuff...
> > 
> > 
> > nrpe works on solaris.  I've been using this one for a year 
> and a half
> > now on 8/sparc
> > 
> > [lilesb at eng02adm bin]$ ./nrpe -v
> > 
> > NRPE - NetSaint Remote Plugin Executor
> > Copyright (c) 1999-2001 Ethan Galstad (netsaint at netsaint.org)
> > Version: 1.2.4
> > Last Modified: 02-22-2001
> > License: GPL
> > 
> > 
> > On Wed, 04 Dec 2002 11:31:52 -0500
> > Michael Feld <michael.nagiosplughelp at incamail.com> wrote:
> > 
> > > 
> > > 
> > > Just wondering if there'd been any progress on the 
> Solaris Sparc NRPE
> > > or check_javaproc on Sparc/x86.  We're jonesing for it 
> over here. :)
> > > 
> > > thx.
> > > 
> > > Michael
> > > 
> > > ------------------------------------------------------------
> > > Tired of spam and email overload?
> > > Get a FREE 6MB email account at http://www.incamail.com
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Microsoft Visual Studio.NET 
> > > comprehensive development tool, built to increase your 
> > > productivity. Try a free online hosted session at:
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> > > _______________________________________________
> > > Nagiosplug-help mailing list
> > > Nagiosplug-help at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > 
> 
> ------------------------------------------------------------
> Tired of spam and email overload?
> Get a FREE 6MB email account at http://www.incamail.com
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Microsoft Visual Studio.NET 
> comprehensive development tool, built to increase your 
> productivity. Try a free online hosted session at:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> 




More information about the Help mailing list