Is it simply impossible to simply monitor CPU Load on a firewall?
CPU Load Perform Extra Service Actions CRITICAL 11-22-2019 09:42:04 0d 12h 30m 8s 3/3 connect to address 192.168.3.6 and port 12489: Connection refused
PING OK 11-22-2019 09:38:35 0d 12h 32m 48s 1/3 PING OK - Packet loss = 0%, RTA = 0.90 ms
Port 1 Bandwidth Usage
UNKNOWN 11-22-2019 09:35:01 0d 12h 25m 15s 3/3 check_mrtgtraf: Unable to open MRTG log file
Port 1 Link Status
OK 11-22-2019 09:36:17 0d 0h 45m 54s 1/3 SNMP OK - up(1)
Port 2 Link Status
CRITICAL 11-22-2019 09:39:45 0d 0h 42m 26s 3/3 SNMP CRITICAL - *up(1)*
Uptime
CRITICAL 11-22-2019 09:40:58 0d 12h 31m 13s 3/3 connect to address 192.168.3.6 and port 12489: Connection refused
And why it monitorig memory usage or NSClient version?
Code: Select all
###############################################################################
# SWITCH.CFG - SAMPLE CONFIG FILE FOR MONITORING A SWITCH
#
#
# NOTES: This config file assumes that you are using the sample configuration
# files that get installed with the Nagios quickstart guide.
#
###############################################################################
###############################################################################
#
# HOST DEFINITIONS
#
###############################################################################
# Define the switch that we'll be monitoring
define host {
use generic-switch ; Inherit default values from a template
host_name netgear-xs712t ; The name we're giving to this switch
alias Serwerownia04 ; A longer name associated with the switch
address 172.16.15.212 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
}
define host {
use generic-switch ; Inherit default values from a template
host_name firewall ; The name we're giving to this switch
alias ZyWALL USG 300 ; A longer name associated with the switch
address 192.168.3.6 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
}
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
# Create a new hostgroup for switches
define hostgroup {
hostgroup_name switches ; The name of the hostgroup
alias Network Switches ; Long name of the group
}
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
# Create a service to PING to switch
define service {
use generic-service ; Inherit values from a template
host_name netgear-xs712t,firewall ; 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 netgear-xs712t,firewall
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 netgear-xs712t,firewall
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 ; Inherit values from a template
host_name netgear-xs712t,firewall
service_description Port 2 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 2 -m RFC1213-MIB
}
# Monitor bandwidth via MRTG logs
define service {
use generic-service ; Inherit values from a template
host_name netgear-xs712t,firewall
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.3.6_1.log!AVG!1000000,1000000!5000000,5000000!10
}