nagios core 4.x: how to configure a router an switch
Re: nagios core 4.x: how to configure a router an switch
# 'check-host-alive' command definition
Last edited by berhan30 on Wed Jul 15, 2015 6:48 am, edited 2 times in total.
monitoring the networks equipment and server : I have two problems
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: nagios core 4.x: how to configure a router an switch
In order to troubleshoot we'd need too see your check-host-alive command. Sounds like something is improperly configured there.
Re: nagios core 4.x: how to configure a router an switch
# 'check_ping' command definition
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}
define host{
use generic-switch ; Inherit default values from a$
host_name routeur-cisco ; The name we're giving to this$
alias routeur cisco 2900 ; A longer name associated with$
address 10.x.x.2 ; IP address of the switch
check_command check-host-alive
parents firewall
}
routeur-cisco View Service Details For This Host DOWN 07-14-2015 05:54:02 1d 21h 45m 12s PING CRITICAL - Packet loss = 100%
log:
Informational Message[07-14-2015 05:48:52] wproc: Core Worker 45975: job 89 (pid=47297): Dormant child reaped
Informational Message[07-14-2015 05:48:52] Warning: Check of host 'routeur-cisco' timed out after 30.02 seconds
Informational Message[07-14-2015 05:48:52] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Informational Message[07-14-2015 05:48:52] wproc: host=routeur-cisco; service=(null);
Informational Message[07-14-2015 05:48:52] wproc: CHECK job 89 from worker Core Worker 45975 timed out after 30.02s
Informational Message[07-14-2015 05:48:52] wproc: Core Worker 45975: job 89 (pid=47297) timed out. Killing it
Informational Message[07-14-2015 05:38:52] wproc: Core Worker 45976: job 80 (pid=47173): Dormant child reaped
Informational Message[07-14-2015 05:38:52] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
Informational Message[07-14-2015 05:38:52] wproc: stderr line 01: /bin/sh: 1: /bin/mail: not found
Informational Message[07-14-2015 05:38:52] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
Informational Message[07-14-2015 05:38:52] wproc: host=routeur-cisco; service=(none); contact=nagiosadmin
Informational Message[07-14-2015 05:38:52] wproc: NOTIFY job 84 from worker Core Worker 45975 is a non-check helper but exited with return code 127
Host Notification[07-14-2015 05:38:52] HOST NOTIFICATION: nagiosadmin;routeur-cisco;DOWN;notify-host-by-email;(Host check timed out after 30.01 seconds)
Informational Message[07-14-2015 05:38:52] Warning: Check of host 'routeur-cisco' timed out after 30.01 seconds
Informational Message[07-14-2015 05:38:52] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Informational Message[07-14-2015 05:38:52] wproc: host=routeur-cisco; service=(null);
Informational Message[07-14-2015 05:38:52] wproc: CHECK job 80 from worker Core Worker 45976 timed out after 30.01s
Informational Message[07-14-2015 05:38:52] wproc: Core Worker 45976: job 80 (pid=47173) timed out. Killing it
Informational Message[07-14-2015 05:24:32] wproc: Core Worker 45976: job 71 (pid=47003): Dormant child reaped
Informational Message[07-14-2015 05:24:32] Warning: Check of host 'routeur-cisco' timed out after 30.01 seconds
Informational Message[07-14-2015 05:24:32] wproc: stdout line 01: PING CRITICAL - Packet loss = 100%|rta=5000.000000ms;3000.000000;5000.000000;0.000000 pl=100%;80;100;0
Informational Message[07-14-2015 05:24:32] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Informational Message[07-14-2015 05:24:32] wproc: host=routeur-cisco; service=(null);
Informational Message[07-14-2015 05:24:32] wproc: CHECK job 71 from worker Core Worker 45976 timed out after 30.01s
Informational Message[07-14-2015 05:24:32] wproc: Core Worker 45976: job 71 (pid=47003) timed out. Killing it
Informational Message[07-14-2015 05:08:52] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
Informational Message[07-14-2015 05:08:52] wproc: stderr line 01: /bin/sh: 1: /bin/mail: not found
Informational Message[07-14-2015 05:08:52] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
Informational Message[07-14-2015 05:08:52] wproc: host=routeur-cisco; service=(none); contact=nagiosadmin
Informational Message[07-14-2015 05:08:52] wproc: NOTIFY job 59 from worker Core Worker 45976 is a non-check helper but exited with return code 127
Host Notification[07-14-2015 05:08:52] HOST NOTIFICATION: nagiosadmin;routeur-cisco;DOWN;notify-host-by-email;PING CRITICAL - Packet loss = 100%
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}
define host{
use generic-switch ; Inherit default values from a$
host_name routeur-cisco ; The name we're giving to this$
alias routeur cisco 2900 ; A longer name associated with$
address 10.x.x.2 ; IP address of the switch
check_command check-host-alive
parents firewall
}
routeur-cisco View Service Details For This Host DOWN 07-14-2015 05:54:02 1d 21h 45m 12s PING CRITICAL - Packet loss = 100%
log:
Informational Message[07-14-2015 05:48:52] wproc: Core Worker 45975: job 89 (pid=47297): Dormant child reaped
Informational Message[07-14-2015 05:48:52] Warning: Check of host 'routeur-cisco' timed out after 30.02 seconds
Informational Message[07-14-2015 05:48:52] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Informational Message[07-14-2015 05:48:52] wproc: host=routeur-cisco; service=(null);
Informational Message[07-14-2015 05:48:52] wproc: CHECK job 89 from worker Core Worker 45975 timed out after 30.02s
Informational Message[07-14-2015 05:48:52] wproc: Core Worker 45975: job 89 (pid=47297) timed out. Killing it
Informational Message[07-14-2015 05:38:52] wproc: Core Worker 45976: job 80 (pid=47173): Dormant child reaped
Informational Message[07-14-2015 05:38:52] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
Informational Message[07-14-2015 05:38:52] wproc: stderr line 01: /bin/sh: 1: /bin/mail: not found
Informational Message[07-14-2015 05:38:52] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
Informational Message[07-14-2015 05:38:52] wproc: host=routeur-cisco; service=(none); contact=nagiosadmin
Informational Message[07-14-2015 05:38:52] wproc: NOTIFY job 84 from worker Core Worker 45975 is a non-check helper but exited with return code 127
Host Notification[07-14-2015 05:38:52] HOST NOTIFICATION: nagiosadmin;routeur-cisco;DOWN;notify-host-by-email;(Host check timed out after 30.01 seconds)
Informational Message[07-14-2015 05:38:52] Warning: Check of host 'routeur-cisco' timed out after 30.01 seconds
Informational Message[07-14-2015 05:38:52] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Informational Message[07-14-2015 05:38:52] wproc: host=routeur-cisco; service=(null);
Informational Message[07-14-2015 05:38:52] wproc: CHECK job 80 from worker Core Worker 45976 timed out after 30.01s
Informational Message[07-14-2015 05:38:52] wproc: Core Worker 45976: job 80 (pid=47173) timed out. Killing it
Informational Message[07-14-2015 05:24:32] wproc: Core Worker 45976: job 71 (pid=47003): Dormant child reaped
Informational Message[07-14-2015 05:24:32] Warning: Check of host 'routeur-cisco' timed out after 30.01 seconds
Informational Message[07-14-2015 05:24:32] wproc: stdout line 01: PING CRITICAL - Packet loss = 100%|rta=5000.000000ms;3000.000000;5000.000000;0.000000 pl=100%;80;100;0
Informational Message[07-14-2015 05:24:32] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Informational Message[07-14-2015 05:24:32] wproc: host=routeur-cisco; service=(null);
Informational Message[07-14-2015 05:24:32] wproc: CHECK job 71 from worker Core Worker 45976 timed out after 30.01s
Informational Message[07-14-2015 05:24:32] wproc: Core Worker 45976: job 71 (pid=47003) timed out. Killing it
Informational Message[07-14-2015 05:08:52] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
Informational Message[07-14-2015 05:08:52] wproc: stderr line 01: /bin/sh: 1: /bin/mail: not found
Informational Message[07-14-2015 05:08:52] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
Informational Message[07-14-2015 05:08:52] wproc: host=routeur-cisco; service=(none); contact=nagiosadmin
Informational Message[07-14-2015 05:08:52] wproc: NOTIFY job 59 from worker Core Worker 45976 is a non-check helper but exited with return code 127
Host Notification[07-14-2015 05:08:52] HOST NOTIFICATION: nagiosadmin;routeur-cisco;DOWN;notify-host-by-email;PING CRITICAL - Packet loss = 100%
Last edited by berhan30 on Wed Jul 15, 2015 6:47 am, edited 1 time in total.
monitoring the networks equipment and server : I have two problems
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
Re: nagios core 4.x: how to configure a router an switch
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}
I changed by another adresse (172.x.x.x). it's works
* address problem (10.x.x.2)?
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}
I changed by another adresse (172.x.x.x). it's works
* address problem (10.x.x.2)?
monitoring the networks equipment and server : I have two problems
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: nagios core 4.x: how to configure a router an switch
Nothing is wrong, your router simply is either down, or your Nagios box is unable to ping it.berhan30 wrote:Informational Message[07-14-2015 05:48:52] Warning: Check of host 'routeur-cisco' timed out after 30.02 seconds
Informational Message[07-14-2015 05:48:52] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Re: nagios core 4.x: how to configure a router an switch
Problem: mail;SSH;CRITICAL;SOFT;1;connect to address 172.X.x.x and port 22: Connection refused
define service{
use local-service ; Name of service template to use
host_name mail
service_description SSH
check_command check_ssh
notifications_enabled 0
}
# 'check_ssh' command definition
define command{
command_name check_ssh
command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$
}
define service{
use local-service ; Name of service template to use
host_name mail
service_description SSH
check_command check_ssh
notifications_enabled 0
}
# 'check_ssh' command definition
define command{
command_name check_ssh
command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$
}
monitoring the networks equipment and server : I have two problems
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: nagios core 4.x: how to configure a router an switch
Nothing is wrong with your configuration. The "error" is realy - connection refused when your Nagios server tried to open a TCP connection to your ssh daemon on that host.berhan30 wrote:Problem: mail;SSH;CRITICAL;SOFT;1;connect to address 172.X.x.x and port 22: Connection refused