RE: problems with np-setup npdistd (new net-policy version)

"Ramon Tarruella" <[email protected]> Fri, 9 Apr 2004 01:43:37 -0400
Newsgroups gmane.network.net-policy.user
Message-ID <[email protected]>
1) So ps shows it missing, right?  Then it certainly died.

yes: ps -ef | grep np-distd : shows nothing

2) What version of all the software (opensnmp and net-policy) are you
running now?  You were considering multiple things last time I checked.

Newest CVS version, from HEAD tag:

net-snmp: cvs from 03-31-2004
open-snmp: cvs from 04-04-2004
net-policy: cvs from 07-04-2004

I give up with net-policy-before-mayor-dbchange, I was receiving
segmentation faylts problem everytime I ran np-distd to distribute the
policies, so I decided to test the new version of all the source codes:
net-snmp, open-snmp net-policy

3) here are some test I ran so you can check, I notice that the np-distd
deamon stay like frozen, and when the system try to stop it, it has to kill
it, forcing it, not stopping it normally, check this:

[[email protected] root]# np-distd -u root -p administrador &
[1] 4707
[[email protected] root]# np-datad -u root -p administrador &
[2] 4714
[[email protected] root]# np-collectd-perl -u root -p administrador &
[3] 4717
[[email protected] root]# service net-policy status
Se esta ejecutando np-datad (pid 4714)...
Se esta ejecutando np-distd (pid 4707)...
Se esta ejecutando np-collectd-perl (pid 4717)...
[[email protected] root]# service net-policy stop
Shutting down np-datad:                                    [  OK  ]
Shutting down np-distd:                                    [  OK  ]
Shutting down np-collectd-perl:                            [  OK  ]
[1]   Terminado (killed)      np-distd -u root -p administrador
[2]-  Done                    np-datad -u root -p administrador
[3]+  Done                    np-collectd-perl -u root -p administrador
[[email protected] root]# gdb np-distd
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) r -u root -p administrador -time
Starting program: /usr/local/sbin/np-distd -u root -p administrador -time
[New Thread 1078427360 (LWP 4760)]
[New Thread 1087618240 (LWP 4768)]
ApplyChangePolcy Processing time: '0' : '4728' [secs:usecs].
[New Thread 1096006720 (LWP 4769)]
[New Thread 1104395200 (LWP 4770)]
secs:1081488438 usecs:508015
NET: constructor
secs:1081488438 usecs:511356
NET: init_socket: creating socket on port: 0
secs:1081488438 usecs:576866
NET: jinit_socket: ust bound socket to port = 0, sd = 6
[New Thread 1116941120 (LWP 4771)]
secs:1081488438 usecs:647893
NET: net_recv_loop
Waited for SNMP messages : '10' : '68698' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '1726' [secs:usecs].
Waited for SNMP messages : '10' : '8130' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '2084' [secs:usecs].
Waited for SNMP messages : '10' : '7728' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '1793' [secs:usecs].
Waited for SNMP messages : '10' : '8166' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '2161' [secs:usecs].
Waited for SNMP messages : '10' : '7709' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '1693' [secs:usecs].
Waited for SNMP messages : '10' : '8164' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '1728' [secs:usecs].
Waited for SNMP messages : '10' : '8166' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '3302' [secs:usecs].
Waited for SNMP messages : '10' : '6622' [secs:usecs].
ApplyChangePolcy Processing time: '0' : '20027' [secs:usecs].
Waited for SNMP messages : '10' : '9833' [secs:usecs].

caught SIGINT, exiting


Program exited normally.


Note the this last test I had to stop it with ctrl+C, it never ends, so in
some way the deamon stay in a loop infinity or something like that.

Please let me know what else can I run to discover more things, so you can
help me discovering what's happening

Wait for your answer

Thanks

Ramon Tarruella


-----Mensaje original-----
De: net-policy-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:net-policy-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]En nombre de Wes
Hardaker
Enviado el: viernes, 09 de abril de 2004 0:45
Para: net-policy-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Asunto: Re: problems with np-setup npdistd (new net-policy version)


>>>>> On Fri, 9 Apr 2004 00:22:06 -0400, "Ramon Tarruella"
<[email protected]> said:

Ramon> Wes I don't know if the deamon np-distd dies, it's for sure not
Ramon> running, and don't understand why, it says it's blocked that's
Ramon> the message. I just finish the install and received this
Ramon> message, any idea what's the problem, what can I check to
Ramon> discover the problem?

So ps shows it missing, right?  Then it certainly died.

You may have to run it in the foreground instead of using the service
scripts and see if it dies and you can get a core file.

What version of all the software (opensnmp and net-policy) are you
running now?  You were considering multiple things last time I checked.


--
Wes Hardaker
Sparta


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Net-policy-users mailing list
Net-policy-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/net-policy-users




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click