A Nagios compliant check for Check Point Firewalls
Just download the .py
file from this repository and save it to a folder where your monitoring system can access it.
The script uses the following Python 3 Modules:
sys
getopt
ipaddress
re
pysnmp
Simply call the Python-Script:
check_checkpoint -i <ipv4Address> -c <communityString> -m <mode> [-s <cluster-state>]
cpu
memory
disk
hardware
network
cluster
object CheckCommand "check_checkpoint" {
import "plugin-check-command"
command = [ PluginDir + "check_checkpoint" ]
arguments = {
"-i" = "$check_checkpoint_address$"
"-c" = "$check_checkpoint_community$"
"-m" = "$check_checkpoint_mode$"
"-s" = "$check_checkpoint_status$"
}
vars.check_checkpoint_address = "$address$"
vars.check_checkpoint_community = "public"
}
apply Service "check_checkpoint_cpu" {
import "normal-service"
check_command = "check_checkpoint"
vars.check_checkpoint_mode = "cpu"
assign where host.vars.vendor == "Checkpoint"
}