Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot map "tcp" to protocol number - nagios
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Tue Apr 12, 2005 4:24 am    Post subject: Cannot map "tcp" to protocol number - nagios Reply with quote

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
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Apr 12, 2005 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Tue Apr 12, 2005 1:34 pm    Post subject: Reply with quote

thanks - probably need to populate the ldap server with these entries :)
_________________
http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue Apr 12, 2005 1:43 pm    Post subject: Reply with quote

Oh, LDAP - that'd be it then :D.
_________________
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum