<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
[nagios@DCSERVERBD2 rw]$ ls -lah *<br>
prw-rw---- 1 nagios nagiosgrb 0 may 8 13:22 nagios.cmd<br>
-rwxrwxr-x 1 nagios nagiosgrb 4,0K may 11 09:20 nsca.dump<br>
<br>
seems to be well.<br>
<br>
Kevin Keane escribió:
<blockquote cite="mid:4A053005.60503@kkeane.com" type="cite">
<pre wrap="">Does the nsca user or group have access to every single directory along
the path? Easy way to try:
su - nagios
cd /usr/local/nagios/var/rw
ls -lah *
Note: the above won't work if user nagios has /bin/false as a shell. In
that case, try
su -s /bin/bash - nagios
It should list nagios.cmd (and probably some other files)
Joan Tugores wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I think that not using chroot jail, this is my nsca.cfg:
pid_file=/var/run/nsca.pid
server_port=5667
#server_address=192.168.1.1
nsca_user=nagios
nsca_group=nagiosgrb
#nsca_chroot=/usr/local/nagios/var/rw/
debug=1
command_file=/usr/local/nagios/var/rw/nagios.cmd
alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump
aggregate_writes=0
append_to_file=0
max_packet_age=30
#password=
decryption_method=1
Kevin Keane escribió:
</pre>
<blockquote type="cite">
<pre wrap="">Does nsca run in a chroot jail? I'm not sure if it can do that.
If that's the case, nsca may think that /usr/local/nagios is really the
root of the file system, and anything above that directory is
essentially hidden. In that case, you'd have to change the nsca.cfg
configuration to use /var/rw/nagios.cmd (or strip out whatever the root
of the chroot jail is).
Joan Tugores wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
When I send a packet to ncsa server this not processed.
In /var/log/messages:
Command file '/usr/local/nagios/var/rw/nagios.cmd' does not exist,attempting to use alternate dump file '/usr/local/nagios/var/rw/nsca.dump' for output
But nagios.cmd exists and the permissions are good.
prw-rw---- 1 nagios nagiosgrb 0 may 5 09:59 nagios.cmd
Regards,
Joan
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.06050000.03020208@dome-consulting.com" border="0"></div>
</body>
</html>