| Anonymous | Login | Signup for a new account | 2013-05-19 15:05 EDT |
| Main | My View | View Issues | Change Log | Roadmap |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0000298 | [Nagios Plugins] Installation | major | always | 2012-03-14 19:33 | 2012-09-18 09:12 | ||
| Reporter | SethRobertson | View Status | public | ||||
| Assigned To | |||||||
| Priority | normal | Resolution | open | ||||
| Status | closed | ||||||
| Summary | 0000298: configure script not compatible with newer version of net-tools/ifconfig | ||||||
| Description |
The configure script parses the output of ifconfig to find first_ip. However, a newer version of ifconfig has a different output syntax which causes first_ip to be empty. (first_ip is subsequently used to try to probe PING_COMMAND which fails, causing check_ping to fail). |
||||||
| Additional Information |
FAILING SYSTEM: ----------------------------------- ifconfig --version net-tools 1.60_p201111202031570500 ifconfig 1.42 (2001-04-13) eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 204.52.227.15 netmask 255.255.255.224 broadcast 204.52.227.159 inet6 fe80::21d:60ff:fecf:3213 prefixlen 64 scopeid 0x20<link> RX packets 48697927 bytes 48259662481 (44.9 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 35395890 bytes 22321875058 (20.7 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 17 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 172.25.111.5 netmask 255.255.255.252 broadcast 172.25.111.59 inet6 fe80::21d:60ff:fecf:30d5 prefixlen 64 scopeid 0x20<link> ether 00:1d:60:cf:30:d5 txqueuelen 1000 (Ethernet) RX packets 15610212 bytes 9829520165 (9.1 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 9213019 bytes 628567083 (599.4 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16 base 0xec00 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 metric 1 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 126050249 bytes 344817663604 (321.1 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 126050249 bytes 344817663604 (321.1 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ------------------------------------------------------------------- WORKING SYSTEM ----------------------------------- ifconfig --version net-tools 1.60_p20110409135728 ifconfig 1.42 (2001-04-13) |
||||||
| Tags | No tags attached. | ||||||
| OS | |||||||
| OS Version | |||||||
| Attached Files | |||||||
|
|
|||||||
Notes |
|
|
(0000378) SethRobertson (reporter) 2012-03-14 19:43 |
Gaa, it submitted before I was done. Stupid forms. This was using nagios-plugins-1.4.15 running on Gentoo. The following command would seem to work on both the new and old output syntax: /sbin/ifconfig | egrep "inet (addr:)?" | sed -n -r -e 's/ (Bcast|netmask).*$//' -e 's/^\s*inet (addr:)?//' -e '1p' One further suggestion (untested) is to simply use 127.0.0.1 if first_ip is undefined add the following line to configure.ac immediately after the first_ip definition attempt. : ${first_ip:=127.0.0.1} These are the working ifconfig output. eth0 Link encap:Ethernet HWaddr 00:25:22:fd:c1:20 inet addr:204.52.227.12 Bcast:204.52.227.255 Mask:255.255.255.224 inet6 addr: fe80::225:22ff:fefd:c120/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:21482175 errors:0 dropped:0 overruns:0 frame:0 TX packets:40645487 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2750581366 (2.5 GiB) TX bytes:45839132246 (42.6 GiB) Interrupt:83 Base address:0xe000 eth1 Link encap:Ethernet HWaddr 00:25:22:fd:c1:17 inet addr:192.168.1.25 Bcast:192.168.1.255 Mask:255.255.255.252 inet6 addr: fe80::25:2f:fefd:c117/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:193824 errors:0 dropped:0 overruns:0 frame:0 TX packets:318462 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:21038697 (20.0 MiB) TX bytes:148442291 (141.5 MiB) Interrupt:84 Base address:0xa000 |
|
(0000515) calestyo (reporter) 2012-07-31 18:44 |
Forwarded to: https://sourceforge.net/tracker/?func=detail&aid=3552818&group_id=29880&atid=397597 [^] |
| Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |