Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-26 Thread REMY Julien
If I run nagios -v nagios.cfg, there isn't error and warning. however nothing 
is posted but Nagios is started.

-Message d'origine-
De : Deborah Martin [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 23 juin 2006 16:51
À : REMY Julien; nagios-users@lists.sourceforge.net
Objet : RE: [Nagios-users] nagios list of process IDs must follow -p

If the configuration can't be read, check the paths in the nagios.cfg
correspond to the correct locations of the 
.cfg files. Check permissions and owner of the files. 

When you run the nagios -v nagios.cfg preflight check what is the output ? 



-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 15:40
To: Deborah Martin; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] nagios list of process IDs must follow -p


Yes I follow all but it's the same problem

-Message d'origine-
De : Deborah Martin [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 23 juin 2006 15:18
À : REMY Julien; Marc Powell; nagios-users@lists.sourceforge.net
Objet : RE: [Nagios-users] nagios list of process IDs must follow -p

and have you followed the advice set out below ? 

-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 14:20
To: Marc Powell; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios list of process IDs must follow -p


It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file.

Thank you.

But in Nagios, if I select menus, the message is : 

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check
for errors.
   2. Check the Nagios log file for messages relating to startup or status
data errors.
   3. Make sure you've compiled the main program and the CGIs to use the
same
object data storage options (i.e. default text file or template-based file).


Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a
message
to one of the mailing lists. More information can be found at
http://www.nagios.org.

What want to say?


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Marc
Powell
Envoyé : vendredi 23 juin 2006 14:27
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of REMY Julien
 Sent: Friday, June 23, 2006 4:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios list of process IDs must follow -p
 
 Hello,
 
 
 
 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :
 
 
 
 ERROR: list of process IDs must follow -p
 
 
 
 What wants to say this message?


Based on what you said previously, it probably means that nagios isn't
starting or isn't able to create the pid file. Try running manually and
look for errors with '/path/to/nagios /path/to/nagios.etc'.

Make sure nagios can write to the files you've specified as lock_file,
state_retention_file, comment_file, downtime_file and temp_file in
nagios.cfg. Make sure the command_file directory exists and is
configured as per the documentation if you have enabled external
commands.

As for your CGI errors, the http logs you provided show no attempted
access to any of the CGI's. Why is that?

Since you're using RHEL4, you'll want to verify that either SELinux is
disabled or you've created a policy that allows http access to the CGI's
and possibly daemon access to other files. If you see 'avc denied'
errors related to nagios in /var/log/messages then you need to disable
or modify your SELinux policy. There are several discussions in the
archives on how to do this.

--
Marc



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users

Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-26 Thread REMY Julien
When I compile Nagios : 

checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no


*** GD, PNG, and/or JPEG libraries could not be located... *

Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs.  Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.

NOTE: In addition to the gd-devel library, you'll also need to make
  sure you have the png-devel and jpeg-devel libraries installed
  on your system.

NOTE: After you install the necessary libraries on your system:
  1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the GD, PNG, and JPEG libraries are installed.
  2. Run 'ldconfig' to update the run-time linker options.
  3. Run 'make clean' in the Nagios distribution to clean out
 any old references to your previous compile.
  4. Rerun the configure script.

NOTE: If you can't get the configure script to recognize the GD libs
  on your system, get over it and move on to other things.  The
  CGIs that use the GD libs are just a small part of the entire
  Nagios package.  Get everything else working first and then
  revisit the problem.  Make sure to check the nagios-users
  mailing list archives for possible solutions to GD library
  problems when you resume your troubleshooting.

-Message d'origine-
De : Deborah Martin [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 23 juin 2006 16:51
À : REMY Julien; nagios-users@lists.sourceforge.net
Objet : RE: [Nagios-users] nagios list of process IDs must follow -p

If the configuration can't be read, check the paths in the nagios.cfg
correspond to the correct locations of the 
.cfg files. Check permissions and owner of the files. 

When you run the nagios -v nagios.cfg preflight check what is the output ? 



-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 15:40
To: Deborah Martin; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] nagios list of process IDs must follow -p


Yes I follow all but it's the same problem

-Message d'origine-
De : Deborah Martin [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 23 juin 2006 15:18
À : REMY Julien; Marc Powell; nagios-users@lists.sourceforge.net
Objet : RE: [Nagios-users] nagios list of process IDs must follow -p

and have you followed the advice set out below ? 

-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 14:20
To: Marc Powell; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios list of process IDs must follow -p


It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file.

Thank you.

But in Nagios, if I select menus, the message is : 

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check
for errors.
   2. Check the Nagios log file for messages relating to startup or status
data errors.
   3. Make sure you've compiled the main program and the CGIs to use the
same
object data storage options (i.e. default text file or template-based file).


Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a
message
to one of the mailing lists. More information can be found at
http://www.nagios.org.

What want to say?


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Marc
Powell
Envoyé : vendredi 23 juin 2006 14:27
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of REMY Julien
 Sent: Friday, June 23, 2006 4:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios list of process IDs must follow -p
 
 Hello,
 
 
 
 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :
 
 
 
 ERROR: list of process IDs must follow -p
 
 
 
 What wants to say this message?


Based on what you said previously, it probably means that nagios isn't
starting or isn't able to create the pid file. Try running manually and
look for errors with '/path/to/nagios /path/to/nagios.etc'.

Make sure nagios can write to the files you've specified as lock_file,
state_retention_file, comment_file, downtime_file and temp_file in
nagios.cfg. Make sure the command_file directory exists and is
configured as per the documentation if you have enabled external
commands.

As for your CGI errors

[Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread REMY Julien








Hello,



Nagios dont start in my computer
(/etc/init.d/nagios start). If I do /etc/init.d/nagios status, an error message
appears : 



ERROR: list of process IDs must follow p



What wants to say this message?



Thanks






Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread Thomas Sluyter
Hey Remy,

 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :

 ERROR: list of process IDs must follow -p

 What wants to say this message?

The script probably contains a call to ps -p which requires a  
number of PIDs. My guess is that these PIDs should be generated by  
the script, but that something's going wrong :)

EDIT:
Ah, found it:
  NagiosPID=`head -n 1 $NagiosRun`
 if test -x $NagiosCGI/daemonchk.cgi; then
 if $NagiosCGI/daemonchk.cgi -l $NagiosRun; then
 return 0
 else
 return 1
 fi
 else
 if ps -p $NagiosPID; then
 return 0
 else
 return 1
 fi
 fi

So it's trying to get the PID from the Nagios lock file, but  
apparently there is no PID in there and thus the script borks :)  
Should be easy to fix this, though IMHO this should be fixed in the  
source/package so everyone benefits from it.

Cheers!


Thomas

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread REMY Julien
In /etc/init.d/nagios : 

status_nagios ()
{

if test ! -f $NagiosRunFile; then
echo No lock file found in $NagiosRunFile
return 1
fi

NagiosPID=`head -n 1 $NagiosRunFile`
if test -x $NagiosCGI/daemonchk.cgi; then
if $NagiosCGI/daemonchk.cgi -l $NagiosRunFile; then
return 0
else
return 1
fi
else
if ps -p $NagiosPID; then
return 0
else
return 1
fi
fi

return 1
}

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Thomas Sluyter
Envoyé : vendredi 23 juin 2006 11:11
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p

Hey Remy,

 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :

 ERROR: list of process IDs must follow -p

 What wants to say this message?

The script probably contains a call to ps -p which requires a  
number of PIDs. My guess is that these PIDs should be generated by  
the script, but that something's going wrong :)

EDIT:
Ah, found it:
  NagiosPID=`head -n 1 $NagiosRun`
 if test -x $NagiosCGI/daemonchk.cgi; then
 if $NagiosCGI/daemonchk.cgi -l $NagiosRun; then
 return 0
 else
 return 1
 fi
 else
 if ps -p $NagiosPID; then
 return 0
 else
 return 1
 fi
 fi

So it's trying to get the PID from the Nagios lock file, but  
apparently there is no PID in there and thus the script borks :)  
Should be easy to fix this, though IMHO this should be fixed in the  
source/package so everyone benefits from it.

Cheers!


Thomas

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread Thomas Sluyter
On 23 Jun, 2006, at 11:36, REMY Julien wrote:
 In /etc/init.d/nagios :

 status_nagios ()
 {

   if test ! -f $NagiosRunFile; then
   echo No lock file found in $NagiosRunFile
   return 1
 ...
 and so on...

I know what /etc/init.d/nagios looks like, thank you :)

My point was that the ps -p check is currently not the most elegant  
solution to perform the check. It would be better if Ethan or someone  
else fixed the init script in the various packages, so that it would  
work properly. He could include something like:

[ -f $NagiosPID ==  ] || (echo Something went wrong reading the  
Nagios PID from $NagiosRunFile);

Which should come right after the setting of $NagiosPID. I know, it's  
a nasty kludge, but at least it'll catch the error if $NagiosPID  
isn't read properly.

Cheers,


Thomas

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread REMY Julien
I replaced in /etc/init.d/nagios : 

if ps -p $NagiosPID;

by

[ if ps -f $NagiosPID ==  ] || (echo Something went wrong reading the Nagios 
PID from $NagiosRunFile);

Is that which is necessary that I make?

thanks

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Thomas Sluyter
Envoyé : vendredi 23 juin 2006 11:43
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p

On 23 Jun, 2006, at 11:36, REMY Julien wrote:
 In /etc/init.d/nagios :

 status_nagios ()
 {

   if test ! -f $NagiosRunFile; then
   echo No lock file found in $NagiosRunFile
   return 1
 ...
 and so on...

I know what /etc/init.d/nagios looks like, thank you :)

My point was that the ps -p check is currently not the most elegant  
solution to perform the check. It would be better if Ethan or someone  
else fixed the init script in the various packages, so that it would  
work properly. He could include something like:

[ -f $NagiosPID ==  ] || (echo Something went wrong reading the  
Nagios PID from $NagiosRunFile);

Which should come right after the setting of $NagiosPID. I know, it's  
a nasty kludge, but at least it'll catch the error if $NagiosPID  
isn't read properly.

Cheers,


Thomas

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread Thomas Sluyter
On 23 Jun, 2006, at 12:13, REMY Julien wrote:

 I replaced in /etc/init.d/nagios :

 if ps -p $NagiosPID;

 by

 [ if ps -f $NagiosPID ==  ] || (echo Something went wrong  
 reading the Nagios PID from $NagiosRunFile);

 Is that which is necessary that I make?

No... Either I wasn't very clear, or reading english isn't your forté...

It could become something like this:

NagiosPID=`head -n 1 $NagiosRun`
[ $NagiosPID ==  ]  (echo Something went wrong reading the  
Nagios PID from $NagiosRunFile; exit 1)

if test -x $NagiosCGI/daemonchk.cgi; then
 if $NagiosCGI/daemonchk.cgi -l $NagiosRun; then
return 0
 else
 return 1
 fi
else
 if ps -p $NagiosPID; then
 return 0
 else
 return 1
fi
fi
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread Thomas Sluyter
Just to be clear, I made a booboo in my e-mail from 11:42:

On 23 Jun, 2006, at 11:43, Thomas Sluyter wrote:
 [ -f $NagiosPID ==  ] || (echo Something went wrong reading the
 Nagios PID from $NagiosRunFile);

Should be:

[ $NagiosPID ==  ]  Something went wrong reading the Nagios PID  
from $NagiosRunFile; exit 1)


