getting a ps error when trying to start
Marc Powell
marc at ena.com
Fri Apr 22 17:57:59 CEST 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Brian W. Wathen
> Sent: Friday, April 22, 2005 9:16 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: RE: RE: [Nagios-users] getting a ps error when trying to
> start
>
>
>
> 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
> [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
>
> 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!
That is not how I suggested you try to run nagios. Of course you can't just call 'nagios' from the command line as it takes arguments and clearly isn't in your path. My suggestion again was to run '/path/to/nagios -d /path/to nagios.cfg'. In a standard install that would translate to '/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg'. Do that as the nagios user. There's no reason it shouldn't work unless you have made an error somewhere, most likely in your config files. Then you would want to run '/usr/local/nagios -v /usr/local/nagios/etc/nagios.cfg' to verify your config files.
--
Marc
-------------------------------------------------------
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_ide95&alloc_id396&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