Typo error in /etc/rc.d/init.d/nagios !!

Andreas Ericsson ae at op5.se
Thu Mar 31 17:51:47 CEST 2005


Bimal Pandit wrote:
> Dear All,
> 
> i installed nagios-2.0b2.tar.gz and nagios-plugins-1.4.tar.gz  on my
> fedora core 3, after compliling/installaing/configuring i started it as 
> 
> [bimal at bimalserver bimal]#
> service nagios start
> 
> ERROR: List of process IDs must follow -p.
> ********* simple selection *********  ********* selection by list
> *********
> -A all processes                      -C by command name
> -N negate selection                   -G by real group ID (supports
> names)
> -a all w/ tty except session leaders  -U by real user ID (supports
> names)
> -d all except session leaders         -g by session OR by effective
> group name
> -e all processes                      -p by process ID
> T  all processes on this terminal     -s processes in the sessions given
> a  all w/ tty, including other users  -t by tty
> g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports
> names)
> r  only running processes             U  processes for specified users
> x  processes w/o controlling ttys     t  by tty
> *********** output format **********  *********** long options
> ***********
> -o,o user-defined  -f full            --Group --User --pid --cols --ppid
> -j,j job control   s  signal          --group --user --sid --rows --info
> -O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
> -l,l long          u  user-oriented   --sort --tty --forest --version
> -F   extra full    X  registers       --heading --no-heading --context
>                     ********* misc options *********
> -V,V  show version      L  list format codes  f  ASCII art forest
> -m,m,-L,-T,H  threads   S  children in sum    -y change -l format
> -M,Z  security data     c  true command name  -c scheduling class
> -w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy
> 
> i got above message!!, yes this is an error(AFAIK), so i am posting my
> solution so that this will help someone...
> 
> in your installation, in the startup script i.e.
> 
> [bimal at bimalserver bimal]# vi /etc/rc.d/init.d/nagios
> 
> find a line 
> 
>  "if ps -p $NagiosPID; then" and change it to "if ps -P $NagiosPID;
> then", note the "p" and "P", in fact it is either a typo error or the
> system on which it was made uses "p" -- no idea!!!
> 

It used to be -p, and still is on most systems (why RedHat went their 
own way only god knows).

> well in the last i hope that this will be of some use.
> 

It most likely won't. I believe lots of people have created FC3 RPM's of 
Nagios. They should contain custom made init-scripts which will suit the 
system much better.

> regards,
> 
> Bimal Pandit
> bimal.pandit at indoasian.com
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by Demarc:
> A global provider of Threat Management Solutions.
> Download our HomeAdmin security software for free today!
> http://www.demarc.com/Info/Sentarus/hamr30
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30
_______________________________________________
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