problems epn with 3.0a1

Peter Ringe Peter.Ringe at web.de
Sat Apr 14 15:30:26 CEST 2007


Hi Ethan, 

Today I checked again the epn-behavier on RHEL4, 
and saw, that the behavier didn't change too much. 

Last time I reported, I had the feeling that the 
first 4 or 8 Byte of the Plugin-Output are simply 
overwritten, but I didn't mention. Actually there is 
some new output, since You are writing the plugin-results 
into a temp. file before processing it inside nagios.
Even in this files you can see: the pointers seems to be ok, 
the bytes are there but overwritten!






Again some examples:

the following ist from epn-leave-msgs.log, everything looks fine, especially 
the content of $plugin_output, written by line 296 of p1.pl: 
print LH qq($ts run_package: "$filename $plugin_args" returning ($res, "$plugin_output").\n)



Sat Apr 14 10:30:17 2007 eval_file: /usr/local/nagios/libexec/WL/check_snmp_cisco_ifstatus already successfully compiled and file has not changed; skipping compilation.
Sat Apr 14 10:30:17 2007 run_package: "/usr/local/nagios/libexec/WL/check_snmp_cisco_ifstatus -H 10.33.255.40 -C readcommunity -i FastEthernet0/16 -w 30000000 -c 40000000 -b wlswi6d -s IF_16" returning (0, "IFStatus is OK - INTERFACE DOWN:  - FastEthernet0/16 (ethernet) - In: 0 Mbps, Out: 0 Mbps, Limit: 10 Mbps|in=0;0;30000000;40000000;10000000 out=0;0;30000000;40000000;10000000 errors=0").




from service-perfdata file (written by perfdataprocessing inside nagios)
You can see, that exactly the first 8 Byte of the plugin output seems 
to be overwritten


[SERVICEPERFDATA]       1176539427      wlswi6d IF_16   0.393   0.033  
PP^M    -^L       is OK - INTERFACE DOWN:  - FastEthernet0/16 (ethernet) - In: 0 Mbps, Out: 0 Mbps, Limit: 10

[]# od -a -t x1 

13500   [   S   E   R   V   I   C   E   P   E   R   F   D   A   T   A
        5b 53 45 52 56 49 43 45 50 45 52 46 44 41 54 41
13520   ]  ht   1   1   7   6   5   3   9   4   2   7  ht   w   l   s
        5d 09 31 31 37 36 35 33 39 34 32 37 09 77 6c 73
13540   w   i   6   d  ht   I   F   _   1   6  ht   0   .   3   9   3
        77 69 36 64 09 49 46 5f 31 36 09 30 2e 33 39 33
13560  ht   0   .   0   3   3  ht   P   P  cr  ht dle   -  ff  ht  sp
        09 30 2e 30 33 33 09 50 50 0d 09 90 ad 0c 09 20
13600   i   s  sp   O   K  sp   -  sp   I   N   T   E   R   F   A   C
        69 73 20 4f 4b 20 2d 20 49 4e 54 45 52 46 41 43
13620   E  sp   D   O   W   N   :  sp  sp   -  sp   F   a   s   t   E
        45 20 44 4f 57 4e 3a 20 20 2d 20 46 61 73 74 45
13640   t   h   e   r   n   e   t   0   /   1   6  sp   (   e   t   h
        74 68 65 72 6e 65 74 30 2f 31 36 20 28 65 74 68
13660   e   r   n   e   t   )  sp   -  sp   I   n   :  sp   0  sp   M
        65 72 6e 65 74 29 20 2d 20 49 6e 3a 20 30 20 4d
13700   b   p   s   ,  sp   O   u   t   :  sp   0  sp   M   b   p   s
        62 70 73 2c 20 4f 75 74 3a 20 30 20 4d 62 70 73
13720   ,  sp   L   i   m   i   t   :  sp   1   0  sp   M   b   p   s
        2c 20 4c 69 6d 69 74 3a 20 31 30 20 4d 62 70 73
13740  ht   i   n   =   0   ;   0   ;   3   0   0   0   0   0   0   0
        09 69 6e 3d 30 3b 30 3b 33 30 30 30 30 30 30 30
13760   ;   4   0   0   0   0   0   0   0   ;   1   0   0   0   0   0
        3b 34 30 30 30 30 30 30 30 3b 31 30 30 30 30 30
14000   0   0  sp   o   u   t   =   0   ;   0   ;   3   0   0   0   0
        30 30 20 6f 75 74 3d 30 3b 30 3b 33 30 30 30 30
14020   0   0   0   ;   4   0   0   0   0   0   0   0   ;   1   0   0
        30 30 30 3b 34 30 30 30 30 30 30 30 3b 31 30 30
14040   0   0   0   0   0  sp   e   r   r   o   r   s   =   0  nl  [
        30 30 30 30 30 20 65 72 72 6f 72 73 3d 30 0a 5b




I just try to catch the corresponding temporary file : 



[]# more nagiosRLQ9Jf
PP      -^L      is OK - INTERFACE DOWN:  - FastEthernet0/16 (ethernet)
- In: 0 Mbps, Out: 0 Mbps, Limit: 10
Mbps|in=0;0;30000000;40000000;10000000 out=0;0;30000000;40000000;100000
00 errors=0



[]# od -a -t x1 nagiosRLQ9Jf
00000   P   P  cr  ht dle   -  ff  ht  sp   i   s  sp   O   K  sp   -
        50 50 0d 09 90 ad 0c 09 20 69 73 20 4f 4b 20 2d
00020  sp   I   N   T   E   R   F   A   C   E  sp   D   O   W   N   :
        20 49 4e 54 45 52 46 41 43 45 20 44 4f 57 4e 3a
00040  sp  sp   -  sp   F   a   s   t   E   t   h   e   r   n   e   t
        20 20 2d 20 46 61 73 74 45 74 68 65 72 6e 65 74
00060   0   /   1   6  sp   (   e   t   h   e   r   n   e   t   )  sp
        30 2f 31 36 20 28 65 74 68 65 72 6e 65 74 29 20
00100   -  sp   I   n   :  sp   0  sp   M   b   p   s   ,  sp   O   u
        2d 20 49 6e 3a 20 30 20 4d 62 70 73 2c 20 4f 75
00120   t   :  sp   0  sp   M   b   p   s   ,  sp   L   i   m   i   t
        74 3a 20 30 20 4d 62 70 73 2c 20 4c 69 6d 69 74
00140   :  sp   1   0  sp   M   b   p   s   |   i   n   =   0   ;   0
        3a 20 31 30 20 4d 62 70 73 7c 69 6e 3d 30 3b 30
00160   ;   3   0   0   0   0   0   0   0   ;   4   0   0   0   0   0
        3b 33 30 30 30 30 30 30 30 3b 34 30 30 30 30 30
00200   0   0   ;   1   0   0   0   0   0   0   0  sp   o   u   t   =
        30 30 3b 31 30 30 30 30 30 30 30 20 6f 75 74 3d
00220   0   ;   0   ;   3   0   0   0   0   0   0   0   ;   4   0   0
        30 3b 30 3b 33 30 30 30 30 30 30 30 3b 34 30 30
00240   0   0   0   0   0   ;   1   0   0   0   0   0   0   0  sp   e
        30 30 30 30 30 3b 31 30 30 30 30 30 30 30 20 65
00260   r   r   o   r   s   =   0
        72 72 6f 72 73 3d 30


Even here, you can see that the first 8  byte are damaged!







Just another temp-file, where only 4 Bytes seems to be overwritten
(should start with "check_ergebnisdienst ...."
epn-leave:

Sat Apr 14 10:31:47 2007 eval_file:
/usr/local/nagios/libexec/WL/check_ergebnisdienst.pl already successfully compiled and file has not changed; skipping  compilation.
Sat Apr 14 10:31:47 2007 run_package: /usr/local/nagios/libexec/WL/check_ergebnisdienst.pl -H ergebnisse.westlotto.de  --gruppe ZahlenUndQuoten --spielart LOTTO --client wnhtml -I 10.33.3.9 -p 8888" returning (0, "check_ergebnisdienst OK - LOTTO: GEZ Mittwoch, 11.04").

[]# od -a -t x1 nagios3dADUC
00000  sp  cr  cr  ht   k   _   e   r   g   e   b   n   i   s   d   i
        a0 0d 0d 09 6b 5f 65 72 67 65 62 6e 69 73 64 69
00020   e   n   s   t  sp   O   K  sp   -  sp   L   O   T   T   O   :
        65 6e 73 74 20 4f 4b 20 2d 20 4c 4f 54 54 4f 3a
00040  sp   G   E   Z  sp   M   i   t   t   w   o   c   h   ,  sp   1
        20 47 45 5a 20 4d 69 74 74 77 6f 63 68 2c 20 31
00060   1   .   0   4
        31 2e 30 34
00064


hope that helps, 


Peter







-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list