./check_arping.pl help needed


#1

I’m trying to use this plugin to monitor some windows stations in a LAN that have firewalls and do not reply to the classic ICMP echo request. I installed the Net::Arping utility, perl is version 5.8.6, sistem is FC4 with 2.6.15-1.1830_FC4 kernel. I get this when I try to use the plugin from the console (as root):

[root@support plugins]# ./check_arping.pl -I eth0 -H 10.0.0.1
*** buffer overflow detected ***: /usr/bin/perl terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x572c45]
/lib/libc.so.6(__vsprintf_chk+0x0)[0x572510]
/lib/libc.so.6(_IO_default_xsputn+0x97)[0x4f5858]
/lib/libc.so.6(_IO_vfprintf+0xd92)[0x4d0894]
/lib/libc.so.6(__vsprintf_chk+0xa1)[0x5725b1]
/lib/libc.so.6(__sprintf_chk+0x30)[0x572504]
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/Net/Arping/Arping.so[0x177685]
/usr/lib/libpcap.so.0.8.3[0x1149d0]
/usr/lib/libpcap.so.0.8.3(pcap_loop+0x6e)[0x1161f0]
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/Net/Arping/Arping.so(XS_Net__Arping_send_arp+0x720)[0x176f3e]
/usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so(Perl_pp_entersub+0x3a5)[0x984bcc]
/usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so(Perl_runops_debug+0x141)[0x966b01]
/usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so(perl_run+0x445)[0x919f51]
/usr/bin/perl(main+0x130)[0x80493f4]
/lib/libc.so.6(__libc_start_main+0xdf)[0x4a9d5f]
/usr/bin/perl[0x8049241]
======= Memory map: ========
00111000-00135000 r-xp 00000000 03:02 4679381 /usr/lib/libpcap.so.0.8.3
00135000-00136000 rwxp 00024000 03:02 4679381 /usr/lib/libpcap.so.0.8.3
00175000-00179000 r-xp 00000000 03:02 167890 /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/Net/Arping/Arping.so
00179000-0017a000 rwxp 00004000 03:02 167890 /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/Net/Arping/Arping.so
00477000-00491000 r-xp 00000000 03:02 2056322 /lib/ld-2.3.5.so
00491000-00492000 r-xp 00019000 03:02 2056322 /lib/ld-2.3.5.so
00492000-00493000 rwxp 0001a000 03:02 2056322 /lib/ld-2.3.5.so
00495000-005b8000 r-xp 00000000 03:02 2056370 /lib/libc-2.3.5.so
005b8000-005ba000 r-xp 00123000 03:02 2056370 /lib/libc-2.3.5.so
005ba000-005bc000 rwxp 00125000 03:02 2056370 /lib/libc-2.3.5.so
005bc000-005be000 rwxp 005bc000 00:00 0
005c0000-005c2000 r-xp 00000000 03:02 2056433 /lib/libdl-2.3.5.so
005c2000-005c3000 r-xp 00001000 03:02 2056433 /lib/libdl-2.3.5.so
005c3000-005c4000 rwxp 00002000 03:02 2056433 /lib/libdl-2.3.5.so
005c6000-005e9000 r-xp 00000000 03:02 2056456 /lib/libm-2.3.5.so
005e9000-005ea000 r-xp 00022000 03:02 2056456 /lib/libm-2.3.5.so
005ea000-005eb000 rwxp 00023000 03:02 2056456 /lib/libm-2.3.5.so
00602000-00611000 r-xp 00000000 03:02 2056465 /lib/libresolv-2.3.5.so
00611000-00612000 r-xp 0000e000 03:02 2056465 /lib/libresolv-2.3.5.so
00612000-00613000 rwxp 0000f000 03:02 2056465 /lib/libresolv-2.3.5.so
00613000-00615000 rwxp 00613000 00:00 0
0061c000-00621000 r-xp 00000000 03:02 2056487 /lib/libcrypt-2.3.5.so
00621000-00622000 r-xp 00004000 03:02 2056487 /lib/libcrypt-2.3.5.so
00622000-00623000 rwxp 00005000 03:02 2056487 /lib/libcrypt-2.3.5.so
00623000-0064a000 rwxp 00623000 00:00 0
0064c000-0065e000 r-xp 00000000 03:02 2056462 /lib/libnsl-2.3.5.so
0065e000-0065f000 r-xp 00011000 03:02 2056462 /lib/libnsl-2.3.5.so
0065f000-00660000 rwxp 00012000 03:02 2056462 /lib/libnsl-2.3.5.so
00660000-00662000 rwxp 00660000 00:00 0
00773000-00781000 r-xp 00000000 03:02 2056373 /lib/libpthread-2.3.5.so
00781000-00782000 r-xp 0000d000 03:02 2056373 /lib/libpthread-2.3.5.so
00782000-00783000 rwxp 0000e000 03:02 2056373 /lib/libpthread-2.3.5.so
00783000-00785000 rwxp 00783000 00:00 0
00879000-00882000 r-xp 00000000 03:02 2056461 /lib/libgcc_s-4.0.2-20051126.so.1
00882000-00883000 rwxp 00009000 03:02 2056461 /lib/libgcc_s-4.0.2-20051126.so.1
008ed000-008ef000 r-xp 00000000 03:02 2056337 /lib/libutil-2.3.5.so
008ef000-008f0000 r-xp 00001000 03:02 2056337 /lib/libutil-2.3.5.so
008f0000-008f1000 rwxp 00002000 03:02 2056337 /lib/libutil-2.3.5.so
008f3000-00a31000 r-xp 00000000 03:02 37345 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so
00a31000-00a3c000 rwxp 0013d000 03:02 37345 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so
00a3c000-00a3e000 rwxp 00a3c000 00:00 0
00a5a000-00a78000 r-xp 00000000 03:02 65420 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/POSIX/POSIX.so
00a78000-00a79000 rwxp 0001d000 03:02 65420 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/POSIX/POSIX.so
00b81000-00b82000 r-xp 00b81000 00:00 0 [vdso]
08048000-0804b000 r-xp 00000000 03:02 4674600 /usr/bin/perl
0804b000-0804d000 rwxp 00002000 03:02 4674600 /usr/bin/perl
08193000-08366000 rwxp 08193000 00:00 0 [heap]
b7d60000-b7d81000 rwxp b7d60000 00:00 0
b7d81000-b7dae000 r-xp 01077000 03:02 4679438 /usr/lib/locale/locale-archive
b7dae000-b7fae000 r-xp 00000000 03:02 4679438 /usr/lib/locale/locale-archive
b7fae000-b7fb1000 rwxp b7fae000 00:00 0
b7fb3000-b7fb4000 r-xp 010e8000 03:02 4679438 /usr/lib/locale/locale-archive
b7fb4000-b7fba000 r-xp 0106e000 03:02 4679438 /usr/lib/locale/locale-archive
b7fba000-b7fbb000 rwxp b7fba000 00:00 0
bfea5000-bfeb9000 rwxp bfea5000 00:00 0 [stack]
bfeb9000-bfebb000 rw-p bfeb9000 00:00 0
Aborted

If anyone can be of assistence … pls reply. Thanks in advance.

the plugin is active in nagios also … the status there being:

Current Status:
UNKNOWN
Status Information: **ePN /usr/lib/nagios/plugins/./check_arping.pl: “libnet_open_link_interface failed: socket: Operation not permitted at /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/Net/Arping.pm line 96,”.