i`m new in nagios.
I`m trying to monitor my Home-Network.
In this case i am trying to monitor the upstates of my 8-Port-Switch by 3Com.
In Port 1,7 and 8 is inserted an Cable.
Port 1 is the Uplink
On Port 7 and 8 i?ve plugged 2 Devices.
Only the port 1 is ok.
The rest gives the State "CRITICAL"
Code: Select all
Port 1 Link Status
OK 05-12-2021 16:36:18 3d 18h 31m 3s 1/3 SNMP OK - up(1)
Port 2 Link Status
CRITICAL 05-12-2021 16:33:02 0d 2h 56m 39s 3/3 SNMP CRITICAL - *up(1)*
Port 3 Link Status
CRITICAL 05-12-2021 16:35:30 3d 16h 56m 25s 3/3 SNMP CRITICAL - *up(1)*
Port 4 Link Status
CRITICAL 05-12-2021 16:36:59 3d 16h 52m 58s 3/3 SNMP CRITICAL - *up(1)*
Port 5 Link Status
CRITICAL 05-12-2021 16:35:51 3d 16h 50m 8s 3/3 SNMP CRITICAL - *up(1)*
Port 6 Link Status
CRITICAL 05-12-2021 16:37:16 3d 16h 47m 33s 3/3 SNMP CRITICAL - *up(1)*
Port 7 Link Status
CRITICAL 05-12-2021 16:37:42 3d 16h 45m 58s 3/3 SNMP CRITICAL - *up(1)*
Port 8 Link Status
CRITICAL 05-12-2021 16:34:29 3d 16h 44m 42s 3/3 SNMP CRITICAL - *up(1)*
My Configfile:
define host {
use generic-switch ; Inherit default values from a template
host_name 3-Com-Switch ; The name we're giving to this switch
alias 3-Com-Switch ; A longer name associated with the switch
address 192.168.178.3 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
}
define hostgroup {
hostgroup_name switches ; The name of the hostgroup
alias Network Switches ; Long name of the group
}
define service {
use generic-service ; Inherit values from a template
host_name 3-Com-Switch ; The name of the host the service is associated with
service_description PING ; The service description
check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service
check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
# Monitor uptime via SNMP
define service {
use generic-service ; Inherit values from a template
host_name 3-Com-Switch
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
# Monitor Port 1 status via SNMP
define service {
use generic-service ; Inherit values from a template
host_name 3-Com-Switch
service_description Port 1 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}
define service {
use generic-service
host_name 3-Com-Switch
service_description Port 2 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 2 -m RFC1213-MIB
}
define service {
use generic-service
host_name 3-Com-Switch
service_description Port 3 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 3 -m RFC1213-MIB
}
define service {
use generic-service
host_name 3-Com-Switch
service_description Port 4 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 4 -m RFC1213-MIB
}
define service {
use generic-service
host_name 3-Com-Switch
service_description Port 5 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 5 -m RFC1213-MIB
}
define service {
use generic-service
host_name 3-Com-Switch
service_description Port 6 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 6 -m RFC1213-MIB
}
define service {
use generic-service
host_name 3-Com-Switch
service_description Port 7 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 7 -m RFC1213-MIB
}
define service {
use generic-service
host_name 3-Com-Switch
service_description Port 8 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 8 -m RFC1213-MIB
}
Can anybody help me, to find the failure?
Why is the state critical ?
Greets