I have no clue what was in my coffee, but what I wrote earlier was  
horse crap. Sorry about that...

Cheers!


Thomas

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread REMY Julien
It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file.

Thank you.

But in Nagios, if I select menus, the message is : 

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check
for errors.
   2. Check the Nagios log file for messages relating to startup or status
data errors.
   3. Make sure you've compiled the main program and the CGIs to use the same
object data storage options (i.e. default text file or template-based file). 

Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a message
to one of the mailing lists. More information can be found at
http://www.nagios.org.

What want to say?


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Marc Powell
Envoyé : vendredi 23 juin 2006 14:27
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of REMY Julien
 Sent: Friday, June 23, 2006 4:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios list of process IDs must follow -p
 
 Hello,
 
 
 
 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :
 
 
 
 ERROR: list of process IDs must follow -p
 
 
 
 What wants to say this message?


Based on what you said previously, it probably means that nagios isn't
starting or isn't able to create the pid file. Try running manually and
look for errors with '/path/to/nagios /path/to/nagios.etc'.

Make sure nagios can write to the files you've specified as lock_file,
state_retention_file, comment_file, downtime_file and temp_file in
nagios.cfg. Make sure the command_file directory exists and is
configured as per the documentation if you have enabled external
commands.

As for your CGI errors, the http logs you provided show no attempted
access to any of the CGI's. Why is that?

