[Nagiosplug-help] check_procs fails in Solaris 10

Esben Bach esben at cs.aau.dk
Wed Mar 28 12:14:47 CEST 2007


When you compile the plugin package for Solaris it needs to detect your 
"ps" command - if this fails it will use a built in version which is 
known to fail on Solaris 10 (and possibly other Solaris versions as well).
Check your plugin installation location for a "pst" file - if it exists 
its probably because the "configure" script couldn't find the proper 
command - if so it should be reflected during the configure process.
It seems like there are several workarounds for this, but I solved it by 
specifying ps command location and specific syntax of the output - 
something like the following:

./configure --with-ps_command="/usr/bin/ps -eo 's uid pid ppid vsz rss 
pcpu etime comm args'" --with-ps_format='%s %d %d %d %d %d %f %s %s %n' 
--with-ps_cols=10 
--with-ps_varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos'

I have seen forum posts around solving it using only the ps_command part 
you might try that it didnt work for me however.
Also I think different solutions has been posted on this list before - 
try searching the archives if the above does not work for you.

--
Esben

Borja Gonzalez wrote:
>
> Hi.
>
> A couple of days ago I wrote to the list asking for help with a 
> Solaris 10 NRPE add-on compilation, and thanks to you, it finally 
> compilled (although I had to toggle some options off... ;-)).
>
> Now I'm facing a different problem I hope somebody has suffered (and 
> solved, I'm not that mean...) before:
>
> I've got my nagios host running in a Linux machine, and it's already 
> monitoring some other Linux systems perfectly. Now I'm trying to do 
> the same with my Solaris machines. I've got nrpe installed and running 
> through inetd, and when I try check_nrpe from the remote host it works 
> with most service checks (check_disks and users, for example, are 
> performing fine...). But when I use the predefined *process checks* 
> (total and zombie processes checks) I get a CRITICAL response because 
> of a socket timeout:
>
> CHECK_NRPE: socket timeout after 10 seconds
>
> I already tried increasing the timeout value to 30, to no avail. It 
> doesn't even work when I execute this check locally, by hand, or in 
> any possible way I could imagine. What dazzles me is that the rest of 
> checks work without the slightest trace of misbehaviour...
>
> Do you have an idea of what may cause this????
>
> Thanks again for your help!!
>
> Borja
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>   





More information about the Help mailing list