Re: Net-SNMP 5.6.rc2 available for testing
Claus Klein <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
OK, I fond the error, with this test, the agent terminates with error
and can't be killed!
++ GOOD 'found atleastone copies of '\''shutting down'\'' in output (/
tmp/snmp-test-T071com2sec6_simple-3760/snmpd.log); needed one'
+++ expr 33 + 1
++ testnum=34
++ echo 'ok 34 - found atleastone copies of '\''shutting down'\'' in
output (/tmp/snmp-test-T071com2sec6_simple-3760/snmpd.log); needed one'
++ echo '# ok 34 - found atleastone copies of '\''shutting down'\'' in
output (/tmp/snmp-test-T071com2sec6_simple-3760/snmpd.log); needed one'
++ return 1
++ SNMP_SLEEP=1
++ OK_TO_SAVE_RESULT=0
++ snmp_last_test_result=1
++ '[' 2 -gt 1 ']'
++ echo 'Agent Output:'
++ echo '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-= [stdout]'
++ cat /tmp/snmp-test-T071com2sec6_simple-3760/snmpd.log.stdout
++ echo '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-= [logfile]'
++ cat /tmp/snmp-test-T071com2sec6_simple-3760/snmpd.log
++ echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
++ '[' '' = 1 ']'
++ for pfile in '$SNMP_TMPDIR/*pid*'
++ '[' x/tmp/snmp-test-T071com2sec6_simple-3760/snmpd.pid = 'x/tmp/
snmp-test-T071com2sec6_simple-3760/*pid*' ']'
++ '[' '!' -f /tmp/snmp-test-T071com2sec6_simple-3760/snmpd.pid ']'
+++ cat /tmp/snmp-test-T071com2sec6_simple-3760/snmpd.pid
++ pid=3823
++ '[' xdarwin9.0 = xmsys ']'
++ ps -e
++ egrep '^[ ]*3823[ ]+'
++ '[' xdarwin9.0 '!=' xmsys ']'
++ SNMP_SAVE_TMPDIR=yes
++ '[' xdarwin9.0 = xmsys ']'
++ COMMAND='kill -9 3823'
++ echo kill -9 3823 '(/tmp/snmp-test-T071com2sec6_simple-3760/
snmpd.pid)'
++ kill -9 3823
++ return_value=1
++ GOOD 'got to FINISHED' <<<<<<<<<<<<<<<<<<<<<<<
+++ expr 34 + 1
++ testnum=35
++ echo 'ok 35 - got to FINISHED'
++ echo '# ok 35 - got to FINISHED'
++ echo 1..35
++ '[' x2 '!=' x0 ']'
++ '[' -s core ']'
++ echo ...FAIL
++ exit 1
####################################
I chaned the script and it works fine:
STARTAGENT
SAVECHECKAGENT() {
CHECKAGENT "$@"
# if [ "x$return_value" != "x0" ] ; then <<<<<<<<<<<<<<<<old
if [ "x$return_value" = "x0" ] ; then <<<<<<<<<<<<<<<<new
FINISHED
fi
}
On 08.09.2010, at 15:49, Wes Hardaker wrote:
>>>>>> On Wed, 8 Sep 2010 06:27:59 +0200, Claus Klein <[email protected]
>>>>>> > said:
>
> CK> I have IPv6 on my macbook. At leased localhost communication works
> CK> with IPv6.
>
> Well, then the next thing to do would be to package up the /tmp/snmp*
> directories and send them to me so I can look through them (they don't
> contain any private information and are safe to ship; though do send
> them directly to me instead of flooding the list with a big tar
> file :-)
> --
> Wes Hardaker
> Cobham Analytic Solutions
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users