getting a ps error when trying to start

jeff vier boinger at tradingtechnologies.com
Fri Apr 22 16:29:11 CEST 2005


On Fri, 2005-04-22 at 09:16 -0500, Brian W. Wathen wrote:
> 
> Marc Powell wrote:
> 
> 
> >That is extremely unusual. Nagios, and Netsaint before it, have
> >supported -v for years. Why can't you run it as I indicated, either for
> >verification or in daemon mode? There should be no reason you shouldn't
> >be able to do either unless the package maintainer has done some very
> >bizarre things. Also, the init.d scripts are a convenience, not
> >mandatory. Any program that can be started from an init.d script can be
> >started from the command line, especially Nagios. Are you seeing errors?
> >What are they?
> >
> >--
> >Marc
> 
> Here is the error again:
> [root at localhost etc]# nagios
> bash: command not found

is nagios in your path?
try running, for instance,
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

> [root at localhost etc]# /etc/init.d/nagios start
> Starting network monitor: nagios
> ps: error: List of process IDs must follow -p.
> usage: ps -[Unix98 options]
>        ps [BSD-style options]
>        ps --[GNU-style long options]
>        ps --help for a command summary

look in the init script and find the syntax the ps command is using.
try setting the -x arg if you want to watch it run, as well.

> Clearly I can't run "any" program from the command line that I can from 
> init.d. This is the weirdest problem I have had to deal with!

I'm not sure what that sentence means.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list