View previous topic :: View next topic |
Author |
Message |
mxc Guru
Joined: 05 Mar 2003 Posts: 442 Location: South Africa
|
Posted: Tue Apr 12, 2005 4:24 am Post subject: Cannot map "tcp" to protocol number - nagios |
|
|
Hi all,
I have installed nagios and set it up for two servers. The ping functionality works great but the services monitoring just reports
Quote: | Cannot map "tcp" to protocol number | for all services. I assume this has something to do with looking up the service number presumably in the /etc/services file. The services are stock standard ie http and smtp. I am using ldap to store servive info and this is lookedup succxessfully,via nssswitch, by postifx. Not sure why nagios cant find this info.
any help is appreciated.
thanks _________________ http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 12, 2005 1:26 pm Post subject: |
|
|
It's trying to match tcp to the number 6 in /etc/protocols. Make sure /etc/protocols includes these lines: Code: | ip 0 IP # internet protocol, pseudo protocol number
icmp 1 ICMP # internet control message protocol
tcp 6 TCP # transmission control protocol
udp 17 UDP # user datagram protocol
ipv6 41 IPv6 # IPv6
ipv6-route 43 IPv6-Route # Routing Header for IPv6
ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6
gre 47 GRE # General Routing Encapsulation
ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6
ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6
ipv6-opts 60 IPv6-Opts # Destination Options for IPv6 |
_________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
mxc Guru
Joined: 05 Mar 2003 Posts: 442 Location: South Africa
|
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Apr 12, 2005 1:43 pm Post subject: |
|
|
Oh, LDAP - that'd be it then . _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
|