Since you're using RHEL4, you'll want to verify that either SELinux is
disabled or you've created a policy that allows http access to the CGI's
and possibly daemon access to other files. If you see 'avc denied'
errors related to nagios in /var/log/messages then you need to disable
or modify your SELinux policy. There are several discussions in the
archives on how to do this.

--
Marc



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread Deborah Martin
and have you followed the advice set out below ? 

-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 14:20
To: Marc Powell; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios list of process IDs must follow -p


It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file.

Thank you.

But in Nagios, if I select menus, the message is : 

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check
for errors.
   2. Check the Nagios log file for messages relating to startup or status
data errors.
   3. Make sure you've compiled the main program and the CGIs to use the
same
object data storage options (i.e. default text file or template-based file).


Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a
message
to one of the mailing lists. More information can be found at
http://www.nagios.org.

What want to say?


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Marc
Powell
Envoyé : vendredi 23 juin 2006 14:27
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of REMY Julien
 Sent: Friday, June 23, 2006 4:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios list of process IDs must follow -p
 
 Hello,
 
 
 
 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :
 
 
 
 ERROR: list of process IDs must follow -p
 
 
 
 What wants to say this message?


Based on what you said previously, it probably means that nagios isn't
starting or isn't able to create the pid file. Try running manually and
look for errors with '/path/to/nagios /path/to/nagios.etc'.

