Nagios 3.0 - problem with parents


#1

Hello,

I’ve got strange problem with controlling remote hosts in my network job.
Here is a problem:

gateway
(VPN)------------->INTERNET----------->remote router------------->terminal1 Access_Point1,2,3
(10.0.0.2)>>>>>>>>>>>>>>>>>>>>(external IP) >>>>>>> (10.6.0.199), (10.6.0.188),(10.6.0.233)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<( 89.xx.xx.x:evil:

Nagios is behind router with gateway 10.0.0.2
Above I typed remote hosts (router, terminal1, all Access Point) which I want to monitor.
Here are objectets from hosts.cfg file:

define host {

host_name router_warszawa
alias Router_Ilmet
address 89.xx.xx.xx.xx
parents router_centrala // name of gateway 10.0.0.2
hostgroups routery
check_command check-host-alive
max_check_attempts 10
check_interval 20
check_period 24x7
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options d,r,u,f
notifications_enabled 0
}

define host {

host_name terminal_warszawa
alias Terminal-Ilmet
address 10.6.0.6
parents router_warszawa // name of router with IP 89.xx.xx
hostgroups Serwerownia
check_command check-host-alive
max_check_attempts 10
check_interval 20
check_period 24x7
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options d,r,u,f
notifications_enabled 0
}

define host {

host_name AP2_warszawa
alias AP2-Ilmet
display_name AP2-Ilmet
address 10.6.0.233 // name of Access Point
parents router_warszawa
hostgroups punkty_dostepu
check_command check-host-alive
max_check_attempts 10
check_interval 20
check_period 24x7
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options d,r,u,f
notifications_enabled 0
}

And here is a result:

All of these remote hosts above are stated as DOWN
except of host “router_warszawa” which is UP.

What should I do to make rest of remote hosts visible for Nagios?
Should I make some port forwarding on “echo” or something like that?
Router is Linksys BEFSX41 and version of Nagios is 3.0

Kindly please for help,
Best regards


#2

I also cannot get any data back from my Linksys (WRT54GS) router… the ping is successful, but no data back from host:

Jnet_Router

PING

OK 	01-23-2009 12:19:38 	0d 1h 16m 50s 	1/3 	PING OK - Packet loss = 0%, RTA = 0.86 ms 

Port 1 Link Status

UNKNOWN 	01-23-2009 12:52:01 	0d 0h 38m 57s 	3/3 	SNMP problem - No data received from host

#3

@ Obserwator
Can you ping those routers from Nagios box?
If not, then it is a network problem, maybe access to those routers is disabled…

@ catfishlee
Probably you have to enable SNMP access on the router and set the communities and use them in snmp queries.


#4

[quote=“Albin”]@ Obserwator
Can you ping those routers from Nagios box?
If not, then it is a network problem, maybe access to those routers is disabled…

@ catfishlee
Probably you have to enable SNMP access on the router and set the communities and use them in snmp queries.[/quote]

Yes, the Ping is the ONLY thing that does work!
I’ve used SnmpGet & SnmpWalk… but “No data received from host” is all I ever get.
I’ve talked to LinkSys online Chat 3 times but their not much help, although they try…
There is no place in the GUI to enable or disable Snmp access
I wish I could do this from a command line… but cannot connect to the router.
thanks for looking at this…


below is the Ping stats:

Host Status:
UP
(for 0d 0h 10m 12s)
Status Information: PING OK - Packet loss = 0%, RTA = 0.96 ms
Performance Data: rta=0.961000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
Current Attempt: 1/10 (HARD state)
Last Check Time: 01-28-2009 08:57:59
Check Type: ACTIVE
Check Latency / Duration: 0.114 / 4.007 seconds
Next Scheduled Active Check: 01-28-2009 09:03:09
Last State Change: 01-28-2009 08:52:59
Last Notification: 01-28-2009 08:52:59 (notification 0)
Is This Host Flapping?
NO
(9.34% state change)
In Scheduled Downtime?
NO
Last Update: 01-28-2009 09:03:09 ( 0d 0h 0m 2s ago)


below is the Uptime Status:

Current Status:
UNKNOWN
(for 3d 11h 52m 4s)
Status Information: SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m RFC1213-MIB -v 1 [authpriv] 192.168.1.1:161 ifOperStatus.1
Performance Data:
Current Attempt: 3/3 (HARD state)
Last Check Time: 01-28-2009 08:58:04
Check Type: ACTIVE
Check Latency / Duration: 0.223 / 6.033 seconds
Next Scheduled Check: 01-28-2009 09:08:04
Last State Change: 01-24-2009 21:12:49
Last Notification: 01-28-2009 08:58:19 (notification 33)
Is This Service Flapping?
NO
(0.00% state change)
In Scheduled Downtime?
NO
Last Update: 01-28-2009 09:04:49 ( 0d 0h 0m 4s ago)


below is the Port 1 Link Status:

Current Status:
UNKNOWN
(for 3d 11h 53m 26s)
Status Information: SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m RFC1213-MIB -v 1 [authpriv] 192.168.1.1:161 ifOperStatus.1
Performance Data:
Current Attempt: 3/3 (HARD state)
Last Check Time: 01-28-2009 08:58:04
Check Type: ACTIVE
Check Latency / Duration: 0.223 / 6.033 seconds
Next Scheduled Check: 01-28-2009 09:08:04
Last State Change: 01-24-2009 21:12:49
Last Notification: 01-28-2009 08:58:19 (notification 33)
Is This Service Flapping?
NO
(0.00% state change)
In Scheduled Downtime?
NO
Last Update: 01-28-2009 09:06:09 ( 0d 0h 0m 6s ago)


#5

Linksys WRT54GS doesn’t support SNMP:
forums.linksys.com/linksys/board … d.id=57509


#6

[quote=“Albin”]Linksys WRT54GS doesn’t support SNMP:
forums.linksys.com/linksys/board … d.id=57509[/quote]

Thanks Albin,
I was afraid of that, although now I know and can stop betting my head up against the wall…

jake