LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-18-2007, 02:01 PM   #1
hondo
Member
 
Registered: Jul 2005
Location: norway
Posts: 198

Rep: Reputation: 33
nagios not detecting the router


Hi

I have nagios all setup and it works fine. It displays the status of all servers i have added. However, nagios should be able to check routers as well, but when i add a router i always see the router in a "PENDING" status. I have checked multiple times that the IP-address to the router is correct in the nagios config and i have a simple "check-host-alive" plugin to just check that the router is up and running:

This is the definition of the router in the hosts.cfg file:
Quote:
define host{
host_name router
alias router #1
address 192.168.0.1
check_command check-host-alive
max_check_attempts 2
check_period 24x7
contact_groups admins
notification_interval 2
notification_period 24x7
notification_options d,u,r
contact_groups admins
}
I have checked that the machine nagios is running on that it can ping the router, so that not the problem either. Does someone know why nagios is not checking/detecting the router?
 
Old 05-18-2007, 02:06 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The nagios default plugins actually use the NRPE/nsclient ports to check when they "ping" they aren't actually "pinging" the way the ping does. You should just set your Nagios check_commands.cfg to use the real "ping" command rather than the plugin. This way it is doing a true icmp ping.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Detecting multiple computers on a router? M$ISBS Linux - Networking 2 12-17-2006 12:05 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
nagios mhmfasy Linux - Networking 7 02-20-2006 05:34 PM
Porlbem detecting router three feet away, but can connect to one down the street seanr Linux - Wireless Networking 6 09-22-2005 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration