Re: [Nagios-devel] problems epn with 3.0a1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] problems epn with 3.0a1

Post by Guest »

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


...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked