[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 19991101: New LDM Installation



On Thu, 4 Nov 1999 address@hidden wrote:

> 
> 
> Good news....Most of the problems have been worked.  I am receiving data
> and storing thru LDM.  Only one little problem...I still don't have a
> logfile anywhere.  This is what I get when I do a ldmadmin config:
> 
> hostname:      npfos.ncdc.noaa.gov
> ldmhome:       /npfos/noaaport
> bin path:      /npfos/noaaport/bin
> conf file:     /npfos/noaaport/etc/ldmd.conf
> log file:      /npfos/noaaport/logs/ldmd.log
> data path:     /npfos/noaaport/data
> product queue: /npfos/noaaport/data/ldm.pq
> queue size:    100000000 bytes
> PID file:      /npfos/noaaport/ldmd.pid
> LDMHOSTNAME:   npfos.ncdc.noaa.gov
> 
> I see .stats files in the log directory, but no ldmd.log.
> 
Alan,

Your /etc/syslog.conf file should have the line;

local0.debug            /npfos/noaaport/logs/ldmd.log


You need to do a:

% touch /npfos/noaaport/logs/ldmd.log


More info at:

http://www.unidata.ucar.edu/glimpse/ldm/3209

Test that syslog is working by:

%  foreach lev (err warning notice info) \
%  echo $lev | logger -i -t test -p local0.$lev \
%  end

If no messages appear in the ldmd.log, try doing the HUP to syslogd as
show below a couple more times.  You can test for the syslog pid by:

% ps -eaf | grep syslogd

The HUP needs to be done by root, if hupsyslog is not suid root. You can
tell you system admin that no one has broken into the ldm by the suid root
on rpc.ldmd and hupsyslog since the ldm was created. Currently there are
over 160 sites including government agencies set up that way. I use to
work a FSL in the early 90's and I set up a ldm at NCDC to receive the
profiler data, there wasn't a breakin every on it. Just a thought.

Robb...




> Alan.
> 
> 
> 
> 
> 
> Robb Kambic <address@hidden> on 11/02/99 12:27:48 PM
>                                                               
>                                                               
>                                                               
>  To:      Alan Hall/NCDC                                      
>                                                               
>  cc:      support-ldm <address@hidden>, Anne    
>           Wilson <address@hidden>                      
>                                                               
>                                                               
>                                                               
>  Subject: Re: 19991101: New LDM Installation                  
>                                                               
> 
> 
> 
> 
> 
> 
> 
> 
> Alan,
> 
> The pqact entry has to be modified to match the headers seen from the
> ldmadmin watch command. There is an online tutorial at:
> 
> http://www.unidata.ucar.edu/packages/ldm/ws/ws.html#schedule
> 
> Look at Day 2 "Using the Data" parts 1& 2.
> 
> 
> For the log file, the /etc/syslog.conf file needs to be configured for the
> ldmd.log file to get the messages.
> 
> 
> On Tue, 2 Nov 1999 address@hidden wrote:
> 
> >
> >
> > I wish I could give you a logon.  I got one for Leslie Ewy (FSL) and it
> 
> I suggest that you get Leslie Ewy to look at your ldm, I only speculating
> at this point. She should have examples of how the pqact entries should
> look like. On the positive side, I don't think this is a major problem,
> just some research is needed on configurating the pqact.conf file.
> 
> Robb...
> 
> > took several days to get it.  I don't think that will be quicker.  My
> > systems folks are a paranoid group.  As a matter of fact, they wouldn't
> > allow the rpc.ldmd and hupsyslog to be suid root.  We set up a root cron
> > instead.
> >
> > Time for true confessions.  I am using the acqserver software provided by
> > FSL (Leslie Ewy) to insert entries directly into the ldm.pq.  Leslie had
> to
> > modify the software to work with the SunOS 5.7.  It does appear that the
> > products are inserted into the ldm.pq.  I don't know if this helps or
> not,
> > but I just wanted you to know I am not being fed from an upstream server.
> >
> > The username and directory structure of my LDM installation is alittle
> > different.  I am using noaaport as the username for both LDM and
> acqserver.
> > The home path is /npfos/noaaport and I have created a link in /usr/local
> to
> > point ldm to this home directory.  The command was 'ln -s /npfos/noaaport
> > /usr/local/ldm' and was executed as root.  I have a raid disk that I am
> > trying to get LDM to store too and I am using links to point to where
> > everything should be.  Using the raid solves several problems and allows
> us
> > to store alittle more than most can.  Here is an ls -l of the directory
> > structure:
> >
> > lrwxrwxrwx   1 noaaport noaaport      26 Oct 13 15:17 acqserver ->
> > /npraid/noaaport/acqserver
> > lrwxrwxrwx   1 noaaport noaaport      11 Oct 13 11:05 bin -> runtime/bin
> > lrwxrwxrwx   1 noaaport noaaport      21 Oct 13 11:05 data ->
> > /npraid/noaaport/data
> > lrwxrwxrwx   1 noaaport noaaport      29 Oct 13 15:27 decoders ->
> > /npraid/noaaport/ldm/decoders
> > lrwxrwxrwx   1 noaaport noaaport      24 Oct 13 15:27 etc ->
> > /npraid/noaaport/ldm/etc
> > lrwxrwxrwx   1 noaaport noaaport      15 Oct 13 11:05 include ->
> > runtime/include
> > lrwxrwxrwx   1 noaaport noaaport      11 Oct 13 11:05 lib -> runtime/lib
> > lrwxrwxrwx   1 noaaport noaaport      25 Oct 13 15:27 logs ->
> > /npraid/noaaport/ldm/logs
> > lrwxrwxrwx   1 noaaport noaaport      11 Oct 13 11:05 man -> runtime/man
> > lrwxrwxrwx   1 noaaport noaaport      30 Oct 13 15:25 runtime ->
> > /npraid/noaaport/ldm/ldm-5.0.8
> > lrwxrwxrwx   1 noaaport noaaport      25 Oct 13 15:27 util ->
> > /npraid/noaaport/ldm/util
> >
> > I think I have everything covered, but you might notice something that
> I
> > missed.  Here is an ls -lR of the files in the /npraid/noaaport
> directory:
> >
> > /npraid/noaaport:
> > total 8
> > drwxrwxr-x   6 noaaport noaaport     512 Oct 21 15:34 acqserver
> > drwxrwxr-x   3 noaaport noaaport     512 Nov  2 09:23 data
> > drwxrwxr-x   7 noaaport noaaport     512 Oct 13 15:26 ldm
> > drwxrwxr-x   6 noaaport noaaport     512 Oct 13 13:49 nrs
> >
> > /npraid/noaaport/data:
> > total 200066
> > drwxrwxr-x   3 noaaport noaaport     512 Oct 12 16:02 ldm
> > -rw-rw-r--   1 noaaport noaaport 102367232 Nov  2 11:23 ldm.pq
> >
> > /npraid/noaaport/data/ldm:
> > total 2
> > drwxrwxr-x   2 noaaport noaaport     512 Oct 12 16:02 logs
> >
> > /npraid/noaaport/data/ldm/logs:
> > total 0
> >
> > /npraid/noaaport/ldm:
> > total 10
> > drwxrwxr-x   2 noaaport noaaport     512 Oct 12 11:20 decoders
> > drwxrwxr-x   2 noaaport noaaport     512 Nov  1 16:02 etc
> > drwxrwxr-x   7 noaaport noaaport     512 Oct 12 11:42 ldm-5.0.8
> > drwxrwxr-x   2 noaaport noaaport     512 Nov  2 09:13 logs
> > drwxrwxr-x   2 noaaport noaaport     512 Oct 12 11:20 util
> >
> > /npraid/noaaport/ldm/decoders:
> > total 0
> >
> > /npraid/noaaport/ldm/etc:
> > total 18
> > -rw-rw-r--   1 noaaport noaaport    2325 Nov  2 09:20 ldmd.conf
> > -rw-rw-r--   1 noaaport noaaport    1605 Nov  1 15:35 netcheck.conf
> > -rw-rw-r--   1 noaaport noaaport    2826 Nov  1 16:02 pqact.conf
> > -rw-rw-r--   1 noaaport noaaport     862 Nov  1 15:41 scour.conf
> >
> > /npraid/noaaport/ldm/ldm-5.0.8:
> > total 44
> > -rw-rw-r--   1 noaaport noaaport    1847 Aug 11 17:27 COPYRIGHT
> > -rw-rw-r--   1 noaaport noaaport    1074 Aug 11 17:27 INSTALL
> > -rw-rw-r--   1 noaaport noaaport    3271 Aug 11 17:27 MANIFEST
> > -rw-rw-r--   1 noaaport noaaport    1472 Aug 11 17:27 README
> > -rw-rw-r--   1 noaaport noaaport    6129 Aug 11 17:27 RELEASE_NOTES
> > -rw-rw-r--   1 noaaport noaaport       6 Aug 11 17:27 VERSION
> > drwxrwxr-x   2 noaaport noaaport    1024 Oct 12 12:37 bin
> > drwxrwxr-x   2 noaaport noaaport     512 Aug 11 11:36 etc
> > drwxrwxr-x   2 noaaport noaaport     512 Aug 11 11:46 include
> > drwxrwxr-x   2 noaaport noaaport     512 Jul 14 12:59 lib
> > drwxrwxr-x   4 noaaport noaaport     512 Aug 11 11:46 man
> >
> > /npraid/noaaport/ldm/ldm-5.0.8/bin:
> > total 13998
> > -rw-rw-r--   1 noaaport noaaport    2599 Aug 11 17:27 Makefile.in
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 afos -> pqing
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 ddplus -> pqing
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 dds -> pqing
> > -rwxrwxr-x   1 noaaport noaaport  335872 Aug 11 17:27 feedme
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 feedtest -> pqing
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 hds -> pqing
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 hrs -> pqing
> > -rwxrwxr-x   1 noaaport noaaport   22152 Aug 11 17:27 hupsyslog
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 ids -> pqing
> > -rwxrwxr-x   1 noaaport noaaport   23364 Oct 13 15:44 ldmadmin
> > -rwxrwxr-x   1 noaaport noaaport   23317 Aug 11 17:27 ldmadmin.in
> > -rwxrwxr-x   1 noaaport noaaport   23617 Oct 13 15:44 ldmcheck
> > -rwxrwxr-x   1 noaaport noaaport   23617 Aug 11 17:27 ldmcheck.in
> > -rwxrwxr-x   1 noaaport noaaport    7177 Oct 13 15:44 ldmfail
> > -rwxrwxr-x   1 noaaport noaaport    7155 Aug 11 17:27 ldmfail.in
> > -rwxrwxr-x   1 noaaport noaaport  327680 Aug 11 17:27 ldmping
> > -rwxrwxr-x   1 noaaport noaaport    6809 Oct 13 15:44 ldmprods
> > -rwxrwxr-x   1 noaaport noaaport    6787 Aug 11 17:27 ldmprods.in
> > -rwxrwxr-x   1 noaaport noaaport  311296 Aug 11 17:27 ldmsend
> > -rwxrwxr-x   1 noaaport noaaport    4904 Oct 13 15:44 mailpqstats
> > -rwxrwxr-x   1 noaaport noaaport    4888 Aug 11 17:27 mailpqstats.in
> > -rwxrwxr-x   1 noaaport noaaport    9012 Oct 13 15:44 netcheck
> > -rwxrwxr-x   1 noaaport noaaport    8990 Aug 11 17:27 netcheck.in
> > -rwxrwxr-x   1 noaaport noaaport     518 Aug 11 17:27 newlog
> > -rwxrwxr-x   1 noaaport noaaport  327680 Aug 11 17:27 notifyme
> > lrwxrwxrwx   1 noaaport noaaport       5 Oct 13 15:22 pps -> pqing
> > -rwxrwxr-x   1 noaaport noaaport  557056 Aug 11 17:27 pqact
> > -rwxrwxr-x   1 noaaport noaaport  442368 Aug 11 17:27 pqbinstats
> > -rwxrwxr-x   1 noaaport noaaport  417792 Aug 11 17:27 pqcat
> > -rwxrwxr-x   1 noaaport noaaport  401408 Aug 11 17:27 pqcreate
> > -rwxrwxr-x   1 noaaport noaaport  409600 Aug 11 17:27 pqexpire
> > -rwxrwxr-x   1 noaaport noaaport  622592 Aug 11 17:27 pqing
> > -rwxrwxr-x   1 noaaport noaaport  425984 Aug 11 17:27 pqinsert
> > -rwxrwxr-x   1 noaaport noaaport  475136 Aug 11 17:27 pqsend
> > -rwxrwxr-x   1 noaaport noaaport  524288 Aug 11 17:27 pqsurf
> > -rwxrwxr-x   1 noaaport noaaport  499712 Aug 11 17:27 pqutil
> > -rwsrwsr-x   1 noaaport noaaport  753664 Aug 11 17:27 rpc.ldmd
> > -rwxrwxr-x   1 noaaport noaaport    3430 Aug 11 17:27 scour
> > -rwxrwxr-x   1 noaaport noaaport    1749 Oct 12 12:37 scriptconfig
> > -rwxrwxr-x   1 noaaport noaaport    7399 Oct 13 15:44 syscheck
> > -rwxrwxr-x   1 noaaport noaaport    7377 Aug 11 17:27 syscheck.in
> >
> > /npraid/noaaport/ldm/ldm-5.0.8/etc:
> > total 18
> > -rw-rw-r--   1 noaaport noaaport    2276 Aug 11 17:27 ldmd.conf
> > -rw-rw-r--   1 noaaport noaaport    1622 Aug 11 17:27 netcheck.conf
> > -rw-rw-r--   1 noaaport noaaport    2842 Aug 11 17:27 pqact.conf
> > -rw-rw-r--   1 noaaport noaaport     775 Aug 11 17:27 scour.conf
> >
> > /npraid/noaaport/ldm/ldm-5.0.8/include:
> > total 124
> > -rw-rw-r--   1 noaaport noaaport     480 Aug 11 17:27 alloc.h
> > -rw-rw-r--   1 noaaport noaaport    2314 Aug 11 17:27 alrm.h
> > -rw-rw-r--   1 noaaport noaaport    1414 Aug 11 17:27 atofeedt.h
> > -rw-rw-r--   1 noaaport noaaport     643 Aug 11 17:27 fbits.h
> > -rw-rw-r--   1 noaaport noaaport     537 Aug 11 17:27 fdnb.h
> > -rw-rw-r--   1 noaaport noaaport     766 Aug 11 17:27 fsStats.h
> > -rw-rw-r--   1 noaaport noaaport    5012 Aug 11 17:27 h_clnt.h
> > -rw-rw-r--   1 noaaport noaaport     977 Aug 11 17:27 inetutil.h
> > -rw-rw-r--   1 noaaport noaaport     235 Aug 11 17:27 lcm.h
> > -rw-rw-r--   1 noaaport noaaport   12669 Aug 11 17:27 ldm.h
> > -rw-rw-r--   1 noaaport noaaport    1870 Aug 11 17:27 ldm4.h
> > -rw-rw-r--   1 noaaport noaaport     484 Aug 11 17:27 ldm_xlen.h
> > -rw-rw-r--   1 noaaport noaaport    2339 Aug 11 17:27 ldmclnt.h
> > -rw-rw-r--   1 noaaport noaaport    1366 Aug 11 17:27 ldmconfig.h
> > -rw-rw-r--   1 noaaport noaaport    1316 Aug 11 17:27 ldmprint.h
> > -rw-rw-r--   1 noaaport noaaport    1391 Aug 11 17:27 md5.h
> > -rw-rw-r--   1 noaaport noaaport    1517 Aug 11 17:27 mkdirs_open.h
> > -rw-rw-r--   1 noaaport noaaport     562 Aug 11 17:27 paths.h
> > -rw-rw-r--   1 noaaport noaaport    6386 Aug 11 17:27 pq.h
> > -rw-rw-r--   1 noaaport noaaport    1312 Aug 11 17:27 prod_class.h
> > -rw-rw-r--   1 noaaport noaaport     227 Aug 11 17:27 setenv.h
> > -rw-rw-r--   1 noaaport noaaport    2725 Aug 11 17:27 timestamp.h
> > -rw-rw-r--   1 noaaport noaaport    4361 Aug 11 17:27 ulog.h
> >
> > /npraid/noaaport/ldm/ldm-5.0.8/lib:
> > total 2432
> > -rw-rw-r--   1 noaaport noaaport 1233884 Aug 11 17:27 libldm.a
> >
> > /npraid/noaaport/ldm/ldm-5.0.8/man:
> > total 14
> > drwxrwxr-x   2 noaaport noaaport     512 Jun  3 17:35 man1
> > drwxrwxr-x   2 noaaport noaaport     512 Jun  3 17:32 man3
> > -rw-r--r--   1 noaaport noaaport    1919 Aug 11 11:46 whatis
> > -rw-r--r--   1 noaaport noaaport    2794 Aug 11 17:27 windex
> >
> > /npraid/noaaport/ldm/ldm-5.0.8/man/man1:
> > total 214
> > -rw-rw-r--   1 noaaport noaaport    2312 Aug 11 17:27 feedme.1
> > -rw-rw-r--   1 noaaport noaaport    5940 Aug 11 17:27 ldmadmin.1
> > -rw-rw-r--   1 noaaport noaaport    5409 Aug 11 17:27 ldmd.1
> > -rw-rw-r--   1 noaaport noaaport    3602 Aug 11 17:27 ldmfail.1
> > -rw-rw-r--   1 noaaport noaaport    3605 Aug 11 17:27 ldmping.1
> > -rw-rw-r--   1 noaaport noaaport    3247 Aug 11 17:27 ldmprods.1
> > -rw-rw-r--   1 noaaport noaaport    2105 Aug 11 17:27 ldmsend.1
> > -rw-rw-r--   1 noaaport noaaport    2987 Aug 11 17:27 mailpqstats.1
> > -rw-rw-r--   1 noaaport noaaport    2493 Aug 11 17:27 netcheck.1
> > -rw-rw-r--   1 noaaport noaaport    2310 Aug 11 17:27 notifyme.1
> > -rw-rw-r--   1 noaaport noaaport   11441 Aug 11 17:27 pqact.1
> > -rw-rw-r--   1 noaaport noaaport    4764 Aug 11 17:27 pqbinstats.1
> > -rw-rw-r--   1 noaaport noaaport    5028 Aug 11 17:27 pqcat.1
> > -rw-rw-r--   1 noaaport noaaport    3221 Aug 11 17:27 pqcreate.1
> > -rw-rw-r--   1 noaaport noaaport    5671 Aug 11 17:27 pqexpire.1
> > -rw-rw-r--   1 noaaport noaaport    5822 Aug 11 17:27 pqing.1
> > -rw-rw-r--   1 noaaport noaaport    2160 Aug 11 17:27 pqinsert.1
> > -rw-rw-r--   1 noaaport noaaport    5170 Aug 11 17:27 pqsend.1
> > -rw-rw-r--   1 noaaport noaaport    7516 Aug 11 17:27 pqsurf.1
> > -rw-rw-r--   1 noaaport noaaport    5857 Aug 11 17:27 pqutil.1
> > lrwxrwxrwx   1 noaaport noaaport       6 Oct 13 15:22 rpc.ldmd.1 ->
> ldmd.1
> > -rw-rw-r--   1 noaaport noaaport    3835 Aug 11 17:27 scour.1
> > -rw-rw-r--   1 noaaport noaaport    1665 Aug 11 17:27 syscheck.1
> >
> > /npraid/noaaport/ldm/ldm-5.0.8/man/man3:
> > total 34
> > -rw-rw-r--   1 noaaport noaaport   10849 Aug 11 17:27 pq.3
> > -rw-rw-r--   1 noaaport noaaport    5348 Aug 11 17:27 ulog.3
> >
> > /npraid/noaaport/ldm/logs:
> > total 2
> > -rw-rw-r--   1 noaaport noaaport     110 Nov  2 09:19 1999110214.stats
> >
> > /npraid/noaaport/ldm/util:
> > total 0
> >
> >
> >
> 
> ===========================================================================
> ====
> Robb Kambic                      Unidata Program Center
> Software Engineer III                 Univ. Corp for Atmospheric Research
> address@hidden         WWW: http://www.unidata.ucar.edu/
> ===========================================================================
> ====
> 
> 
> 
> 

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================