Make sure nagios can write to the files you've specified as lock_file,
state_retention_file, comment_file, downtime_file and temp_file in
nagios.cfg. Make sure the command_file directory exists and is
configured as per the documentation if you have enabled external
commands.

As for your CGI errors, the http logs you provided show no attempted
access to any of the CGI's. Why is that?

Since you're using RHEL4, you'll want to verify that either SELinux is
disabled or you've created a policy that allows http access to the CGI's
and possibly daemon access to other files. If you see 'avc denied'
errors related to nagios in /var/log/messages then you need to disable
or modify your SELinux policy. There are several discussions in the
archives on how to do this.

--
Marc



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Kognitio Limited takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Kognitio grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.
***


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre

Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread REMY Julien
In my /var/log/httpd/error_log : 

File does not exist: /var/www/html/favicon.ico

In my /var/log/messages : 

nagios: Error: Unable to create temp file for writing status data!
Jun 23 15:45:03 mercure2 pam_timestamp_check: pam_timestamp: `/var/' 
permissions are lax
Jun 23 15:45:13 mercure2 last message repeated 2 times


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Marc Powell
Envoyé : vendredi 23 juin 2006 14:27
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of REMY Julien
 Sent: Friday, June 23, 2006 4:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios list of process IDs must follow -p
 
 Hello,
 
 
 
 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :
 
 
 
 ERROR: list of process IDs must follow -p
 
 
 
 What wants to say this message?


Based on what you said previously, it probably means that nagios isn't
starting or isn't able to create the pid file. Try running manually and
look for errors with '/path/to/nagios /path/to/nagios.etc'.

Make sure nagios can write to the files you've specified as lock_file,
state_retention_file, comment_file, downtime_file and temp_file in
nagios.cfg. Make sure the command_file directory exists and is
configured as per the documentation if you have enabled external
commands.

As for your CGI errors, the http logs you provided show no attempted
access to any of the CGI's. Why is that?

Since you're using RHEL4, you'll want to verify that either SELinux is
disabled or you've created a policy that allows http access to the CGI's
and possibly daemon access to other files. If you see 'avc denied'
errors related to nagios in /var/log/messages then you need to disable
or modify your SELinux policy. There are several discussions in the
archives on how to do this.

--
Marc



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread Thomas Sluyter
On 23 Jun, 2006, at 14:59, REMY Julien wrote:

 In my /etc/init.d/nagios :

   NagiosPID=`head -n 1 $NagiosRun`
 [ -f $NagiosPID ==  ]  (echo Something went wrong reading the  
 Nagios PID from $NagiosRunFile; exit 1)

Take out that -f. That was a mistake of mine and doesn't belong  
there. It was a typo...

Cheers



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread REMY Julien
It's OK for the restarting of Nagios. But I have the same error when I stop 
Nagios.

In the interface, I have the message : 

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check 
for errors.
   2. Check the Nagios log file for messages relating to startup or status data 
errors.
   3. Make sure you've compiled the main program and the CGIs to use the same 
object data storage options (i.e. default text file or template-based file). 

Make sure you read the documentation on installing, configuring and running 
Nagios thoroughly before continuing. If all else fails, try sending a message 
to one of the mailing lists. More information can be found at 
http://www.nagios.org.

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Thomas Sluyter
Envoyé : vendredi 23 juin 2006 16:09
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p

On 23 Jun, 2006, at 14:59, REMY Julien wrote:

 In my /etc/init.d/nagios :

   NagiosPID=`head -n 1 $NagiosRun`
 [ -f $NagiosPID ==  ]  (echo Something went wrong reading the  
 Nagios PID from $NagiosRunFile; exit 1)

Take out that -f. That was a mistake of mine and doesn't belong  
there. It was a typo...

Cheers



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread REMY Julien
Yes I follow all but it's the same problem

-Message d'origine-
De : Deborah Martin [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 23 juin 2006 15:18
À : REMY Julien; Marc Powell; nagios-users@lists.sourceforge.net
Objet : RE: [Nagios-users] nagios list of process IDs must follow -p

and have you followed the advice set out below ? 

-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 14:20
To: Marc Powell; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios list of process IDs must follow -p


It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file.

Thank you.

But in Nagios, if I select menus, the message is : 

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check
for errors.
   2. Check the Nagios log file for messages relating to startup or status
data errors.
   3. Make sure you've compiled the main program and the CGIs to use the
same
object data storage options (i.e. default text file or template-based file).


Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a
message
to one of the mailing lists. More information can be found at
http://www.nagios.org.

What want to say?


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Marc
Powell
Envoyé : vendredi 23 juin 2006 14:27
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of REMY Julien
 Sent: Friday, June 23, 2006 4:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios list of process IDs must follow -p
 
 Hello,
 
 
 
 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :
 
 
 
 ERROR: list of process IDs must follow -p
 
 
 
 What wants to say this message?


Based on what you said previously, it probably means that nagios isn't
starting or isn't able to create the pid file. Try running manually and
look for errors with '/path/to/nagios /path/to/nagios.etc'.

Make sure nagios can write to the files you've specified as lock_file,
state_retention_file, comment_file, downtime_file and temp_file in
nagios.cfg. Make sure the command_file directory exists and is
configured as per the documentation if you have enabled external
commands.

As for your CGI errors, the http logs you provided show no attempted
access to any of the CGI's. Why is that?

Since you're using RHEL4, you'll want to verify that either SELinux is
disabled or you've created a policy that allows http access to the CGI's
and possibly daemon access to other files. If you see 'avc denied'
errors related to nagios in /var/log/messages then you need to disable
or modify your SELinux policy. There are several discussions in the
archives on how to do this.

--
Marc



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Kognitio Limited takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Kognitio grants no warranties regarding performance,
use

Re: [Nagios-users] nagios list of process IDs must follow -p

2006-06-23 Thread Deborah Martin
If the configuration can't be read, check the paths in the nagios.cfg
correspond to the correct locations of the 
.cfg files. Check permissions and owner of the files. 

When you run the nagios -v nagios.cfg preflight check what is the output ? 



-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 15:40
To: Deborah Martin; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] nagios list of process IDs must follow -p


Yes I follow all but it's the same problem

-Message d'origine-
De : Deborah Martin [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 23 juin 2006 15:18
À : REMY Julien; Marc Powell; nagios-users@lists.sourceforge.net
Objet : RE: [Nagios-users] nagios list of process IDs must follow -p

and have you followed the advice set out below ? 

-Original Message-
From: REMY Julien [mailto:[EMAIL PROTECTED]
Sent: 23 June 2006 14:20
To: Marc Powell; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios list of process IDs must follow -p


It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file.

Thank you.

But in Nagios, if I select menus, the message is : 

Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

   1. Verify configuration options using the -v command-line option to check
for errors.
   2. Check the Nagios log file for messages relating to startup or status
data errors.
   3. Make sure you've compiled the main program and the CGIs to use the
same
object data storage options (i.e. default text file or template-based file).


Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a
message
to one of the mailing lists. More information can be found at
http://www.nagios.org.

What want to say?


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Marc
Powell
Envoyé : vendredi 23 juin 2006 14:27
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] nagios list of process IDs must follow -p



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of REMY Julien
 Sent: Friday, June 23, 2006 4:07 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] nagios list of process IDs must follow -p
 
 Hello,
 
 
 
 Nagios don't start in my computer (/etc/init.d/nagios start). If I do
 /etc/init.d/nagios status, an error message appears :
 
 
 
 ERROR: list of process IDs must follow -p
 
 
 
 What wants to say this message?


Based on what you said previously, it probably means that nagios isn't
starting or isn't able to create the pid file. Try running manually and
look for errors with '/path/to/nagios /path/to/nagios.etc'.

Make sure nagios can write to the files you've specified as lock_file,
state_retention_file, comment_file, downtime_file and temp_file in
nagios.cfg. Make sure the command_file directory exists and is
configured as per the documentation if you have enabled external
commands.

As for your CGI errors, the http logs you provided show no attempted
access to any of the CGI's. Why is that?

Since you're using RHEL4, you'll want to verify that either SELinux is
disabled or you've created a policy that allows http access to the CGI's
and possibly daemon access to other files. If you see 'avc denied'
errors related to nagios in /var/log/messages then you need to disable
or modify your SELinux policy. There are several discussions in the
archives on how to do this.

--
Marc



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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


This email and any files transmitted