|
From: Marc P. <mp...@en...> - 2003-01-07 15:27:24
|
I don't know if it's just a display issue or not but this line caught my eye: Jan 7 08:27:38 XXXX nsca[8827]: Command file '/usr/local/nagios/var/rw/nagios.cmd ' Note the '<space>' after nagios.cmd. Just seems kind of odd to me that that would be there. Other than that, does nsca run out of (x)inetd or as a daemon? For our sake could you do the following and resend to the list? ls -la /usr/local/nagios/var/rw ps -efwww | grep nsca Thanks, Marc=20 > -----Original Message----- > From: Karl Ehr [mailto:ke...@ya...] > Sent: Tuesday, January 07, 2003 9:03 AM > To: nagios > Subject: [Nagios-users] Stumper? bug? nsca daemon & ext. cmd. file -- not > a permission issue? >=20 > I have a hacker challenge -- maybe... >=20 > I've read the phobic posts about Red Hat 8.0, but I > haven't seen anything that looks like my problem, RH > 8.0 or otherwise: >=20 > My problem is that the nsca daemon, when handling a > remote network request from send_nsca, gives the > following error: >=20 >=20 > Jan 7 08:27:38 XXXX nsca[8827]: Handling the > connection... > Jan 7 08:27:38 XXXX nsca[8827]: SERVICE CHECK -> Host > Name: 'laptop', Service Description: 'BOGUS', Return > Code: '2', Output: 'Error Message goes here' > Jan 7 08:27:38 XXXX nsca[8827]: 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 > Jan 7 08:27:38 XXXX nsca[8827]: Could not open > alternate dump file > '/usr/local/nagios/var/rw/nsca.dump' for appending > Jan 7 08:27:38 XXXX nsca[8827]: End of connection... >=20 > I've configured the user/group for both nagios and the > nsca daemons to be 'nagios/nagios'. All of > /usr/local/nagios is user/group nagios.nagios. The > permissions are correct (I'm 99%) sure, because all of > the external command CGI's work perfectly; also, su-ed > to the nagios user, I can echo commands >> to the > /usr/local/nagios/var/rw/nagios.cmd file and they show > up fine both in the log and in the web interface.... >=20 > I have tried compiling the 1.06b and 1.0 versions of > nagios, the 2.1 and latest CVS build of nsca, > mix-matching them in all combinations. I have set > the permissions on the "rw" directory both by hand > (setting the group, the S bit on the group level, > etc...) and with the "install-commandmode" make > option; I've also tried chmoding the file with "chmod > 777" after it gets created when nagios starts and > there is the same error. >=20 > The fact that I can echo commands in locally as the > "nagios" user and get good results seems to probably > show that its neither a permissions issue or anything > with the passive/external command interface. Maybe > this is a bug with nsca itself? >=20 > As an aside, I cannot get the alternate dump file to > work either. Touching the nagios.dump file ahead of > time, and setting wide open permissions makes no > difference. (I'm assuming that the dump file is > supposed to be a regular text file -- not a FIFO named > pipe like the command file, right??) >=20 > I'm stumped... but I'm also surprised that I'm seeing > something that hasn't popped up for someone else > already. Any help will bring you praise, beer, pizza, > cookies or whatever tithe you demand. TIA, >=20 > Karl >=20 > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =3D Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nag...@li... > https://lists.sourceforge.net/lists/listinfo/nagios-users |