<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Again Jeff,<br>
<br>
I do apologize for the delay in my response.<br>
I ran the the nagios script with -x and this was the output. I still
unclear to me why I get the error. Any ideas would be greatly
appreciated. See below<br>
[root@case1 init.d]# service nagios start
<br>
+ '[' -f /etc/rc.d/init.d/functions ']'
<br>
+ . /etc/rc.d/init.d/functions
<br>
++ TEXTDOMAIN=initscripts
<br>
++ umask 022
<br>
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
<br>
++ export PATH
<br>
++ '[' -z '' ']'
<br>
++ COLUMNS=80
<br>
++ '[' -z '' ']'
<br>
+++ /sbin/consoletype
<br>
++ CONSOLETYPE=pty
<br>
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
<br>
++ . /etc/sysconfig/i18n
<br>
+++ LANG=en_US.UTF-8
<br>
+++ SUPPORTED=en_US.UTF-8:en_US:en
<br>
+++ SYSFONT=latarcyrheb-sun16
<br>
++ '[' pty '!=' pty ']'
<br>
++ export LANG
<br>
++ '[' -z '' ']'
<br>
++ '[' -f /etc/sysconfig/init ']'
<br>
++ . /etc/sysconfig/init
<br>
+++ BOOTUP=color
<br>
+++ GRAPHICAL=yes
<br>
+++ RES_COL=60
<br>
+++ MOVE_TO_COL=echo -en \033[60G
<br>
+++ SETCOLOR_SUCCESS=echo -en \033[0;32m
<br>
+++ SETCOLOR_FAILURE=echo -en \033[0;31m
<br>
+++ SETCOLOR_WARNING=echo -en \033[0;33m
<br>
+++ SETCOLOR_NORMAL=echo -en \033[0;39m
<br>
+++ LOGLEVEL=3
<br>
+++ PROMPT=yes
<br>
++ '[' pty = serial ']'
<br>
++ '[' color '!=' verbose ']'
<br>
++ INITLOG_ARGS=-q
<br>
+ prefix=/usr/local/nagios
<br>
+ exec_prefix=/usr/local/nagios
<br>
+ NagiosBin=/usr/local/nagios/bin/nagios
<br>
+ NagiosCfg=/usr/local/nagios/etc/nagios.cfg
<br>
+ NagiosLog=/usr/local/nagios/var/status.log
<br>
+ NagiosTmp=/usr/local/nagios/var/nagios.tmp
<br>
+ NagiosSav=/usr/local/nagios/var/status.sav
<br>
+ NagiosCmd=/usr/local/nagios/var/rw/nagios.cmd
<br>
+ NagiosVar=/usr/local/nagios/var
<br>
+ NagiosRun=/usr/local/nagios/var/nagios.lock
<br>
+ NagiosLckDir=/var/lock/subsys
<br>
+ NagiosLckFile=nagios
<br>
+ NagiosCGI=/usr/local/nagios/sbin
<br>
+ Nagios=apache
<br>
+ test -f /usr/local/nagios/bin/nagios
<br>
+ test -f /usr/local/nagios/etc/nagios.cfg
<br>
+ echo 'Starting network monitor: nagios'
<br>
Starting network monitor: nagios
<br>
+ su -l apache -c 'touch /usr/local/nagios/var/nagios.log
/usr/local/nagios/var/status.sav'
<br>
<b>This account is currently not available.
</b><br>
+ rm -f /usr/local/nagios/var/rw/nagios.cmd
<br>
+ /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
<br>
+ '[' -d /var/lock/subsys ']'
<br>
+ touch /var/lock/subsys/nagios
<br>
+ sleep 1
<br>
+ status_nagios nagios
<br>
+ test '!' -f /usr/local/nagios/var/nagios.lock
<br>
++ head -n 1 /usr/local/nagios/var/nagios.lock
<br>
+ NagiosPID=18594
<br>
+ test -x /usr/local/nagios/sbin/daemonchk.cgi
<br>
+ ps -p 18594
<br>
PID TTY TIME CMD
<br>
18594 ? 00:00:00 nagios
<br>
+ return 0
<br>
<br>
<br>
<pre class="moz-signature" cols="72">Thank you,
Sameka Prather
Office of Internet Services
<a class="moz-txt-link-abbreviated" href="mailto:sameka.prather@noaa.gov">sameka.prather@noaa.gov</a>
301-713-1384 x 109
</pre>
<br>
<br>
jeff vier wrote:
<blockquote cite="mid1143816581.14065.35.camel@chi101100.int.tt.local"
type="cite">
<pre wrap="">On Fri, 2006-03-31 at 07:34 -0500, Sameka Prather wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am not sure what you mean. Do you want me to add -s to the first
line in the script #! -x? So that line would look like #! /bin/sh -x.
</pre>
</blockquote>
<pre wrap=""><!---->
without the space after the #!, yes.
#!/bin/sh -x
a quick google search found:
<a class="moz-txt-link-freetext" href="http://www.injunea.demon.co.uk/pages/page213.htm">http://www.injunea.demon.co.uk/pages/page213.htm</a>
</pre>
</blockquote>
</body>
</html>